Skip to content

Commit

Permalink
fix: increase size of drop down button (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsAdityaKSingh authored Jan 10, 2022
1 parent dfa1b77 commit c80dc9b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/screens/settings/components/custom_dropdown.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class CustomDropDown extends StatelessWidget {
trailing: MouseRegion(
cursor: SystemMouseCursors.click,
child: Container(
width: Responsive.isDesktop(context) ? 300 : 100,
width: Responsive.isDesktop(context) ? 300 : 125,
color: kBgLightColor,
child: DropdownButton<String>(
underline: Container(),
Expand All @@ -36,10 +36,12 @@ class CustomDropDown extends StatelessWidget {
items: items.map((String value) {
return DropdownMenuItem(
value: value,
child: Padding(
padding:
const EdgeInsets.symmetric(vertical: 12, horizontal: 8),
child: Text(value),
child: Center(
child: Padding(
padding:
const EdgeInsets.symmetric(vertical: 12, horizontal: 5),
child: Text(value),
),
),
);
}).toList(),
Expand Down

0 comments on commit c80dc9b

Please # to comment.