hardcode padding in order to make PopupMenuButton actually .narrow
This is needed because of a flutter bug, see https://github.com/flutter/flutter/issues/193656.
This commit is contained in:
parent
ab69bfe553
commit
b3b873ffce
1 changed files with 4 additions and 1 deletions
|
|
@ -141,8 +141,11 @@ class const Composer(
|
||||||
icon: Icon(Icons.emoji_emotions),
|
icon: Icon(Icons.emoji_emotions),
|
||||||
),
|
),
|
||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
style: .new(iconButtonWidth: .narrow),
|
|
||||||
tooltip: "Add media",
|
tooltip: "Add media",
|
||||||
|
|
||||||
|
// `style` has no effect due to https://github.com/flutter/flutter/issues/193656, so `padding` is set from material_ui/lib/src/generated/icon_button_defaults_m3e.g.dart manually.
|
||||||
|
padding: .fromSTEB(4.0, 6.0, 4.0, 6.0),
|
||||||
|
style: .new(iconButtonWidth: .narrow),
|
||||||
enabled: attachment == null,
|
enabled: attachment == null,
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
if (Platform.isAndroid || Platform.isIOS)
|
if (Platform.isAndroid || Platform.isIOS)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue