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 @@ -1389,7 +1389,7 @@ abstract class _Banner extends StatelessWidget {
1389
1389
/// To control the element's distance from the end edge, override [padEnd] .
1390
1390
Widget ? buildTrailing (BuildContext context);
1391
1391
1392
- /// Whether to add 8px trailing padding .
1392
+ /// Whether to apply `end: 8` in [SafeArea.minimum] .
1393
1393
///
1394
1394
/// Subclasses can use `false` when the [buildTrailing] element
1395
1395
/// is meant to abut the edge of the screen
@@ -1410,7 +1410,7 @@ abstract class _Banner extends StatelessWidget {
1410
1410
decoration: BoxDecoration (
1411
1411
color: getBackgroundColor (designVariables)),
1412
1412
child: SafeArea (
1413
- minimum: const EdgeInsetsDirectional .only (start: 8 )
1413
+ minimum: EdgeInsetsDirectional .only (start: 8 , end : padEnd ? 8 : 0 )
1414
1414
// (SafeArea.minimum doesn't take an EdgeInsetsDirectional)
1415
1415
.resolve (Directionality .of (context)),
1416
1416
child: Padding (
@@ -1426,7 +1426,6 @@ abstract class _Banner extends StatelessWidget {
1426
1426
const SizedBox (width: 8 ),
1427
1427
trailing,
1428
1428
],
1429
- if (padEnd) const SizedBox (width: 8 ),
1430
1429
]))));
1431
1430
}
1432
1431
}
You can’t perform that action at this time.
0 commit comments