CustomAppBar constructor
CustomAppBar({
- Key? key,
- String title = '',
- double height = 40.0,
- Widget? titleWidget,
- double elevation = 5,
- double scrollPosition = -1,
- bool isShowIconBack = true,
- List<
Widget> ? actions, - void onPressed()?,
- double bottomHeight = 1,
- required AppTheme theme,
- IconThemeData iconTheme = const IconThemeData(color: Colors.transparent),
- PreferredSizeWidget? bottom,
Implementation
CustomAppBar({
super.key,
this.title = '',
this.height = 40.0,
this.titleWidget,
this.elevation = 5,
this.scrollPosition = -1,
this.isShowIconBack = true,
this.actions,
this.onPressed,
this.bottomHeight = 1,
required this.theme,
this.iconTheme = const IconThemeData(color: Colors.transparent),
PreferredSizeWidget? bottom,
}) : bottom =
bottom ??
PreferredSize(
preferredSize: Size.fromHeight(bottomHeight),
child: Container(height: bottomHeight, color: Colors.transparent),
),
systemOverlayStyle = SystemUiOverlayStyle.light.copyWith(statusBarColor: Colors.black);