mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 00:57:26 +03:00
Close Drawer when resized to expanded view.
This commit is contained in:
parent
5f78b0952f
commit
221ca6ca21
@ -66,7 +66,11 @@ class AppPage extends StatelessWidget {
|
||||
// Single column layout, maybe with rail
|
||||
return _buildScaffold(context, true, hasRail);
|
||||
} else {
|
||||
// Fully expanded layout
|
||||
// Fully expanded layout, close existing drawer if open
|
||||
final scaffoldState = scaffoldGlobalKey.currentState;
|
||||
if (scaffoldState?.isDrawerOpen == true) {
|
||||
scaffoldState?.openEndDrawer();
|
||||
}
|
||||
return Scaffold(
|
||||
body: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
Loading…
Reference in New Issue
Block a user