From e4e2d264f50ec49895fe5e50ded32fc80fd11c11 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 12 Dec 2024 16:41:42 +0800 Subject: [PATCH] update flutter to 3.27.0 & update packages --- lib/components/appbar.dart | 5 +- lib/components/button.dart | 10 +- lib/components/comic.dart | 8 +- lib/components/components.dart | 2 - lib/components/custom_slider.dart | 25 +-- lib/components/flyout.dart | 115 +------------ lib/components/menu.dart | 10 +- lib/components/window_frame.dart | 2 +- lib/foundation/comic_source/category.dart | 2 +- lib/foundation/comic_source/comic_source.dart | 2 +- lib/foundation/comic_source/models.dart | 4 +- lib/foundation/comic_source/parser.dart | 5 +- lib/foundation/history.dart | 1 + lib/foundation/widget_utils.dart | 6 + lib/main.dart | 2 - lib/network/app_dio.dart | 8 +- lib/pages/categories_page.dart | 2 +- lib/pages/explore_page.dart | 1 - lib/pages/favorites/favorites_page.dart | 2 +- lib/pages/favorites/local_favorites_page.dart | 20 ++- lib/pages/favorites/side_bar.dart | 4 +- lib/pages/history_page.dart | 2 - lib/pages/home_page.dart | 6 +- lib/pages/reader/gesture.dart | 2 +- lib/pages/reader/reader.dart | 4 +- lib/pages/reader/scaffold.dart | 10 +- lib/pages/settings/explore_settings.dart | 4 +- lib/pages/settings/setting_components.dart | 4 +- lib/pages/settings/settings_page.dart | 2 +- pubspec.lock | 154 +++++++++--------- pubspec.yaml | 14 +- 31 files changed, 172 insertions(+), 266 deletions(-) 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