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(
|
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 {
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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: (_) => [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue