@@ -57,7 +57,11 @@ class ChatInputRow extends StatelessWidget {
5757 onSend: controller.onVoiceMessageSend,
5858 );
5959 }
60- return Row (
60+ return Padding (
61+ padding: controller.selectMode
62+ ? const EdgeInsets .symmetric (horizontal: 8 )
63+ : EdgeInsets .zero,
64+ child: Row (
6165 crossAxisAlignment: .end,
6266 mainAxisAlignment: .spaceBetween,
6367 children: controller.selectMode
@@ -67,30 +71,43 @@ class ChatInputRow extends StatelessWidget {
6771 ))
6872 SizedBox (
6973 height: height,
70- child: TextButton (
71- style: TextButton .styleFrom (
72- foregroundColor: theme.colorScheme.error,
73- ),
74- onPressed: controller.deleteErrorEventsAction,
75- child: Row (
76- children: < Widget > [
77- const Icon (TablerIcons .trash_filled),
78- Text (L10n .of (context).delete),
79- ],
74+ child: Center (
75+ child: TextButton (
76+ style: TextButton .styleFrom (
77+ foregroundColor: theme.colorScheme.error,
78+ padding: const EdgeInsets .symmetric (horizontal: 12 ),
79+ minimumSize: const Size (0 , 36 ),
80+ tapTargetSize: MaterialTapTargetSize .shrinkWrap,
81+ ),
82+ onPressed: controller.deleteErrorEventsAction,
83+ child: Row (
84+ children: < Widget > [
85+ const Icon (TablerIcons .trash_filled),
86+ Text (L10n .of (context).delete),
87+ ],
88+ ),
8089 ),
8190 ),
8291 )
8392 else
8493 SizedBox (
8594 height: height,
86- child: TextButton (
87- style: selectedTextButtonStyle,
88- onPressed: controller.forwardEventsAction,
89- child: Row (
90- children: < Widget > [
91- const Icon (TablerIcons .chevron_left),
92- Text (L10n .of (context).forward),
93- ],
95+ child: Center (
96+ child: TextButton (
97+ style: selectedTextButtonStyle.copyWith (
98+ padding: const WidgetStatePropertyAll (
99+ EdgeInsets .symmetric (horizontal: 12 ),
100+ ),
101+ minimumSize: const WidgetStatePropertyAll (Size (0 , 36 )),
102+ tapTargetSize: MaterialTapTargetSize .shrinkWrap,
103+ ),
104+ onPressed: controller.forwardEventsAction,
105+ child: Row (
106+ children: < Widget > [
107+ const Icon (TablerIcons .chevron_left),
108+ Text (L10n .of (context).forward),
109+ ],
110+ ),
94111 ),
95112 ),
96113 ),
@@ -101,28 +118,44 @@ class ChatInputRow extends StatelessWidget {
101118 .isSent
102119 ? SizedBox (
103120 height: height,
104- child: TextButton (
105- style: selectedTextButtonStyle,
106- onPressed: controller.replyAction,
107- child: Row (
108- children: < Widget > [
109- Text (L10n .of (context).reply),
110- const Icon (TablerIcons .chevron_right),
111- ],
121+ child: Center (
122+ child: TextButton (
123+ style: selectedTextButtonStyle.copyWith (
124+ padding: const WidgetStatePropertyAll (
125+ EdgeInsets .symmetric (horizontal: 12 ),
126+ ),
127+ minimumSize: const WidgetStatePropertyAll (Size (0 , 36 )),
128+ tapTargetSize: MaterialTapTargetSize .shrinkWrap,
129+ ),
130+ onPressed: controller.replyAction,
131+ child: Row (
132+ children: < Widget > [
133+ Text (L10n .of (context).reply),
134+ const Icon (TablerIcons .chevron_right),
135+ ],
136+ ),
112137 ),
113138 ),
114139 )
115140 : SizedBox (
116141 height: height,
117- child: TextButton (
118- style: selectedTextButtonStyle,
119- onPressed: controller.sendAgainAction,
120- child: Row (
121- children: < Widget > [
122- Text (L10n .of (context).tryToSendAgain),
123- const SizedBox (width: 4 ),
124- const Icon (TablerIcons .send, size: 16 ),
125- ],
142+ child: Center (
143+ child: TextButton (
144+ style: selectedTextButtonStyle.copyWith (
145+ padding: const WidgetStatePropertyAll (
146+ EdgeInsets .symmetric (horizontal: 12 ),
147+ ),
148+ minimumSize: const WidgetStatePropertyAll (Size (0 , 36 )),
149+ tapTargetSize: MaterialTapTargetSize .shrinkWrap,
150+ ),
151+ onPressed: controller.sendAgainAction,
152+ child: Row (
153+ children: < Widget > [
154+ Text (L10n .of (context).tryToSendAgain),
155+ const SizedBox (width: 4 ),
156+ const Icon (TablerIcons .send, size: 14 ),
157+ ],
158+ ),
126159 ),
127160 ),
128161 )
@@ -404,6 +437,7 @@ class ChatInputRow extends StatelessWidget {
404437 ),
405438 ),
406439 ],
440+ ),
407441 );
408442 },
409443 );
0 commit comments