From 3bdb2a832ccd87554e4dd2d51b57268948561e95 Mon Sep 17 00:00:00 2001 From: zkhan Date: Sat, 10 Aug 2024 21:42:48 -0400 Subject: [PATCH] build error fix --- lib/longpress_widget.dart | 2 +- lib/plan_screen.dart | 2 +- pubspec.yaml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/longpress_widget.dart b/lib/longpress_widget.dart index abee89d..1fd204c 100644 --- a/lib/longpress_widget.dart +++ b/lib/longpress_widget.dart @@ -112,7 +112,7 @@ class LongPressFuture { class LongPressWidgetState extends State { - final CarouselController _controller = CarouselController(); + final CarouselSliderController _controller = CarouselSliderController(); void labelCallback(String value) { Navigator.of(context).pop(); diff --git a/lib/plan_screen.dart b/lib/plan_screen.dart index 70f613b..03fe0ba 100644 --- a/lib/plan_screen.dart +++ b/lib/plan_screen.dart @@ -20,7 +20,7 @@ class PlanScreen extends StatefulWidget { class PlanScreenState extends State { - final CarouselController _controller = CarouselController(); + final CarouselSliderController _controller = CarouselSliderController(); Widget _makeContent() { diff --git a/pubspec.yaml b/pubspec.yaml index 7e566e6..f326df5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -37,6 +37,7 @@ dependencies: cupertino_icons: ^1.0.2 sqflite: ^2.3.0 + win32: ^5.5.3 path: ^1.8.3 path_provider: ^2.1.1 sqflite_common_ffi: ^2.3.0+4 @@ -50,7 +51,7 @@ dependencies: http: any exif: ^3.3.0 flutter_map: ^6.1.0 - carousel_slider: ^4.2.1 + carousel_slider: ^5.0.0 dropdown_button2: ^2.3.9 latlong2: ^0.9.0 auto_size_text: ^3.0.0