Browse Source

no message

dev-2.0
ZHR007 2 months ago
parent
commit
3f43f0aff2
2 changed files with 4 additions and 3 deletions
  1. 5
      lib/components/page_appbar.dart
  2. 2
      lib/pages/setting/match_spread_page.dart

5
lib/components/page_appbar.dart

@ -6,10 +6,11 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget {
final Color? backgroundColor; final Color? backgroundColor;
final Color? color; final Color? color;
final Color? iconColor;
final bool? bottom; final bool? bottom;
final String title; final String title;
final Widget? right; 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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@ -20,7 +21,7 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget {
foregroundColor: color, foregroundColor: color,
actions: right != null ? [right ?? Container()] : null, actions: right != null ? [right ?? Container()] : null,
leading: IconButton( 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(), onPressed: () => Get.back(),
), ),
title: Text( title: Text(

2
lib/pages/setting/match_spread_page.dart

@ -33,7 +33,7 @@ class MatchSpreadPage extends StatelessWidget {
), ),
child: controller.roseList.isNotEmpty ? Scaffold( child: controller.roseList.isNotEmpty ? Scaffold(
backgroundColor: Colors.transparent, 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( body: SingleChildScrollView(
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(

Loading…
Cancel
Save