mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Close the Scaffold drawer in scroll_perf_test.dart (#26763)
This commit is contained in:
parent
1b0f2015a2
commit
43bf66a9ab
@ -620,7 +620,11 @@ class GalleryDrawer extends StatelessWidget {
|
||||
FancyDrawerHeader(),
|
||||
ListTile(
|
||||
key: const Key('scroll-switcher'),
|
||||
onTap: () { _changeScrollMode(context, currentMode == ScrollMode.complex ? ScrollMode.tile : ScrollMode.complex); },
|
||||
title: const Text('Scroll Mode'),
|
||||
onTap: () {
|
||||
_changeScrollMode(context, currentMode == ScrollMode.complex ? ScrollMode.tile : ScrollMode.complex);
|
||||
Navigator.pop(context);
|
||||
},
|
||||
trailing: Text(currentMode == ScrollMode.complex ? 'Tile' : 'Complex')
|
||||
),
|
||||
ListTile(
|
||||
|
Loading…
Reference in New Issue
Block a user