diff --git a/lib/components/appbar.dart b/lib/components/appbar.dart index 1d11a14..841d5fe 100644 --- a/lib/components/appbar.dart +++ b/lib/components/appbar.dart @@ -76,7 +76,7 @@ class _AppbarState extends State { var content = Container( decoration: BoxDecoration( color: widget.backgroundColor ?? - context.colorScheme.surface.withOpacity(0.72), + context.colorScheme.surface.toOpacity(0.72), ), height: _kAppBarHeight + context.padding.top, child: Row( @@ -219,7 +219,7 @@ class _MySliverAppBarDelegate extends SliverPersistentHeaderDelegate { child: BlurEffect( blur: 15, child: Material( - color: context.colorScheme.surface.withOpacity(0.72), + color: context.colorScheme.surface.toOpacity(0.72), elevation: 0, borderRadius: BorderRadius.circular(radius), child: body, @@ -734,6 +734,7 @@ class _SliverSearchBarDelegate extends SliverPersistentHeaderDelegate { icon: const Icon(Icons.clear), onPressed: () { editingController.clear(); + onChanged?.call(""); }, ); }, diff --git a/lib/components/button.dart b/lib/components/button.dart index 8a16de0..e3cc116 100644 --- a/lib/components/button.dart +++ b/lib/components/button.dart @@ -214,7 +214,7 @@ class _ButtonState extends State