Skip to content

Commit b802d5e

Browse files
committed
remove padding on DropdownMenu
1 parent bcb03bb commit b802d5e

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

lib/home/_feed.dart

+17-19
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,23 @@ class _FeedScreenState extends State<FeedScreen>
7373
pinned: false,
7474
snap: true,
7575
floating: true,
76-
title: Padding(
77-
padding: const EdgeInsets.all(8.0),
78-
child: DropdownMenu(
79-
inputDecorationTheme: InputDecorationTheme(
80-
isDense: true, border: OutlineInputBorder(borderRadius: BorderRadius.circular(12))),
81-
initialSelection: L10n.current.following,
82-
textStyle: Theme.of(context).appBarTheme.titleTextStyle,
83-
onSelected: (value) => setState(() {
84-
if (value == L10n.current.foryou) {
85-
_tab = 1;
86-
} else if (value == L10n.current.following) {
87-
_tab = 0;
88-
}
89-
_tabValue = value;
90-
}),
91-
dropdownMenuEntries: [
92-
DropdownMenuEntry(value: L10n.current.following, label: L10n.current.following),
93-
DropdownMenuEntry(value: L10n.current.foryou, label: L10n.current.foryou)
94-
])),
76+
title: DropdownMenu(
77+
inputDecorationTheme: InputDecorationTheme(
78+
isDense: true, border: OutlineInputBorder(borderRadius: BorderRadius.circular(12))),
79+
initialSelection: L10n.current.following,
80+
textStyle: Theme.of(context).appBarTheme.titleTextStyle,
81+
onSelected: (value) => setState(() {
82+
if (value == L10n.current.foryou) {
83+
_tab = 1;
84+
} else if (value == L10n.current.following) {
85+
_tab = 0;
86+
}
87+
_tabValue = value;
88+
}),
89+
dropdownMenuEntries: [
90+
DropdownMenuEntry(value: L10n.current.following, label: L10n.current.following),
91+
DropdownMenuEntry(value: L10n.current.foryou, label: L10n.current.foryou)
92+
]),
9593
actions: _tab == 1
9694
? [
9795
IconButton(

0 commit comments

Comments
 (0)