diff --git a/lib/widgets/common/identity/aves_app_bar.dart b/lib/widgets/common/identity/aves_app_bar.dart index 8dcadd5f0..205fb521c 100644 --- a/lib/widgets/common/identity/aves_app_bar.dart +++ b/lib/widgets/common/identity/aves_app_bar.dart @@ -2,6 +2,7 @@ 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'; @@ -100,23 +101,26 @@ 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 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 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, + ), + ], + ), ), ), );