Browse Source

修改白色背景的whiteBg 为backgraoundWhite 的背景颜色。在黑暗模式下的适配,

为backgraoundWhite为页面主图背景,whiteBg是item的布局布局不要设置为页面背景
liukai 3 months ago
parent
commit
0b2800157f

+ 2 - 2
packages/cpt_community/lib/modules/community/community_page.dart

@@ -63,7 +63,7 @@ class CommunityPage extends HookConsumerWidget {
             appBar: state.currentCategoryIdx == 0 ? MyAppBar.appBar(
               context,
               "Community",
-              backgroundColor: context.appColors.whiteBG,
+              backgroundColor: context.appColors.backgroundWhite,
             ): MyAppBar.searchAppBar(
               context,
               actions: [
@@ -75,7 +75,7 @@ class CommunityPage extends HookConsumerWidget {
                   },
                 ),
               ],
-              backgroundColor: context.appColors.whiteBG,
+              backgroundColor: context.appColors.backgroundWhite,
             ),
           backgroundColor: context.appColors.backgroundDefault,
           body: AutoTabsRouter.pageView(

+ 1 - 1
packages/cpt_community/lib/modules/my_following/my_following_page.dart

@@ -63,7 +63,7 @@ class MyFollowingPage extends HookConsumerWidget {
       appBar: MyAppBar.appBar(
         context,
         "My Following",
-        backgroundColor: context.appColors.whiteBG,
+        backgroundColor: context.appColors.backgroundWhite,
       ),
       backgroundColor: ColorUtils.string2Color("#F2F3F6"),
       body: Column(