Skip to content

Commit 8d8e412

Browse files
authored
Merge pull request #161 from sparcs-kaist/chore@return-to-original-package
Rollback dropdown_button2 to original package
2 parents e261a5b + ec2d993 commit 8d8e412

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

lib/widgets/dropdown.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class Dropdown<T> extends StatelessWidget {
7171
: null,
7272
),
7373
menuItemStyleData: MenuItemStyleData(
74-
height: 42,
7574
padding: EdgeInsets.zero,
7675
),
7776
items: items.map((itemData) {
@@ -91,8 +90,9 @@ class Dropdown<T> extends StatelessWidget {
9190
),
9291
),
9392
];
94-
return DropdownMenuItem<T>(
93+
return DropdownItem<T>(
9594
value: itemData.value,
95+
height: 42,
9696
child: Stack(
9797
alignment: AlignmentDirectional.bottomStart,
9898
children: [

pubspec.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,11 @@ packages:
140140
dropdown_button2:
141141
dependency: "direct main"
142142
description:
143-
path: "."
144-
ref: HEAD
145-
resolved-ref: "81499508deb9fea0e54eeee82283e073fb0c96f4"
146-
url: "https://github.com/sparcs-kaist/dropdown_button2.git"
147-
source: git
148-
version: "2.3.7"
143+
name: dropdown_button2
144+
sha256: a60c69cfe075b3b57cbecf163e629e05a5ac7057b9659494f6b80c1960fc7426
145+
url: "https://pub.dev"
146+
source: hosted
147+
version: "3.0.0-beta.4"
149148
easy_localization:
150149
dependency: "direct main"
151150
description:

pubspec.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ dependencies:
3939
open_app_file: ^4.0.2
4040
flutter_native_splash: ^2.3.2
4141
mailto: ^2.0.0
42+
dropdown_button2: ^3.0.0-beta.4
4243
# Firebase
4344
firebase_core: ^2.8.0
4445
firebase_analytics: ^10.1.6
4546
firebase_crashlytics: ^3.0.17
46-
# Forked
47-
dropdown_button2:
48-
git:
49-
url: https://github.com/sparcs-kaist/dropdown_button2.git
5047

5148
dev_dependencies:
5249
test: ^1.19.5

0 commit comments

Comments
 (0)