don't make composer buttons narrow
It doesn't actually change the hitbox? Only the shape of the InkWell.
This commit is contained in:
parent
2e85b26511
commit
64a8edda7d
1 changed files with 0 additions and 7 deletions
|
|
@ -115,7 +115,6 @@ class const Composer(
|
|||
),
|
||||
Container(
|
||||
color: theme.colorScheme.surfaceContainerHighest,
|
||||
padding: .symmetric(horizontal: 8),
|
||||
child: Row(
|
||||
mainAxisAlignment: .center,
|
||||
children:
|
||||
|
|
@ -126,7 +125,6 @@ class const Composer(
|
|||
)
|
||||
? [
|
||||
IconButton(
|
||||
style: .new(iconButtonWidth: .narrow),
|
||||
onPressed: () => showModalBottomSheet(
|
||||
isScrollControlled: true,
|
||||
context: context,
|
||||
|
|
@ -142,10 +140,6 @@ class const Composer(
|
|||
),
|
||||
PopupMenuButton(
|
||||
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,
|
||||
itemBuilder: (context) => [
|
||||
if (Platform.isAndroid || Platform.isIOS)
|
||||
|
|
@ -264,7 +258,6 @@ class const Composer(
|
|||
),
|
||||
),
|
||||
IconButton(
|
||||
style: .new(iconButtonWidth: .narrow),
|
||||
onPressed:
|
||||
attachment != null && attachment.$2 == null
|
||||
? null
|
||||
|
|
|
|||
Loading…
Reference in a new issue