From 20f20218e0b0db42d9101e5371e3b9f357b83cef Mon Sep 17 00:00:00 2001 From: ReinerRego Date: Sat, 9 Dec 2023 20:03:58 +0100 Subject: [PATCH] updated and added dropdownbutton --- filcnaplo/pubspec.yaml | 2 +- filcnaplo_mobile_ui/lib/pages/home/home_page.dart | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/filcnaplo/pubspec.yaml b/filcnaplo/pubspec.yaml index 22e629f..9015adb 100644 --- a/filcnaplo/pubspec.yaml +++ b/filcnaplo/pubspec.yaml @@ -53,7 +53,7 @@ dependencies: lottie: ^1.4.3 rive: ^0.9.1 animated_background: ^2.0.0 - dropdown_button2: ^1.8.9 + dropdown_button2: ^1.9.4 home_widget: ^0.1.6 flutter_expandable_fab: ^2.0.0 uni_links: ^0.5.1 diff --git a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart index 6738076..8a2d785 100755 --- a/filcnaplo_mobile_ui/lib/pages/home/home_page.dart +++ b/filcnaplo_mobile_ui/lib/pages/home/home_page.dart @@ -31,6 +31,7 @@ import 'home_page.i18n.dart'; import 'package:filcnaplo/ui/filter/widgets.dart'; import 'package:filcnaplo/ui/filter/sort.dart'; import 'package:i18n_extension/i18n_extension.dart'; +import 'package:dropdown_button2/dropdown_button2.dart'; class HomePage extends StatefulWidget { const HomePage({super.key}); @@ -174,6 +175,19 @@ class HomePageState extends State with TickerProviderStateMixin { _liveCardAnimation.animateTo(_liveCard.show ? 1.0 : 0.0); setGreeting(); + //for extra filters + + final List items = [ + 'Item1', + 'Item2', + 'Item3', + 'Item4', + 'Item5', + 'Item6', + 'Item7', + 'Item8', + ]; + String? selectedValue; return Scaffold( body: Stack( @@ -252,7 +266,6 @@ class HomePageState extends State with TickerProviderStateMixin { ), ), shadowColor: Colors.black, - // Filter Bar bottom: FilterBar( items: [