use m3e iconbuttons
This commit is contained in:
parent
bdf8fc6ce1
commit
98108d013e
4 changed files with 6 additions and 3 deletions
|
|
@ -95,6 +95,7 @@ extension BuildEventOptions on Event {
|
|||
child: IconTheme(
|
||||
data: theme.iconTheme,
|
||||
child: Row(
|
||||
mainAxisAlignment: .center,
|
||||
children: [
|
||||
for (final emoji in {
|
||||
...ref
|
||||
|
|
@ -104,7 +105,7 @@ extension BuildEventOptions on Event {
|
|||
"🤣",
|
||||
"😭",
|
||||
"🤔",
|
||||
}.take(4))
|
||||
}.take(3))
|
||||
IconButton(
|
||||
icon: Text(emoji),
|
||||
onPressed: () async {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ extension SchemeToTheme on ColorScheme {
|
|||
borderRadius: .circular(8),
|
||||
),
|
||||
),
|
||||
iconButtonTheme: .new(variant: StyleVariant.material3Expressive),
|
||||
textTheme: textTheme,
|
||||
inputDecorationTheme: const InputDecorationTheme(
|
||||
border: OutlineInputBorder(),
|
||||
|
|
|
|||
|
|
@ -117,7 +117,6 @@ class const Composer(
|
|||
color: theme.colorScheme.surfaceContainerHighest,
|
||||
padding: .symmetric(horizontal: 8),
|
||||
child: Row(
|
||||
spacing: 8,
|
||||
mainAxisAlignment: .center,
|
||||
children:
|
||||
ref.watch(
|
||||
|
|
@ -127,6 +126,7 @@ class const Composer(
|
|||
)
|
||||
? [
|
||||
IconButton(
|
||||
style: .new(iconButtonWidth: .narrow),
|
||||
onPressed: () => showModalBottomSheet(
|
||||
isScrollControlled: true,
|
||||
context: context,
|
||||
|
|
@ -141,6 +141,7 @@ class const Composer(
|
|||
icon: Icon(Icons.emoji_emotions),
|
||||
),
|
||||
PopupMenuButton(
|
||||
style: .new(iconButtonWidth: .narrow),
|
||||
tooltip: "Add media",
|
||||
enabled: attachment == null,
|
||||
itemBuilder: (context) => [
|
||||
|
|
@ -199,6 +200,7 @@ class const Composer(
|
|||
],
|
||||
icon: Icon(Icons.add),
|
||||
),
|
||||
SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: FlutterTagger(
|
||||
triggerStrategy: .eager,
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ class const Sidebar({super.key}) extends HookConsumerWidget {
|
|||
trailing: Padding(
|
||||
padding: .symmetric(vertical: 16),
|
||||
child: Column(
|
||||
spacing: 8,
|
||||
children: [
|
||||
PopupMenuButton(
|
||||
itemBuilder: (_) => [
|
||||
|
|
|
|||
Loading…
Reference in a new issue