From 3f43f0aff22b305798e1919c1e6cf41da5fb9fb5 Mon Sep 17 00:00:00 2001 From: ZHR007 Date: Tue, 20 Jan 2026 15:51:22 +0800 Subject: [PATCH] no message --- lib/components/page_appbar.dart | 5 +++-- lib/pages/setting/match_spread_page.dart | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/components/page_appbar.dart b/lib/components/page_appbar.dart index 92fe709..6f7bcab 100644 --- a/lib/components/page_appbar.dart +++ b/lib/components/page_appbar.dart @@ -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( diff --git a/lib/pages/setting/match_spread_page.dart b/lib/pages/setting/match_spread_page.dart index 34c846f..6b3713e 100644 --- a/lib/pages/setting/match_spread_page.dart +++ b/lib/pages/setting/match_spread_page.dart @@ -33,7 +33,7 @@ class MatchSpreadPage extends StatelessWidget { ), child: controller.roseList.isNotEmpty ? Scaffold( backgroundColor: Colors.transparent, - appBar: PageAppbar(title: "入驻加盟", backgroundColor: Colors.transparent, color: Colors.white), + appBar: PageAppbar(title: "入驻加盟", backgroundColor: Colors.transparent, color: Colors.white, iconColor: Colors.white), body: SingleChildScrollView( child: Container( decoration: BoxDecoration(