TLayout constructor
const
TLayout({
- Key? key,
- List<
TSidebarItem> items = const [], - Widget? logo,
- Widget? profile,
- List<
Widget> ? actions, - required Widget child,
- String? pageTitle,
- double mainCardRadius = 20,
- double width = 275,
- double minifiedWidth = 80,
- bool? isMinimized,
- bool showHamburgerMenu = false,
- bool showThemeToggle = true,
- bool showLogout = true,
- VoidCallback? onLogout,
Implementation
const TLayout({
super.key,
this.items = const [],
this.logo,
this.profile,
this.actions,
required this.child,
this.pageTitle,
this.mainCardRadius = 20,
this.width = 275,
this.minifiedWidth = 80,
this.isMinimized,
this.showHamburgerMenu = false,
this.showThemeToggle = true,
this.showLogout = true,
this.onLogout,
});