updated and added dropdownbutton

This commit is contained in:
Zypherift 2023-12-09 20:03:58 +01:00
parent 70c8ac1876
commit 20f20218e0
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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<HomePage> with TickerProviderStateMixin {
_liveCardAnimation.animateTo(_liveCard.show ? 1.0 : 0.0);
setGreeting();
//for extra filters
final List<String> items = [
'Item1',
'Item2',
'Item3',
'Item4',
'Item5',
'Item6',
'Item7',
'Item8',
];
String? selectedValue;
return Scaffold(
body: Stack(
@ -252,7 +266,6 @@ class HomePageState extends State<HomePage> with TickerProviderStateMixin {
),
),
shadowColor: Colors.black,
// Filter Bar
bottom: FilterBar(
items: [