use m3e iconbuttons

This commit is contained in:
Henry Hiles 2026-09-30 11:47:40 -04:00
commit 98108d013e
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 6 additions and 3 deletions

View file

@ -95,6 +95,7 @@ extension BuildEventOptions on Event {
child: IconTheme( child: IconTheme(
data: theme.iconTheme, data: theme.iconTheme,
child: Row( child: Row(
mainAxisAlignment: .center,
children: [ children: [
for (final emoji in { for (final emoji in {
...ref ...ref
@ -104,7 +105,7 @@ extension BuildEventOptions on Event {
"🤣", "🤣",
"😭", "😭",
"🤔", "🤔",
}.take(4)) }.take(3))
IconButton( IconButton(
icon: Text(emoji), icon: Text(emoji),
onPressed: () async { onPressed: () async {

View file

@ -28,6 +28,7 @@ extension SchemeToTheme on ColorScheme {
borderRadius: .circular(8), borderRadius: .circular(8),
), ),
), ),
iconButtonTheme: .new(variant: StyleVariant.material3Expressive),
textTheme: textTheme, textTheme: textTheme,
inputDecorationTheme: const InputDecorationTheme( inputDecorationTheme: const InputDecorationTheme(
border: OutlineInputBorder(), border: OutlineInputBorder(),

View file

@ -117,7 +117,6 @@ class const Composer(
color: theme.colorScheme.surfaceContainerHighest, color: theme.colorScheme.surfaceContainerHighest,
padding: .symmetric(horizontal: 8), padding: .symmetric(horizontal: 8),
child: Row( child: Row(
spacing: 8,
mainAxisAlignment: .center, mainAxisAlignment: .center,
children: children:
ref.watch( ref.watch(
@ -127,6 +126,7 @@ class const Composer(
) )
? [ ? [
IconButton( IconButton(
style: .new(iconButtonWidth: .narrow),
onPressed: () => showModalBottomSheet( onPressed: () => showModalBottomSheet(
isScrollControlled: true, isScrollControlled: true,
context: context, context: context,
@ -141,6 +141,7 @@ 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",
enabled: attachment == null, enabled: attachment == null,
itemBuilder: (context) => [ itemBuilder: (context) => [
@ -199,6 +200,7 @@ class const Composer(
], ],
icon: Icon(Icons.add), icon: Icon(Icons.add),
), ),
SizedBox(width: 8),
Expanded( Expanded(
child: FlutterTagger( child: FlutterTagger(
triggerStrategy: .eager, triggerStrategy: .eager,

View file

@ -158,7 +158,6 @@ class const Sidebar({super.key}) extends HookConsumerWidget {
trailing: Padding( trailing: Padding(
padding: .symmetric(vertical: 16), padding: .symmetric(vertical: 16),
child: Column( child: Column(
spacing: 8,
children: [ children: [
PopupMenuButton( PopupMenuButton(
itemBuilder: (_) => [ itemBuilder: (_) => [