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(
|
Container(
|
||||||
color: theme.colorScheme.surfaceContainerHighest,
|
color: theme.colorScheme.surfaceContainerHighest,
|
||||||
padding: .symmetric(horizontal: 8),
|
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: .center,
|
mainAxisAlignment: .center,
|
||||||
children:
|
children:
|
||||||
|
|
@ -126,7 +125,6 @@ class const Composer(
|
||||||
)
|
)
|
||||||
? [
|
? [
|
||||||
IconButton(
|
IconButton(
|
||||||
style: .new(iconButtonWidth: .narrow),
|
|
||||||
onPressed: () => showModalBottomSheet(
|
onPressed: () => showModalBottomSheet(
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
context: context,
|
context: context,
|
||||||
|
|
@ -142,10 +140,6 @@ class const Composer(
|
||||||
),
|
),
|
||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
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)
|
||||||
|
|
@ -264,7 +258,6 @@ class const Composer(
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
style: .new(iconButtonWidth: .narrow),
|
|
||||||
onPressed:
|
onPressed:
|
||||||
attachment != null && attachment.$2 == null
|
attachment != null && attachment.$2 == null
|
||||||
? null
|
? null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue