KitAppBar constructor

const KitAppBar({
  1. double heigth = 88,
  2. BoxDecoration boxDecoration = const BoxDecoration(color: Color.fromRGBO(48, 97, 140, 1)),
  3. bool shadowAppbar = true,
  4. EdgeInsets paddingAppbar = const EdgeInsets.only(top: 35),
  5. Icon? prefixIcon = const Icon(Icons.arrow_back_ios, color: Colors.white),
  6. BoxDecoration prefixDecorationButton = const BoxDecoration(),
  7. GestureTapCallback? prefixOnTap,
  8. EdgeInsets prefixPaddingIcon = const EdgeInsets.all(0),
  9. Icon? sufixIcon,
  10. 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))]),
  11. String emailUsuario = '',
  12. Image? image,
  13. String nomeUsuario = '',
  14. Function? onTapImage,
  15. EdgeInsets? sufixPaddingIcon,
  16. String text = 'KIT APPBAR',
  17. TextStyle? textStyle = const TextStyle(color: Colors.white, fontSize: 15, fontWeight: FontWeight.bold),
  18. double? spacePrefixText,
  19. double? spaceSufixText,
  20. GestureTapCallback? sufixOnTap,
  21. double widthIcon = 45,
  22. double heightIcon = 45,
  23. MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.spaceAround,
  24. MainAxisAlignment? mainAxisAlignmentGeral = MainAxisAlignment.spaceAround,
  25. 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,
});