Merge branch 'develop'

This commit is contained in:
Thibault Deckers 2022-05-25 17:46:18 +09:00
commit e53be5ac6f
6 changed files with 33 additions and 28 deletions

View file

@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
## <a id="unreleased"></a>[Unreleased]
## <a id="v1.6.6"></a>[v1.6.6] - 2022-05-25
## <a id="v1.6.7"></a>[v1.6.7] - 2022-05-25
### Added
@ -27,6 +27,8 @@ All notable changes to this project will be documented in this file.
- Android scrolling screenshot support
- Voice Access scrolling support
## <a id="v1.6.6"></a>[v1.6.6] - 2022-05-25 [YANKED AGAIN!]
## <a id="v1.6.5"></a>[v1.6.5] - 2022-05-25 [YANKED]
## <a id="v1.6.4"></a>[v1.6.4] - 2022-04-19

View file

@ -0,0 +1,5 @@
In v1.6.7:
- bottom navigation bar
- fast scroll with breadcrumbs
- settings search
Full changelog available on GitHub

View file

@ -203,8 +203,9 @@ class _CollectionAppBarState extends State<CollectionAppBar> with SingleTickerPr
final l10n = context.l10n;
if (isSelecting) {
return Selector<Selection<AvesEntry>, int>(
selector: (context, selection) => selection.selectedItems.length,
// `Selection` may not be available during hero
return Selector<Selection<AvesEntry>?, int>(
selector: (context, selection) => selection?.selectedItems.length ?? 0,
builder: (context, count, child) => Text(
count == 0 ? l10n.collectionSelectPageTitle : l10n.itemCount(count),
softWrap: false,
@ -322,8 +323,9 @@ class _CollectionAppBarState extends State<CollectionAppBar> with SingleTickerPr
final onPressed = enabled ? () => _onActionSelected(action) : null;
switch (action) {
case EntrySetAction.toggleTitleSearch:
return Selector<Query, bool>(
selector: (context, query) => query.enabled,
// `Query` may not be available during hero
return Selector<Query?, bool>(
selector: (context, query) => query?.enabled ?? false,
builder: (context, queryEnabled, child) {
return _TitleSearchToggler(
queryEnabled: queryEnabled,

View file

@ -2,7 +2,6 @@ import 'package:aves/model/settings/settings.dart';
import 'package:aves/theme/durations.dart';
import 'package:aves/widgets/aves_app.dart';
import 'package:aves/widgets/common/fx/blurred.dart';
import 'package:aves/widgets/common/providers/query_provider.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
@ -101,26 +100,23 @@ class AvesAppBar extends StatelessWidget {
final pushing = direction == HeroFlightDirection.push;
Widget popBuilder(context, child) => Opacity(opacity: 1 - animation.value, child: child);
Widget pushBuilder(context, child) => Opacity(opacity: animation.value, child: child);
return QueryProvider(
initialQuery: null,
child: Material(
type: MaterialType.transparency,
child: DefaultTextStyle(
style: DefaultTextStyle.of(toHero).style,
child: Stack(
children: [
AnimatedBuilder(
animation: animation,
builder: pushing ? popBuilder : pushBuilder,
child: fromHero.widget,
),
AnimatedBuilder(
animation: animation,
builder: pushing ? pushBuilder : popBuilder,
child: toHero.widget,
),
],
),
return Material(
type: MaterialType.transparency,
child: DefaultTextStyle(
style: DefaultTextStyle.of(toHero).style,
child: Stack(
children: [
AnimatedBuilder(
animation: animation,
builder: pushing ? popBuilder : pushBuilder,
child: fromHero.widget,
),
AnimatedBuilder(
animation: animation,
builder: pushing ? pushBuilder : popBuilder,
child: toHero.widget,
),
],
),
),
);

View file

@ -6,7 +6,7 @@ repository: https://github.com/deckerst/aves
# - github changelog: /CHANGELOG.md
# - play changelog: /whatsnew/whatsnew-en-US
# - izzy changelog: /fastlane/metadata/android/en-US/changelogs/1XXX.txt
version: 1.6.6+72
version: 1.6.7+73
publish_to: none
environment:

View file

@ -1,4 +1,4 @@
In v1.6.6:
In v1.6.7:
- bottom navigation bar
- fast scroll with breadcrumbs
- settings search