Compare commits

...
Author SHA1 Message Date
b3b873ffce
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.
2026-10-01 11:33:10 -04:00
ab69bfe553
bump lock 2026-10-01 10:31:41 -04:00
2 changed files with 7 additions and 4 deletions

6
flake.lock generated
View file

@ -89,11 +89,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1790185690, "lastModified": 1790689126,
"narHash": "sha256-xJ+X4hBtOcAFGBOe5nAMyMUeF9foJBmIOu3NjBqBycU=", "narHash": "sha256-ilerN1WLSvF+HMjziC/Wv99J5y02maDH+6hZPwsORKg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "4975466d324710c576dc11ad614684e6bd8cad8e", "rev": "b4fd65b198c599cbe814fcb9f42d25d021595ec9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -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)