From ec2d99364dde4cd2c2f083727a659d919d04bd81 Mon Sep 17 00:00:00 2001 From: SungyeopJeong Date: Sun, 1 Oct 2023 18:30:57 +0900 Subject: [PATCH] chore: return to original package --- lib/widgets/dropdown.dart | 4 ++-- pubspec.lock | 11 +++++------ pubspec.yaml | 5 +---- 3 files changed, 8 insertions(+), 12 deletions(-) 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