TAppBar constructor

const TAppBar({
  1. Key? key,
  2. Widget? title,
  3. TextStyle? titleStyle,
  4. List<Widget>? actions,
  5. Widget? leading,
  6. IconData? leadingIcon,
  7. Color? leadingIconColor,
  8. VoidCallback? leadingOnPressed,
  9. bool showBackArrow = false,
  10. EdgeInsetsGeometry? padding,
  11. Color? backgroundColor,
})

Creates a customizable AppBar.

  • showBackArrow defaults to false and toggles the visibility of the back arrow.
  • padding defaults to EdgeInsets.symmetric(horizontal: 16.0).

Implementation

const TAppBar({
  super.key,
  this.title,
  this.titleStyle,
  this.actions,
  this.leading,
  this.leadingIcon,
  this.leadingIconColor,
  this.leadingOnPressed,
  this.showBackArrow = false,
  this.padding,
  this.backgroundColor,
});