Skip to content

Commit

Permalink
[CP] Fix Snackbar TalkBack regression (#116417)
Browse files Browse the repository at this point in the history
* Add M2 defaults and template skeleton

* add MaterialStateColor functionality to ActionTextColor (issue #110402)

* Add M2 defaults and template skeleton

* updated material 3 tokens

* Updated snackbar demo

* add theme tests

* add gen defaults

* formatting

* more whitespace fixes

* add widget type

* update docs

* code review changes

* Add line overflow functionality

* whitespace fixes

* update M3 animation

* whitespace fixes

* add insetPadding param

* Modifed icon parameter to showCloseIcon

* white space fixes

* test fixes

* rename iconColor to closeIconColor

* debug test fix

* de-britishification

* g3fix

* g3fix

* debug test fix

* Fix Snackbar talkback regression

* fix merge weirdness

* test fix

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error

* fix linux analysis error
  • Loading branch information
esouthren committed Dec 2, 2022
1 parent e59a388 commit 22cbef3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 23 deletions.
6 changes: 2 additions & 4 deletions packages/flutter/lib/src/material/snack_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,7 @@ class _SnackBarState extends State<SnackBar> {

Widget snackBar = Padding(
padding: padding,
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
child: Wrap(
children: <Widget>[
Row(
children: <Widget>[
Expand All @@ -656,7 +654,7 @@ class _SnackBarState extends State<SnackBar> {
children: maybeActionAndIcon),
),
],
),

),
);

Expand Down
21 changes: 2 additions & 19 deletions packages/flutter/test/material/debug_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -316,24 +316,7 @@ void main() {
' TextButtonTheme\n'
' Padding\n'
' Row\n'
' Column\n'
' _SingleChildViewport\n'
' IgnorePointer-[GlobalKey#d48e8]\n'
' Semantics\n'
' Listener\n'
' _GestureSemantics\n'
' RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#0c3e0]\n'
' Listener\n'
' _ScrollableScope\n'
' _ScrollSemantics-[GlobalKey#349b8]\n'
' NotificationListener<ScrollMetricsNotification>\n'
' RepaintBoundary\n'
' CustomPaint\n'
' RepaintBoundary\n'
' NotificationListener<ScrollNotification>\n'
' GlowingOverscrollIndicator\n'
' Scrollable\n'
' SingleChildScrollView\n'
' Wrap\n'
' Padding\n'
' MediaQuery\n'
' Padding\n'
Expand Down Expand Up @@ -395,7 +378,7 @@ void main() {
' Directionality\n'
' [root]\n'
' Typically, the ScaffoldMessenger widget is introduced by the\n'
' MaterialApp at the top of your application widget tree.\n',
' MaterialApp at the top of your application widget tree.\n'
));
});
}
4 changes: 4 additions & 0 deletions packages/flutter/test/material/snack_bar_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,10 @@ void main() {
await tester.pumpAndSettle();

expect(tester.getSemantics(find.text('snack')), matchesSemantics(
isLiveRegion: true,
hasDismissAction: true,
hasScrollDownAction: true,
hasScrollUpAction: true,
label: 'snack',
textDirection: TextDirection.ltr,
));
Expand Down

0 comments on commit 22cbef3

Please sign in to comment.