File tree 3 files changed +8
-23
lines changed
3 files changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -628,9 +628,7 @@ class _SnackBarState extends State<SnackBar> {
628
628
629
629
Widget snackBar = Padding (
630
630
padding: padding,
631
- child: SingleChildScrollView (
632
- child: Column (
633
- mainAxisSize: MainAxisSize .min,
631
+ child: Wrap (
634
632
children: < Widget > [
635
633
Row (
636
634
children: < Widget > [
@@ -656,7 +654,7 @@ class _SnackBarState extends State<SnackBar> {
656
654
children: maybeActionAndIcon),
657
655
),
658
656
],
659
- ),
657
+
660
658
),
661
659
);
662
660
Original file line number Diff line number Diff line change @@ -316,24 +316,7 @@ void main() {
316
316
' TextButtonTheme\n '
317
317
' Padding\n '
318
318
' Row\n '
319
- ' Column\n '
320
- ' _SingleChildViewport\n '
321
- ' IgnorePointer-[GlobalKey#d48e8]\n '
322
- ' Semantics\n '
323
- ' Listener\n '
324
- ' _GestureSemantics\n '
325
- ' RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#0c3e0]\n '
326
- ' Listener\n '
327
- ' _ScrollableScope\n '
328
- ' _ScrollSemantics-[GlobalKey#349b8]\n '
329
- ' NotificationListener<ScrollMetricsNotification>\n '
330
- ' RepaintBoundary\n '
331
- ' CustomPaint\n '
332
- ' RepaintBoundary\n '
333
- ' NotificationListener<ScrollNotification>\n '
334
- ' GlowingOverscrollIndicator\n '
335
- ' Scrollable\n '
336
- ' SingleChildScrollView\n '
319
+ ' Wrap\n '
337
320
' Padding\n '
338
321
' MediaQuery\n '
339
322
' Padding\n '
@@ -395,7 +378,7 @@ void main() {
395
378
' Directionality\n '
396
379
' [root]\n '
397
380
' Typically, the ScaffoldMessenger widget is introduced by the\n '
398
- ' MaterialApp at the top of your application widget tree.\n ' ,
381
+ ' MaterialApp at the top of your application widget tree.\n '
399
382
));
400
383
});
401
384
}
Original file line number Diff line number Diff line change @@ -1276,6 +1276,10 @@ void main() {
1276
1276
await tester.pumpAndSettle ();
1277
1277
1278
1278
expect (tester.getSemantics (find.text ('snack' )), matchesSemantics (
1279
+ isLiveRegion: true ,
1280
+ hasDismissAction: true ,
1281
+ hasScrollDownAction: true ,
1282
+ hasScrollUpAction: true ,
1279
1283
label: 'snack' ,
1280
1284
textDirection: TextDirection .ltr,
1281
1285
));
You can’t perform that action at this time.
0 commit comments