WebDrawer constructor
const
WebDrawer({
- Key? key,
- required dynamic onMenuTap(
- required Function onLogOutClick,
- required Color drawerTextSelectedColor,
- Color drawerBackground = const Color(0xFF0D1B2A),
- Widget? prefix,
- Widget? drawerHeader,
- Widget? drawerIcon,
- Color? profileBackground,
- String? name,
- String? lastName,
- String? email,
- String? version,
- Color drawerIconColor = DrawerColors.drawerIconColor,
- double drawerIconSize = 18,
- bool isSearchShow = false,
- bool isShowClearIcon = false,
- Widget? expandIcon,
- Widget? collapsedIcon,
- String? logOutText,
- Size? size,
- TextStyle? drawerTextStyle,
- TextStyle? versionTextStyle,
- TextStyle? searchTextStyle,
Implementation
const WebDrawer({
super.key,
required this.menuItems,
required this.onMenuTap,
required this.onLogOutClick,
required this.drawerTextSelectedColor,
this.drawerBackground = const Color(0xFF0D1B2A),
Widget? prefix,
this.drawerHeader,
Widget? drawerIcon,
Color? profileBackground,
this.name,
this.lastName,
this.email,
this.version,
this.drawerIconColor = DrawerColors.drawerIconColor,
this.drawerIconSize = 18,
this.isSearchShow = false,
this.isShowClearIcon = false,
Widget? expandIcon,
Widget? collapsedIcon,
this.logOutText,
this.size,
this.drawerTextStyle,
this.versionTextStyle,
this.searchTextStyle,
}) : prefix = prefix ?? const SizedBox.shrink(),
drawerIcon = drawerIcon ?? const Icon(Icons.menu),
expandIcon = expandIcon ?? const Icon(Icons.expand_more, color: Colors.white),
collapsedIcon = collapsedIcon ?? const Icon(Icons.expand_less, color: Colors.white),
profileBackground = profileBackground ?? Colors.white;