Hide the sidebar

This commit is contained in:
Abdullah Alassaf
2024-09-12 14:47:15 +03:00
parent 46691dfff6
commit 28ec5beac9
6 changed files with 14 additions and 21 deletions

View File

@ -6,7 +6,7 @@ import 'package:syncrow_web/web_layout/web_app_bar.dart';
import 'menu_sidebar.dart';
class WebScaffold extends StatelessWidget with HelperResponsiveLayout {
final bool enableMenuSideba;
final bool enableMenuSidebar;
final Widget? appBarTitle;
final Widget? centerBody;
final Widget? rightBody;
@ -17,7 +17,7 @@ class WebScaffold extends StatelessWidget with HelperResponsiveLayout {
this.centerBody,
this.rightBody,
this.scaffoldBody,
this.enableMenuSideba = true,
this.enableMenuSidebar = false,
});
@override
Widget build(BuildContext context) {
@ -49,7 +49,7 @@ class WebScaffold extends StatelessWidget with HelperResponsiveLayout {
Expanded(
child: Row(
children: [
if (enableMenuSideba && !isSmall) const MenuSidebar(),
if (enableMenuSidebar && !isSmall) const MenuSidebar(),
Expanded(flex: 5, child: scaffoldBody!)
],
),