CustomScaffold constructor
const
CustomScaffold({
- Key? key,
- required int currentIndex,
- required ValueChanged<
int> onTabTapped, - required List<
Widget> pages, - Widget? body,
- required String userName,
- String welcomeMessage = 'Welcome',
- required ImageProvider<
Object> userImage, - Duration animationDuration = const Duration(milliseconds: 600),
- Curve animationCurve = Curves.easeInOut,
- double appBarHeight = 80,
- Color appBarBackgroundColor = Colors.transparent,
- double appBarElevation = 0,
- Widget? leading,
- List<
Widget> ? actions,
Implementation
const CustomScaffold({
Key? key,
required this.currentIndex,
required this.onTabTapped,
required this.pages,
this.body,
required this.userName,
this.welcomeMessage = 'Welcome',
required this.userImage,
this.navItems = const [
Icon(Icons.home, size: 30, color: Colors.white),
Icon(Icons.search, size: 30, color: Colors.white),
Icon(Icons.add, size: 30, color: Colors.white),
Icon(Icons.notifications, size: 30, color: Colors.white),
Icon(Icons.person, size: 30, color: Colors.white),
],
this.navBarColor = const Color(0x33FFFFFF),
this.navBackgroundColor = Colors.transparent,
this.navButtonBackgroundColor = const Color(0x4DFFFFFF),
this.navBarHeight = 75,
this.animationDuration = const Duration(milliseconds: 600),
this.animationCurve = Curves.easeInOut,
this.appBarHeight = 80,
this.appBarBackgroundColor = Colors.transparent,
this.appBarElevation = 0,
this.leading,
this.actions,
}) : super(key: key);