KitAppBar constructor
const
KitAppBar({
- double heigth = 88,
- BoxDecoration boxDecoration = const BoxDecoration(color: Color.fromRGBO(48, 97, 140, 1)),
- bool shadowAppbar = true,
- EdgeInsets paddingAppbar = const EdgeInsets.only(top: 35),
- Icon? prefixIcon = const Icon(Icons.arrow_back_ios, color: Colors.white),
- BoxDecoration prefixDecorationButton = const BoxDecoration(),
- GestureTapCallback? prefixOnTap,
- EdgeInsets prefixPaddingIcon = const EdgeInsets.all(0),
- Icon? sufixIcon,
- BoxDecoration sufixDecorationButton = const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(50)), boxShadow: [BoxShadow(blurRadius: 7.0, color: Colors.black54, offset: Offset(0, 0))]),
- String emailUsuario = '',
- Image? image,
- String nomeUsuario = '',
- Function? onTapImage,
- EdgeInsets? sufixPaddingIcon,
- String text = 'KIT APPBAR',
- TextStyle? textStyle = const TextStyle(color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
- double? spacePrefixText,
- double? spaceSufixText,
- GestureTapCallback? sufixOnTap,
- double widthIcon = 45,
- double heightIcon = 45,
- MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.spaceAround,
- MainAxisAlignment? mainAxisAlignmentGeral = MainAxisAlignment.spaceAround,
- MainAxisAlignment? mainAxisAlignmentUserName,
Implementation
const KitAppBar({
this.heigth = 88,
this.boxDecoration = const BoxDecoration(
color: Color.fromRGBO(48, 97, 140, 1),
),
this.shadowAppbar = true,
this.paddingAppbar = const EdgeInsets.only(top: 35),
this.prefixIcon = const Icon(
Icons.arrow_back_ios,
color: Colors.white,
),
this.prefixDecorationButton = const BoxDecoration(),
this.prefixOnTap,
this.prefixPaddingIcon = const EdgeInsets.all(0),
this.sufixIcon,
this.sufixDecorationButton = const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(50)),
boxShadow: [
BoxShadow(
blurRadius: 7.0,
color: Colors.black54,
offset: Offset(0, 0),
),
]),
this.emailUsuario = '',
this.image,
this.nomeUsuario = '',
this.onTapImage,
this.sufixPaddingIcon,
this.text = 'KIT APPBAR',
this.textStyle = const TextStyle(
color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
this.spacePrefixText,
this.spaceSufixText,
this.sufixOnTap,
this.widthIcon = 45,
this.heightIcon = 45,
this.mainAxisAlignment = MainAxisAlignment.spaceAround,
this.mainAxisAlignmentGeral = MainAxisAlignment.spaceAround,
this.mainAxisAlignmentUserName,
});