diff --git a/lib/src/floating_search_bar_scroll_notifier.dart b/lib/src/floating_search_bar_scroll_notifier.dart index a8475e9..30170e6 100644 --- a/lib/src/floating_search_bar_scroll_notifier.dart +++ b/lib/src/floating_search_bar_scroll_notifier.dart @@ -41,6 +41,7 @@ class FloatingSearchBarScrollNotifier extends StatelessWidget { maxScrollExtent: metrics.maxScrollExtent, minScrollExtent: metrics.minScrollExtent, viewportDimension: metrics.viewportDimension, + devicePixelRatio: metrics.devicePixelRatio, ); } diff --git a/pubspec.yaml b/pubspec.yaml index b722e05..f878ece 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,6 +5,7 @@ repository: https://github.com/bxqm/material_floating_search_bar environment: sdk: '>=2.19.2 <3.0.0' + flutter: ">=3.8.0" dependencies: flutter: