diff --git a/lib/widgets/dropdown.dart b/lib/widgets/dropdown.dart index 2fc088d8..d0c7ef49 100644 --- a/lib/widgets/dropdown.dart +++ b/lib/widgets/dropdown.dart @@ -71,7 +71,6 @@ class Dropdown extends StatelessWidget { : null, ), menuItemStyleData: MenuItemStyleData( - height: 42, padding: EdgeInsets.zero, ), items: items.map((itemData) { @@ -91,8 +90,9 @@ class Dropdown extends StatelessWidget { ), ), ]; - return DropdownMenuItem( + return DropdownItem( value: itemData.value, + height: 42, child: Stack( alignment: AlignmentDirectional.bottomStart, children: [ diff --git a/pubspec.lock b/pubspec.lock index 02a0ee0e..252e6d10 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -140,12 +140,11 @@ packages: dropdown_button2: dependency: "direct main" description: - path: "." - ref: HEAD - resolved-ref: "81499508deb9fea0e54eeee82283e073fb0c96f4" - url: "https://github.com/sparcs-kaist/dropdown_button2.git" - source: git - version: "2.3.7" + name: dropdown_button2 + sha256: a60c69cfe075b3b57cbecf163e629e05a5ac7057b9659494f6b80c1960fc7426 + url: "https://pub.dev" + source: hosted + version: "3.0.0-beta.4" easy_localization: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 71f3c693..a58f83ee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -39,14 +39,11 @@ dependencies: open_app_file: ^4.0.2 flutter_native_splash: ^2.3.2 mailto: ^2.0.0 + dropdown_button2: ^3.0.0-beta.4 # Firebase firebase_core: ^2.8.0 firebase_analytics: ^10.1.6 firebase_crashlytics: ^3.0.17 - # Forked - dropdown_button2: - git: - url: https://github.com/sparcs-kaist/dropdown_button2.git dev_dependencies: test: ^1.19.5