File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1333,7 +1333,7 @@ abstract class _Banner extends StatelessWidget {
1333
1333
/// To control the element's distance from the end edge, override [padEnd] .
1334
1334
Widget ? buildTrailing (BuildContext context);
1335
1335
1336
- /// Whether to add 8px trailing padding .
1336
+ /// Whether to apply `end: 8` in [SafeArea.minimum] .
1337
1337
///
1338
1338
/// Subclasses can use `false` when the [buildTrailing] element
1339
1339
/// is meant to abut the edge of the screen
@@ -1354,7 +1354,7 @@ abstract class _Banner extends StatelessWidget {
1354
1354
decoration: BoxDecoration (
1355
1355
color: getBackgroundColor (designVariables)),
1356
1356
child: SafeArea (
1357
- minimum: const EdgeInsetsDirectional .only (start: 8 )
1357
+ minimum: EdgeInsetsDirectional .only (start: 8 , end : padEnd ? 8 : 0 )
1358
1358
// (SafeArea.minimum doesn't take an EdgeInsetsDirectional)
1359
1359
.resolve (Directionality .of (context)),
1360
1360
child: Padding (
@@ -1370,7 +1370,6 @@ abstract class _Banner extends StatelessWidget {
1370
1370
const SizedBox (width: 8 ),
1371
1371
trailing,
1372
1372
],
1373
- if (padEnd) const SizedBox (width: 8 ),
1374
1373
]))));
1375
1374
}
1376
1375
}
You can’t perform that action at this time.
0 commit comments