@@ -1073,9 +1073,9 @@ class _SendButtonState extends State<_SendButton> {
1073
1073
}
1074
1074
1075
1075
class _ComposeBoxContainer extends StatelessWidget {
1076
- const _ComposeBoxContainer ({required this .child });
1076
+ const _ComposeBoxContainer ({required this .children });
1077
1077
1078
- final Widget child ;
1078
+ final List < Widget > children ;
1079
1079
1080
1080
@override
1081
1081
Widget build (BuildContext context) {
@@ -1088,8 +1088,7 @@ class _ComposeBoxContainer extends StatelessWidget {
1088
1088
border: Border (top: BorderSide (color: designVariables.borderBar))),
1089
1089
child: Material (
1090
1090
color: designVariables.composeBoxBg,
1091
- child: SafeArea (minimum: const EdgeInsets .symmetric (horizontal: 8 ),
1092
- child: child)));
1091
+ child: Column (children: children)));
1093
1092
}
1094
1093
}
1095
1094
@@ -1133,24 +1132,28 @@ class _ComposeBoxLayout extends StatelessWidget {
1133
1132
return IconButtonTheme (
1134
1133
data: iconButtonThemeData,
1135
1134
child: _ComposeBoxContainer (
1136
- child: Column (children: [
1137
- Padding (
1138
- padding: const EdgeInsets .symmetric (horizontal: 8 ),
1139
- child: Theme (
1140
- data: inputThemeData,
1141
- child: Column (children: [
1142
- if (topicInput != null ) topicInput! ,
1143
- contentInput,
1144
- ]))),
1145
- SizedBox (
1146
- height: _composeButtonSize,
1147
- child: Row (
1148
- mainAxisAlignment: MainAxisAlignment .spaceBetween,
1149
- children: [
1150
- composeButtonBar,
1151
- sendButton,
1152
- ])),
1153
- ])));
1135
+ children: [
1136
+ SafeArea (
1137
+ minimum: const EdgeInsets .symmetric (horizontal: 8 ),
1138
+ child: Column (children: [
1139
+ Padding (
1140
+ padding: const EdgeInsets .symmetric (horizontal: 8 ),
1141
+ child: Theme (
1142
+ data: inputThemeData,
1143
+ child: Column (children: [
1144
+ if (topicInput != null ) topicInput! ,
1145
+ contentInput,
1146
+ ]))),
1147
+ SizedBox (
1148
+ height: _composeButtonSize,
1149
+ child: Row (
1150
+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
1151
+ children: [
1152
+ composeButtonBar,
1153
+ sendButton,
1154
+ ])),
1155
+ ])),
1156
+ ]));
1154
1157
}
1155
1158
}
1156
1159
@@ -1363,7 +1366,10 @@ class ComposeBox extends StatelessWidget {
1363
1366
Widget build (BuildContext context) {
1364
1367
final errorBanner = _errorBanner (context);
1365
1368
if (errorBanner != null ) {
1366
- return _ComposeBoxContainer (child: errorBanner);
1369
+ return _ComposeBoxContainer (children: [
1370
+ SafeArea (minimum: const EdgeInsets .symmetric (horizontal: 8 ),
1371
+ child: errorBanner)
1372
+ ]);
1367
1373
}
1368
1374
1369
1375
final narrow = this .narrow;
0 commit comments