SmoothTopBar2 constructor
const
SmoothTopBar2({ - required String title,
- required ProductType? productType,
- String? subTitle,
- PreferredSizeWidget? topWidget,
- SmoothLeadingAction? leadingAction,
- bool forceMultiLines = false,
- bool reducedHeightOnScroll = false,
- double elevation = 4.0,
- Color? elevationColor,
- bool elevationOnScroll = true,
- Color? foregroundColor,
- Color? backgroundColor,
- SmoothTopBar2Theme? theme,
- Key? key,
})
Implementation
const SmoothTopBar2({
required this.title,
required this.productType,
this.subTitle,
this.topWidget,
this.leadingAction,
this.forceMultiLines = false,
this.reducedHeightOnScroll = false,
this.elevation = 4.0,
this.elevationColor,
this.elevationOnScroll = true,
this.foregroundColor,
this.backgroundColor,
this.theme,
super.key,
}) : assert(title.length > 0),
assert(forceMultiLines == false || subTitle == null);