Skip to content

Commit

Permalink
Change dropdown FAB style
Browse files Browse the repository at this point in the history
  • Loading branch information
proninyaroslav committed Oct 9, 2024
1 parent c9ba73f commit c596720
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/ui/components/dropdown_fab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ class _AnimatedMenuState extends State<_AnimatedMenu> {
height: fabTheme.extendedIconLabelSpacing ?? 8.0,
),
...widget.children,
Divider(
height: 0,
color: Theme.of(context).colorScheme.outline,
),
_CloseButton(
onPressed: () => collapse(),
),
Expand Down Expand Up @@ -310,6 +306,10 @@ class _CloseButton extends StatelessWidget {
return ListTileTheme(
iconColor: foregroundColor,
textColor: foregroundColor,
shape: fabTheme.shape ??
RoundedRectangleBorder(
borderRadius: BorderRadius.circular(16.0),
),
child: ListTile(
leading: const Icon(Symbols.close),
tileColor: backgroundColor,
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/home/components/add_ref_image_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class AddRefImageButton extends StatelessWidget {
child: DropdownFab(
icon: const Icon(Symbols.add),
label: Text(S.of(context).add),
menuWidth: 250,
menuWidth: 220,
menuChildren: [
DropdownFabMenuItem(
leading: const Icon(Symbols.photo),
Expand Down

0 comments on commit c596720

Please sign in to comment.