|
|
|
@ -6,10 +6,11 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
|
|
|
|
final Color? backgroundColor; |
|
|
|
final Color? color; |
|
|
|
final Color? iconColor; |
|
|
|
final bool? bottom; |
|
|
|
final String title; |
|
|
|
final Widget? right; |
|
|
|
const PageAppbar({super.key, required this.title, this.backgroundColor, this.color, this.right, this.bottom}); |
|
|
|
const PageAppbar({super.key, required this.title, this.iconColor,this.backgroundColor, this.color, this.right, this.bottom}); |
|
|
|
|
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
@ -20,7 +21,7 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
foregroundColor: color, |
|
|
|
actions: right != null ? [right ?? Container()] : null, |
|
|
|
leading: IconButton( |
|
|
|
icon: Icon( TDIcons.chevron_left, size: 30, color: Colors.black), |
|
|
|
icon: Icon( TDIcons.chevron_left, size: 30, color: iconColor ?? Colors.black), |
|
|
|
onPressed: () => Get.back(), |
|
|
|
), |
|
|
|
title: Text( |
|
|
|
|