CustomAppBar constructor

CustomAppBar({
  1. Key? key,
  2. required BuildContext context,
  3. required String title,
  4. required void onPressedBack(),
  5. List<Widget>? actions,
  6. bool automaticallyImplyLeading = true,
})

Implementation

CustomAppBar({
  Key? key,
  required BuildContext context,
  required String title,
  required void Function() onPressedBack,
  List<Widget>? actions,
  bool automaticallyImplyLeading = true,
}) : super(
          title: Text(title),
          automaticallyImplyLeading: automaticallyImplyLeading,
          leading: automaticallyImplyLeading
              ? IconButton(
                  icon: CustomIcon(
                      icon: AppIcons.arrow_left,
                      color: Theme.of(context).appBarTheme.iconTheme!.color),
                  onPressed: onPressedBack,
                )
              : null,
          actions: actions);