|
|
|
|
@ -14,8 +14,9 @@ class DefaultAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
|
|
|
final Function? onBackPress;
|
|
|
|
|
final bool showHomeActionButton;
|
|
|
|
|
final VoidCallback? onWillPopScope;
|
|
|
|
|
final TextStyle? titleStyle;
|
|
|
|
|
|
|
|
|
|
const DefaultAppBar({this.title, this.onBackPress, this.onWillPopScope, this.actions, this.showHomeActionButton = false, Key? key}) : super(key: key);
|
|
|
|
|
const DefaultAppBar({this.title, this.onBackPress, this.onWillPopScope, this.actions,this.titleStyle, this.showHomeActionButton = false, Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -63,7 +64,7 @@ class DefaultAppBar extends StatelessWidget implements PreferredSizeWidget {
|
|
|
|
|
10.width,
|
|
|
|
|
Text(
|
|
|
|
|
title ?? "",
|
|
|
|
|
style: AppTextStyles.heading3.copyWith(fontWeight: FontWeight.w500, color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
|
|
|
|
|
style:titleStyle?? AppTextStyles.heading3.copyWith(fontWeight: FontWeight.w500, color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
|
|
|
|
|
).expanded,
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
|