@@ -1173,25 +1173,25 @@ class _SendButtonState extends State<_SendButton> {
1173
1173
class _ComposeBoxContainer extends StatelessWidget {
1174
1174
const _ComposeBoxContainer ({
1175
1175
required this .body,
1176
- this .errorBanner ,
1177
- }) : assert (body != null || errorBanner != null );
1176
+ this .banner ,
1177
+ }) : assert (body != null || banner != null );
1178
1178
1179
1179
/// The text inputs, compose-button row, and send button.
1180
1180
///
1181
1181
/// This widget does not need a [SafeArea] to consume any device insets.
1182
1182
///
1183
- /// Can be null, but only if [errorBanner ] is non-null.
1183
+ /// Can be null, but only if [banner ] is non-null.
1184
1184
final Widget ? body;
1185
1185
1186
- /// An error bar that goes at the top.
1186
+ /// A bar that goes at the top.
1187
1187
///
1188
1188
/// This may be present on its own or with a [body] .
1189
1189
/// If [body] is null this must be present.
1190
1190
///
1191
1191
/// This widget should use a [SafeArea] to pad the left, right,
1192
1192
/// and bottom device insets.
1193
1193
/// (A bottom inset may occur if [body] is null.)
1194
- final Widget ? errorBanner ;
1194
+ final Widget ? banner ;
1195
1195
1196
1196
Widget _paddedBody () {
1197
1197
assert (body != null );
@@ -1203,15 +1203,15 @@ class _ComposeBoxContainer extends StatelessWidget {
1203
1203
Widget build (BuildContext context) {
1204
1204
final designVariables = DesignVariables .of (context);
1205
1205
1206
- final List <Widget > children = switch ((errorBanner , body)) {
1206
+ final List <Widget > children = switch ((banner , body)) {
1207
1207
(Widget (), Widget ()) => [
1208
1208
// _paddedBody() already pads the bottom inset,
1209
- // so make sure the error banner doesn't double-pad it.
1209
+ // so make sure the banner doesn't double-pad it.
1210
1210
MediaQuery .removePadding (context: context, removeBottom: true ,
1211
- child: errorBanner ! ),
1211
+ child: banner ! ),
1212
1212
_paddedBody (),
1213
1213
],
1214
- (Widget (), null ) => [errorBanner ! ],
1214
+ (Widget (), null ) => [banner ! ],
1215
1215
(null , Widget ()) => [_paddedBody ()],
1216
1216
(null , null ) => throw UnimplementedError (), // not allowed, see dartdoc
1217
1217
};
@@ -1556,7 +1556,7 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
1556
1556
1557
1557
final errorBanner = _errorBannerComposingNotAllowed (context);
1558
1558
if (errorBanner != null ) {
1559
- return _ComposeBoxContainer (body: null , errorBanner : errorBanner);
1559
+ return _ComposeBoxContainer (body: null , banner : errorBanner);
1560
1560
}
1561
1561
1562
1562
final controller = this .controller;
@@ -1577,6 +1577,6 @@ class _ComposeBoxState extends State<ComposeBox> with PerAccountStoreAwareStateM
1577
1577
// errorBanner = _ErrorBanner(label:
1578
1578
// ZulipLocalizations.of(context).errorSendMessageTimeout);
1579
1579
// }
1580
- return _ComposeBoxContainer (body: body, errorBanner : null );
1580
+ return _ComposeBoxContainer (body: body, banner : null );
1581
1581
}
1582
1582
}
0 commit comments