mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge 44f6347b452a08da22345278a640c3723d18a4a2 into 06df71c51446e96939c6a615b7c34ce9123806ba
This commit is contained in:
commit
d5bf807110
@ -718,6 +718,7 @@ class _SnackBarState extends State<SnackBar> {
|
||||
),
|
||||
maxLines: 1,
|
||||
textDirection: TextDirection.ltr,
|
||||
textScaler: MediaQuery.textScalerOf(context),
|
||||
)..layout();
|
||||
final double actionAndIconWidth =
|
||||
actionTextPainter.size.width +
|
||||
@ -775,7 +776,6 @@ class _SnackBarState extends State<SnackBar> {
|
||||
),
|
||||
),
|
||||
if (!willOverflowAction) ...maybeActionAndIcon,
|
||||
if (willOverflowAction) SizedBox(width: snackBarWidth * 0.4),
|
||||
],
|
||||
),
|
||||
if (willOverflowAction)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user