Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局配置 BrnAppBarConfig titleStyle 无效 #518

Open
LoveBabyForeve opened this issue Dec 21, 2023 · 4 comments
Open

全局配置 BrnAppBarConfig titleStyle 无效 #518

LoveBabyForeve opened this issue Dec 21, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@LoveBabyForeve
Copy link

LoveBabyForeve commented Dec 21, 2023

问题提交

标题格式:[BUG]: 问题简介

内容需包含:

1、BUG 描述

class XxxConfigUtils {
  static BrnAllThemeConfig defaultAllConfig = BrnAllThemeConfig(
    appBarConfig: defaultAppBarConfig,
  );

  static BrnAppBarConfig defaultAppBarConfig = BrnAppBarConfig(
    backgroundColor: MyColors.FF1060DD,
    titleStyle: BrnTextStyle(
      color: Colors.white,  // 此处无效
      fontSize: 30,
    ),
   // 这里就有效果  所以不存在初始化失败
    leadIconBuilder: () => const Icon(Icons.arrow_back_ios, size: 16, color: Colors.white),
  );
}
Scaffold(
        backgroundColor: Colors.black,
        appBar: BrnAppBar(title: "xxxxx", themeData: XxxConfigUtils.defaultAppBarConfig,),

这里 字体颜色和大小都能生效

2、复现步骤

3、期望行为
尽快修复
4、运行环境

  • 运行设备 小米10
  • 系统 MIUI 12.5.3 Android 11
  • Bruno 3.4.2
  • Flutter Doctor Flutter (Channel stable, 3.16.3, on Microsoft Windows [版本 10.0.22000.2652], locale zh-CN)

5、附加信息

包括视频、图片等补充信息

@LoveBabyForeve
Copy link
Author

static BrnButtonConfig defaultBrnButtonConfig = BrnButtonConfig( bigButtonFontSize: 12, bigButtonRadius: 4, smallButtonFontSize: 12, smallButtonRadius: 4, )
smallButtonFontSize 字体大小 没有效果
smallButtonRadius: 4, 圆角有效果

@zhoujuanjuan zhoujuanjuan added the bug Something isn't working label Feb 20, 2024
@zhoujuanjuan
Copy link
Collaborator

fixed

问题提交

标题格式:[BUG]: 问题简介

内容需包含:

1、BUG 描述

class XxxConfigUtils {
  static BrnAllThemeConfig defaultAllConfig = BrnAllThemeConfig(
    appBarConfig: defaultAppBarConfig,
  );

  static BrnAppBarConfig defaultAppBarConfig = BrnAppBarConfig(
    backgroundColor: MyColors.FF1060DD,
    titleStyle: BrnTextStyle(
      color: Colors.white,  // 此处无效
      fontSize: 30,
    ),
   // 这里就有效果  所以不存在初始化失败
    leadIconBuilder: () => const Icon(Icons.arrow_back_ios, size: 16, color: Colors.white),
  );
}
Scaffold(
        backgroundColor: Colors.black,
        appBar: BrnAppBar(title: "xxxxx", themeData: XxxConfigUtils.defaultAppBarConfig,),

这里 字体颜色和大小都能生效

2、复现步骤

3、期望行为 尽快修复 4、运行环境

  • 运行设备 小米10
  • 系统 MIUI 12.5.3 Android 11
  • Bruno 3.4.2
  • Flutter Doctor Flutter (Channel stable, 3.16.3, on Microsoft Windows [版本 10.0.22000.2652], locale zh-CN)

5、附加信息

包括视频、图片等补充信息

感谢返回,这个问题修复请见#529

@zhoujuanjuan
Copy link
Collaborator

static BrnButtonConfig defaultBrnButtonConfig = BrnButtonConfig( bigButtonFontSize: 12, bigButtonRadius: 4, smallButtonFontSize: 12, smallButtonRadius: 4, ) smallButtonFontSize 字体大小 没有效果, smallButtonRadius: 4, 圆角有效果

这个问题没有复现,这两个属性demo验证生效,还请提供详细信息以及使用的button

@LoveBabyForeve
Copy link
Author

BrnSmallMainButton(
title: '继续填写',
onTap: () {
logic.goToNextPoll(item.taskId);
// BrnToast.show('继续填写', context);
},
)
BrnSmallOutlineButton(
title: "查看结果",
lineColor: MyColors.FF1060DD,
textColor: MyColors.FF1060DD,
onTap: () {
// BrnToast.show('查看结果', context);
},
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants