bruno
bruno copied to clipboard
全局配置 BrnAppBarConfig titleStyle 无效
问题提交
标题格式:[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、附加信息
包括视频、图片等补充信息
static BrnButtonConfig defaultBrnButtonConfig = BrnButtonConfig( bigButtonFontSize: 12, bigButtonRadius: 4, smallButtonFontSize: 12, smallButtonRadius: 4, )
smallButtonFontSize 字体大小 没有效果,
smallButtonRadius: 4, 圆角有效果
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、附加信息
包括视频、图片等补充信息
感谢返回,这个问题修复请见https://github.com/LianjiaTech/bruno/pull/529
static BrnButtonConfig defaultBrnButtonConfig = BrnButtonConfig( bigButtonFontSize: 12, bigButtonRadius: 4, smallButtonFontSize: 12, smallButtonRadius: 4, )
smallButtonFontSize 字体大小 没有效果, smallButtonRadius: 4, 圆角有效果
这个问题没有复现,这两个属性demo验证生效,还请提供详细信息以及使用的button
BrnSmallMainButton( title: '继续填写', onTap: () { logic.goToNextPoll(item.taskId); // BrnToast.show('继续填写', context); }, ) BrnSmallOutlineButton( title: "查看结果", lineColor: MyColors.FF1060DD, textColor: MyColors.FF1060DD, onTap: () { // BrnToast.show('查看结果', context); }, ),