diff --git a/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart b/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart index e086377ade..a362980d6e 100644 --- a/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart +++ b/examples/flutter_gallery/lib/demo/material/backdrop_demo.dart @@ -342,14 +342,7 @@ class _BackdropDemoState extends State with SingleTickerProviderSt }, ), ); - }).toList() - ..add(const SizedBox(height: 8.0)) - ..add( - new Align( - alignment: AlignmentDirectional.centerStart, - child: new BackButton(color: Colors.white.withOpacity(0.5)) - ), - ); + }).toList(); return new Container( key: _backdropKey, @@ -388,16 +381,18 @@ class _BackdropDemoState extends State with SingleTickerProviderSt return new Scaffold( appBar: new AppBar( elevation: 0.0, - leading: new IconButton( - onPressed: _toggleBackdropPanelVisibility, - icon: new AnimatedIcon( - icon: AnimatedIcons.close_menu, - progress: _controller.view, - ), - ), title: new BackdropTitle( listenable: _controller.view, ), + actions: [ + new IconButton( + onPressed: _toggleBackdropPanelVisibility, + icon: new AnimatedIcon( + icon: AnimatedIcons.close_menu, + progress: _controller.view, + ), + ), + ], ), body: new LayoutBuilder( builder: _buildStack, diff --git a/examples/flutter_gallery/test/live_smoketest.dart b/examples/flutter_gallery/test/live_smoketest.dart index 5f21972438..08e2c69975 100644 --- a/examples/flutter_gallery/test/live_smoketest.dart +++ b/examples/flutter_gallery/test/live_smoketest.dart @@ -30,7 +30,6 @@ const List _kUnsynchronizedDemos = const [ // These demos can't be backed out of by tapping a button whose // tooltip is 'Back'. const List _kSkippedDemos = const [ - 'Backdrop', 'Pull to refresh', ]; diff --git a/examples/flutter_gallery/test/smoke_test.dart b/examples/flutter_gallery/test/smoke_test.dart index 1bb9666d3d..888a9f1143 100644 --- a/examples/flutter_gallery/test/smoke_test.dart +++ b/examples/flutter_gallery/test/smoke_test.dart @@ -102,12 +102,6 @@ Future smokeDemo(WidgetTester tester, String routeName) async { await tester.pump(); await tester.pump(const Duration(milliseconds: 400)); - // This demo's back button isn't initially visible. - if (routeName == '/material/backdrop') { - await tester.tap(find.byTooltip('Tap to dismiss')); - await tester.pumpAndSettle(); - } - // Go back await tester.pageBack(); await tester.pumpAndSettle();