Skip to content

Commit

Permalink
fix:code style format and update changelog (#123)
Browse files Browse the repository at this point in the history
* 🚀 merge master to 2.2.x (#1)

* ✨ fix typo

* setting pubspec.yaml and modify CHANGELOG.md

* fix typo

Co-authored-by: zhoujuanjuan001 <[email protected]>
Co-authored-by: zhoujuanjuan <[email protected]>

* perf: pass puv.dev static analysis

* perf: change the version number to 2.0.0

* pref: upgrade third_party

* flutter 2.8.x support (#8)

* update TextTheme api usage

* api usage change, WhitelistingTextInputFormatter -> FilteringTextInputFormatter

* Null safe (#13)

* remove useless comments

* remove useless dependencies

* adapt brn_expandable_text.dart null-safe

* upgrade dependencies:collection to stable

* migrate constants to null safety

* migrate brn_multi_click_util to null safety

* migrate font util to null safety

* migrate brn_text_style to null safety

* migrate brn picker constants to null safety

* migrate brn appBar theme to null safety

* optimize bruno theme's import (#16)

* ♻️  [NNBD] Part 1. Migrate configs (#28)

* ♻️ [NNBD] Part 2. Migrate utils (#30)

* ♻️ Migrate utils to NNBD

* 🎨 Improve the color getter

* 优化radio_button的点击范围 (#31)

* 优化radio_button的点击范围

* 更改BrnRadioCore的behavior属性默认为HitTestBehavior.translucent

* 代码修改部分格式化(AS)

* 🎨 BrnSearchText (#36)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null (#40)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 🎨 utils-EventBus添加null-safe (#23)

* 🎨 utils-EventBus添加null-safe

* 🎨 修改theme配置功能及utils/brn_tools工具函数 null-safe

* 🎨 EventBus添加null-safe(其他提交请忽略,输入回退)

Co-authored-by: 大脸儿 <[email protected]>

* refactor brn_toast (#33)

* refactor brn_toast

* refactor brn_toast

* 优化修复 EventBus

* 优化 EventBus  单例实现 (#43)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* brn_toast time change to seconds (#45)

* migrate brn_loading to null safety (#32)

* migrate brn_loading to null safety

* mv loading content to brnString constants

* optimization brn_theme_configurator instance constructor (#47)

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* Migrate BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag to null-safe (#46)

* [null-safe]: BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag 空安全适配

* perf: BrnDeleteTag null-safe

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* reset and migrated package [rating] to null-safety. (#42)

* 迁移example ,优化常量命名,增加export (#51)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* 空安全报错修改 (#55)

* 空安全报错修改

* 优化sketch教程为视频教程

* 优化sketch教程为视频教程

* 优化sketch教程为视频教程 (#61)

* Migrated  package [selectcity] to null-safety (#56)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* migrate card_title to null safety (#59)

* migrate card_title to null-safety

* [fix] brn_action_card_title: _sub widget is not null

* [optimize] empty widget use SizedBox instead of Container

* replace empty widget SizedBox to SizedBox.shrink

* Migrated package [radio] to null-safety (#62)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated tabbar to null-safety

* Migrated package [guide] to null-safety (#65)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* 🚀 Use the latest Podfile for the example (#68)

* Null safe calendar (#64)

* migrate calendar widget to null safety

* brn_calendar_view fix _currentStartSelectedDate is not null

* brn_calendar_view: simplify borderRadius usage

* calendar widget late _displayMode

* calendar widget add two constructors with date change

* Card Components Null safe adapter (#53)

* feat: support fvm

* feat: Card components null-safey adpater

* refactor: make code simple and clean

* refactor: make code simple and clean

* Migrated scroll_anchor to null-safety

* fix #71 (#77)

* fix content_card themeData is not null (#79)

* Null safe of all buttons (#20)

* icon button 增加null safe

* null safe for normal button

* null safe for normal button

* null safe for button

* null safe for all button

* merge

* rebase

* rebase

* merge

* optimization

* GlobalKey is not null

* optimization

* reset popup window

* showButtonPanelPopList

Co-authored-by: foreturn <[email protected]>

* Migrated package [navbar][input] to null-safety (#75)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* Migrated package [navbar][input] to null-safety

* Optimized codes in brn_appbar.dart

* Restore partial modification

* fix:修复迁移tabar问题

* Migrated tabbar & scroll_anchor to null-safety (#66)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* Migrate Selection to null-safe (#54)

* [null-safe]: BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag 空安全适配

* perf: BrnDeleteTag null-safe

* Migrate Selection to null-safe

* Migrate Selection to null-safe

* perf:  ItemEntity name 字段的初始化

* Migrate Selection to null-safe

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* Migrated package [dialog] to null-safety (#81)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* Migrated package [navbar][input] to null-safety

* Optimized codes in brn_appbar.dart

* Restore partial modification

* Migrated package [dialog] to null-safety

* Modified some params's default value or  nullable type

* migrate brn_horizontal_steps、brn_step_line to null safety (#89)

* migrate charts to null safety (#80)

* migrate DoughuntChart to null safety

* migrate progress bar chart to null safety

* update progress bar chart document

* migrate progress chart to null safety

* migrate radar chart to null safety

* migrate funnel chart to null safety

* migrate broken line chart to null safety

* fix progress bar chart some value is required

* fix progress bar chart some value is required

* fix brn_line_paint _path is not null

* fix brn_funnel_chart properties is not null

* fix brn_radar_chart properties is not null

* fix brn_line_painter not null values

* fix brn_progress_bar_chart error

* brn_broken_line some properties is not null value

* replace empty Container to SizedBox.shrink

* update progress_bar_chart null safety value by hand

* update broken_line null safety values by hand

* update funnel_chart null safety value by hand

* make LineCanvasModel immutable

* migrate actionsheet into null-safe (#73)

* migrate actionsheet into null-safe

* sheet: code review

Co-authored-by: yuanjunliang <[email protected]>

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate form to null safety (#86)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* migrate popup to null safety (#69)

* migrate popup to null safety

* fix MeasureSize null safe problems

* fix popup migrate to null-safety review problems

* migrate gallery to null safety (#90)

* migrate gallery to null safety

* change the type error

* remove @

* change String? to String

* fix:修复picker空安全迁移问题

* migrate appraise dir to null safety (#84)

* migrate appraise dir to null safety

* fix appraise migrate to null-safety review problems

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate picker to null safety (#91)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* replace DIN font with Bebas font (#87) (#92)

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* Perf:Button Null safe (#93)

* perf: Migrate Button Null-Safe

* perf:优化 HorizontalStep Null-Safe

* fix: null exception when parse json to entity

* perf Button Null-Safe,
fix NullException
perf  more layer  icon  color when item selected

* migrate example to null safety (#94)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

Co-authored-by: violinday <[email protected]>

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

* Fix #98 问题及优化部分代码 (#99)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

Co-authored-by: violinday <[email protected]>

* refactor:优化 BrnInputItemType 常量命名

* refactor:优化枚举值命名

* fix:修改docs目录下form相关常量命名及所有枚举命名

* 优化 BrnInputItemType 常量命名 (#100)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

* refactor:优化 BrnInputItemType 常量命名

* refactor:优化枚举值命名

* fix:修改docs目录下form相关常量命名及所有枚举命名

Co-authored-by: violinday <[email protected]>

* refactor: 更新 changelog

* refactor:BrnBubbleText 增加属性 bgColor、textStyle,修复demo  actionSheet、gallery、selection、picker错误

* fix:修复changelog 错误,brn_gallery_summary_page.dart 中标题空处理

* fix:修复部分问题

* fix:修复部分问题

* Merge remote-tracking branch 'origin/null-safe' into 2.2.x (#102)

* Null safe (#13)

* remove useless comments

* remove useless dependencies

* adapt brn_expandable_text.dart null-safe

* upgrade dependencies:collection to stable

* migrate constants to null safety

* migrate brn_multi_click_util to null safety

* migrate font util to null safety

* migrate brn_text_style to null safety

* migrate brn picker constants to null safety

* migrate brn appBar theme to null safety

* optimize bruno theme's import (#16)

* ♻️  [NNBD] Part 1. Migrate configs (#28)

* ♻️ [NNBD] Part 2. Migrate utils (#30)

* ♻️ Migrate utils to NNBD

* 🎨 Improve the color getter

* 🎨 BrnSearchText (#36)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null (#40)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 🎨 utils-EventBus添加null-safe (#23)

* 🎨 utils-EventBus添加null-safe

* 🎨 修改theme配置功能及utils/brn_tools工具函数 null-safe

* 🎨 EventBus添加null-safe(其他提交请忽略,输入回退)

Co-authored-by: 大脸儿 <[email protected]>

* refactor brn_toast (#33)

* refactor brn_toast

* refactor brn_toast

* 优化修复 EventBus

* 优化 EventBus  单例实现 (#43)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* brn_toast time change to seconds (#45)

* migrate brn_loading to null safety (#32)

* migrate brn_loading to null safety

* mv loading content to brnString constants

* optimization brn_theme_configurator instance constructor (#47)

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* Migrate BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag to null-safe (#46)

* [null-safe]: BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag 空安全适配

* perf: BrnDeleteTag null-safe

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* reset and migrated package [rating] to null-safety. (#42)

* 迁移example ,优化常量命名,增加export (#51)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* 空安全报错修改 (#55)

* 空安全报错修改

* 优化sketch教程为视频教程

* Migrated  package [selectcity] to null-safety (#56)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* migrate card_title to null safety (#59)

* migrate card_title to null-safety

* [fix] brn_action_card_title: _sub widget is not null

* [optimize] empty widget use SizedBox instead of Container

* replace empty widget SizedBox to SizedBox.shrink

* Migrated package [radio] to null-safety (#62)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated tabbar to null-safety

* Migrated package [guide] to null-safety (#65)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* 🚀 Use the latest Podfile for the example (#68)

* Null safe calendar (#64)

* migrate calendar widget to null safety

* brn_calendar_view fix _currentStartSelectedDate is not null

* brn_calendar_view: simplify borderRadius usage

* calendar widget late _displayMode

* calendar widget add two constructors with date change

* Card Components Null safe adapter (#53)

* feat: support fvm

* feat: Card components null-safey adpater

* refactor: make code simple and clean

* refactor: make code simple and clean

* Migrated scroll_anchor to null-safety

* fix #71 (#77)

* fix content_card themeData is not null (#79)

* Null safe of all buttons (#20)

* icon button 增加null safe

* null safe for normal button

* null safe for normal button

* null safe for button

* null safe for all button

* merge

* rebase

* rebase

* merge

* optimization

* GlobalKey is not null

* optimization

* reset popup window

* showButtonPanelPopList

Co-authored-by: foreturn <[email protected]>

* Migrated package [navbar][input] to null-safety (#75)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* Migrated package [navbar][input] to null-safety

* Optimized codes in brn_appbar.dart

* Restore partial modification

* fix:修复迁移tabar问题

* Migrated tabbar & scroll_anchor to null-safety (#66)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* Migrate Selection to null-safe (#54)

* [null-safe]: BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag 空安全适配

* perf: BrnDeleteTag null-safe

* Migrate Selection to null-safe

* Migrate Selection to null-safe

* perf:  ItemEntity name 字段的初始化

* Migrate Selection to null-safe

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* Migrated package [dialog] to null-safety (#81)

* reset and migrated package [rating] to null-safety.

* Migrated package [selectcity] to null-safety

* 修改ISuspensionBean抽象类相关子类的空字段问题。

* Migrated package [noticebar] to null-safety

* 1.Migrated package [radio] to null-safety;
2.Modified not-need-nullable param in brn_single_select_city_page.dart;

* Migrated package [guide] to null-safety

* Migrated package [navbar][input] to null-safety

* Optimized codes in brn_appbar.dart

* Restore partial modification

* Migrated package [dialog] to null-safety

* Modified some params's default value or  nullable type

* migrate brn_horizontal_steps、brn_step_line to null safety (#89)

* migrate charts to null safety (#80)

* migrate DoughuntChart to null safety

* migrate progress bar chart to null safety

* update progress bar chart document

* migrate progress chart to null safety

* migrate radar chart to null safety

* migrate funnel chart to null safety

* migrate broken line chart to null safety

* fix progress bar chart some value is required

* fix progress bar chart some value is required

* fix brn_line_paint _path is not null

* fix brn_funnel_chart properties is not null

* fix brn_radar_chart properties is not null

* fix brn_line_painter not null values

* fix brn_progress_bar_chart error

* brn_broken_line some properties is not null value

* replace empty Container to SizedBox.shrink

* update progress_bar_chart null safety value by hand

* update broken_line null safety values by hand

* update funnel_chart null safety value by hand

* make LineCanvasModel immutable

* migrate actionsheet into null-safe (#73)

* migrate actionsheet into null-safe

* sheet: code review

Co-authored-by: yuanjunliang <[email protected]>

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate form to null safety (#86)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* migrate popup to null safety (#69)

* migrate popup to null safety

* fix MeasureSize null safe problems

* fix popup migrate to null-safety review problems

* migrate gallery to null safety (#90)

* migrate gallery to null safety

* change the type error

* remove @

* change String? to String

* fix:修复picker空安全迁移问题

* migrate appraise dir to null safety (#84)

* migrate appraise dir to null safety

* fix appraise migrate to null-safety review problems

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate picker to null safety (#91)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* Perf:Button Null safe (#93)

* perf: Migrate Button Null-Safe

* perf:优化 HorizontalStep Null-Safe

* fix: null exception when parse json to entity

* perf Button Null-Safe,
fix NullException
perf  more layer  icon  color when item selected

* migrate example to null safety (#94)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

Co-authored-by: violinday <[email protected]>

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

* Fix #98 问题及优化部分代码 (#99)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

Co-authored-by: violinday <[email protected]>

* refactor:优化 BrnInputItemType 常量命名

* refactor:优化枚举值命名

* fix:修改docs目录下form相关常量命名及所有枚举命名

* 优化 BrnInputItemType 常量命名 (#100)

* Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null

* refactor:优化theme,暴露非null引用

* theme:去除无用信息及优化部分代码

* theme:增加属性类型

* 优化修复 EventBus

* 迁移example ,优化常量命名,增加export

* migrate brn_empty_status.dart

* 删除 BrnThemeImg

* fix:tagConfig merge方法增加判空处理

* fix:revert tagConfig

* fix:BrnAbnormalStateWidget空处理

* Migrated tabbar to null-safety

* Migrated scroll_anchor to null-safety

* fix:修复迁移tabar问题

* migrate form to null safety

* fix:修复tabbar报错及selection警告信息

* fix:修复迁移问题

* fix:优化迁移部分问题key和style非空问题

* migrate picker to null safety

* fix:修复picker空安全迁移问题

* fix:修复list没指定泛型及if判断错误问题

* fix:migrate dashed line to null safty

* migrate example to null safty

* fix:修复部分example warning

* fix:修复demo报错问题

* fix:追加未跟踪修复

* fix:优化部分接口可空参数为非空

* fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题

* refactor:优化 BrnInputItemType 常量命名

* refactor:优化枚举值命名

* fix:修改docs目录下form相关常量命名及所有枚举命名

Co-authored-by: violinday <[email protected]>

* refactor: 更新 changelog

* refactor:BrnBubbleText 增加属性 bgColor、textStyle,修复demo  actionSheet、gallery、selection、picker错误

* fix:修复changelog 错误,brn_gallery_summary_page.dart 中标题空处理

* fix:修复部分问题

* fix:修复部分问题

Co-authored-by: laiiihz <[email protected]>
Co-authored-by: LAIIIHZ <[email protected]>
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: kalifun <[email protected]>
Co-authored-by: kkkman22 <[email protected]>
Co-authored-by: 大脸儿 <[email protected]>
Co-authored-by: leftcoding <[email protected]>
Co-authored-by: violinday <[email protected]>
Co-authored-by: jojinshallar <[email protected]>
Co-authored-by: HappyImp <[email protected]>
Co-authored-by: Kenneth <[email protected]>
Co-authored-by: donywan <[email protected]>
Co-authored-by: foreturn <[email protected]>
Co-authored-by: Junl <[email protected]>
Co-authored-by: yuanjunliang <[email protected]>
Co-authored-by: Nayuta403 <[email protected]>

* migrate docs to null-safety

* feat:changelog 增加 BrnHorizontalStepsManager 改动

* fix:优化changelog

* fix:修复检测出的info&warning

* fix:code style format and update changelog

Co-authored-by: Nayuta403 <[email protected]>
Co-authored-by: violinday <[email protected]>
Co-authored-by: LAIIIHZ <[email protected]>
Co-authored-by: laiiihz <[email protected]>
Co-authored-by: Alex Li <[email protected]>
Co-authored-by: lee <[email protected]>
Co-authored-by: kalifun <[email protected]>
Co-authored-by: kkkman22 <[email protected]>
Co-authored-by: 大脸儿 <[email protected]>
Co-authored-by: leftcoding <[email protected]>
Co-authored-by: jojinshallar <[email protected]>
Co-authored-by: HappyImp <[email protected]>
Co-authored-by: Kenneth <[email protected]>
Co-authored-by: donywan <[email protected]>
Co-authored-by: foreturn <[email protected]>
Co-authored-by: Junl <[email protected]>
Co-authored-by: yuanjunliang <[email protected]>
  • Loading branch information
18 people authored Mar 10, 2022
1 parent cf74724 commit 480ad3c
Show file tree
Hide file tree
Showing 237 changed files with 2,291 additions and 1,879 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
- **Breaking change**: Sound null safety support, thanks to @leftcoding #39#33 @donywan #20 @laiiihz #80#64#59#32#14 @kalifun #36 @jojinshallar #81#75#65#62#56#42 @junlandroid #73 @Kenneth #53 @HappyImp #55 @kkkman22 #23 @AlexV525 #30
- **Breaking change**: Refer to the dart language specification to optimized constant and enum naming.
- Replace <code>DIN Font</code> with <code>Bebas Font</code> .
- Add build test thank to **AlexV525**.

#### components
- **Breaking change**: remove <code>BrnHorizontalStepsManager</code> and put function <code>forwardStep()</code> <code>backStep()</code> into <code>BrnStepsController</code> thanks to leftcoding.
- <code>BrnCalendarView</code>: add <code>BrnCalendarView.single()</code> and <code>BrnCalendarView.range()</code> constructor and had its argument <code>startEndDateChange</code> removed.
- <code>BrnSelectionEntityListBean</code>: <code>fromMap</code> is renamed to <code>fromJson</code>.
- <code>BrnRadioButton</code>: optimize click area [#31](https://github.com/LianjiaTech/bruno/pull/31) , thanks to **a1017480401** .
- <code>BrnScrollableTextDialog</code>: remove Navigator.pop(context) in <code>onSubmit()</code> and hand it over to external processing (user).
- <code>BrnBubbleText</code>: add attribute <code>bgColor</code> and <code>textStyle</code>
- <code>BrnPairInfoTable</code>: add attribute <code>defaultVerticalAlignment</code>
- <code>BrnBubbleText</code>: add attribute <code>bgColor</code> and <code>textStyle</code>.
- <code>BrnPairInfoTable</code>: add attribute <code>defaultVerticalAlignment</code>.
- <code>BrnDialog</code>: remove <code>BrnDialogStyle</code> and replace with <code>BrnDialogConfig</code>.



Expand Down
2 changes: 0 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'package:example/sample/home/home.dart';
import 'package:flutter/material.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'dart:async';

import 'package:bruno/bruno.dart';
Expand Down Expand Up @@ -157,18 +155,18 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
});
}

void _showCommonStylex(){
void _showCommonStylex() {
List<BrnCommonActionSheetItem> actions = [];
// 构建标题+辅助信息的普通项
actions.add(BrnCommonActionSheetItem(
'选项一(警示项)',
desc:'辅助信息辅助信息辅助信息辅助信息',
'选项一(警示项)',
desc: '辅助信息辅助信息辅助信息辅助信息',
actionStyle: BrnCommonActionSheetItemStyle.alert,
));
// 构建标题+辅助信息的普通项
actions.add(BrnCommonActionSheetItem(
'选项二',
desc:'辅助信息辅助信息辅助信息',
'选项二',
desc: '辅助信息辅助信息辅助信息',
actionStyle: BrnCommonActionSheetItemStyle.normal,
));
// 构建只有标题的普通项
Expand All @@ -189,7 +187,6 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
},
);
});

}

void _showCommonStyle1(BuildContext context) {
Expand Down Expand Up @@ -260,7 +257,7 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
}

void _showCommonCustomStyle(BuildContext context) {
List<BrnCommonActionSheetItem> actions =[];
List<BrnCommonActionSheetItem> actions = [];
actions.add(
BrnCommonActionSheetItem(
'选项一: 自定义主标题样式',
Expand Down Expand Up @@ -354,7 +351,8 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
// 通过statefulBuilder可以实现动态变换选项文案(本example只作为使用参考,请根据具体情况选择方式)
return StatefulBuilder(builder: (BuildContext context, StateSetter setState) {
return StatefulBuilder(
builder: (BuildContext context, StateSetter setState) {
if (!started) {
started = true;
// 设置timer,每1秒循环一次
Expand Down Expand Up @@ -428,7 +426,8 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
firstShareChannels: firstRowList,
clickCallBack: (int section, int index, BrnShareItem shareItem) {
int channel = shareItem.shareType;
BrnToast.show("channel: $channel, section: $section, index: $index", context);
BrnToast.show(
"channel: $channel, section: $section, index: $index", context);
},
cancelTitle: "自定义取消名字", // 取消按钮title可自定义
);
Expand Down Expand Up @@ -475,7 +474,8 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
secondShareChannels: secondRowList,
clickCallBack: (int section, int index, BrnShareItem shareItem) {
int channel = shareItem.shareType;
BrnToast.show("channel: $channel, section: $section, index: $index", context);
BrnToast.show(
"channel: $channel, section: $section, index: $index", context);
},
clickInterceptor: (int section, int index, BrnShareItem shareItem) {
if (shareItem.canClick) {
Expand All @@ -491,7 +491,7 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {

void _showShareThreeStyle(BuildContext context) {
List<BrnShareItem> firstRowList = [];
List<BrnShareItem> secondRowList =[];
List<BrnShareItem> secondRowList = [];
firstRowList.add(BrnShareItem(
BrnShareItemConstants.shareWeiXin,
canClick: true,
Expand All @@ -511,7 +511,8 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
secondShareChannels: secondRowList,
clickCallBack: (int section, int index, BrnShareItem shareItem) {
int channel = shareItem.shareType;
BrnToast.show("channel: $channel, section: $section, index: $index", context);
BrnToast.show(
"channel: $channel, section: $section, index: $index", context);
},
);
actionSheet.show(context);
Expand All @@ -531,7 +532,8 @@ class _ActionSheetEntryPageState extends State<ActionSheetEntryPage> {
firstShareChannels: firstRowList,
clickCallBack: (int section, int index, BrnShareItem shareItem) {
int channel = shareItem.shareType;
BrnToast.show("channel: $channel, section: $section, index: $index", context);
BrnToast.show(
"channel: $channel, section: $section, index: $index", context);
},
);
actionSheet.show(context);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@


import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';

class SelectedListActionSheetExamplePage extends StatefulWidget {
@override
State<StatefulWidget> createState() => SelectedListActionSheetExamplePageState();
State<StatefulWidget> createState() =>
SelectedListActionSheetExamplePageState();
}

class SelectedListActionSheetExamplePageState
Expand Down Expand Up @@ -64,7 +63,7 @@ class SelectedListActionSheetExamplePageState
if (!controller.isHidden) {
controller.dismiss();
} else {
if ( _data.length <= 0) {
if (_data.length <= 0) {
BrnToast.show('数据为空,弹窗不展示', context);
return;
}
Expand All @@ -89,7 +88,8 @@ class SelectedListActionSheetExamplePageState
),
),
),
itemTitleBuilder: (int index, String? entity) {
itemTitleBuilder:
(int index, String? entity) {
return entity;
},
onClear: () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';

Expand All @@ -11,7 +9,8 @@ class BottomTabbarExample extends StatefulWidget {
}
}

class BottomTabbarExampleState extends State<BottomTabbarExample> with SingleTickerProviderStateMixin {
class BottomTabbarExampleState extends State<BottomTabbarExample>
with SingleTickerProviderStateMixin {
/// 选中的index
int _selectedIndex = 0;

Expand Down Expand Up @@ -97,24 +96,32 @@ class BottomTabbarExampleState extends State<BottomTabbarExample> with SingleTic
items: <BrnBottomTabBarItem>[
// 定义每个BottomTabBarItem,子属性请看源码
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
activeIcon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
activeIcon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[1])),
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[2])),
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
activeIcon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
activeIcon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[3])),
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[4])),
BrnBottomTabBarItem(
icon: Image(image: AssetImage("assets/icons/navbar_house.png")),
icon:
Image(image: AssetImage("assets/icons/navbar_house.png")),
title: Text(titles[5])),
],
),
Expand All @@ -129,7 +136,8 @@ class BottomTabbarExampleState extends State<BottomTabbarExample> with SingleTic
currentIndex: _selectedIndexTest1,
onTap: _onItemSelectedTest1,
items: <BrnBottomTabBarItem>[
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
],
),
Padding(
Expand All @@ -141,14 +149,22 @@ class BottomTabbarExampleState extends State<BottomTabbarExample> with SingleTic
currentIndex: _selectedIndexTest2,
onTap: _onItemSelectedTest2,
items: <BrnBottomTabBarItem>[
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text(titles[0])),
],
),
Padding(
Expand All @@ -160,14 +176,22 @@ class BottomTabbarExampleState extends State<BottomTabbarExample> with SingleTic
currentIndex: _selectedIndexTest3,
onTap: _onItemSelectedTest3,
items: <BrnBottomTabBarItem>[
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("1111111111")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("2222222222")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("3333333333")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("4444444444")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("5555555555")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("6666666666")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("7777777777")),
BrnBottomTabBarItem(icon: Icon(icons[0]), title: Text("8888888888")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("1111111111")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("2222222222")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("3333333333")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("4444444444")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("5555555555")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("6666666666")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("7777777777")),
BrnBottomTabBarItem(
icon: Icon(icons[0]), title: Text("8888888888")),
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class BottomButtonEntryWidget extends StatelessWidget {
isShowLine: false,
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BrnCommonBottomExample();
}));
},
Expand All @@ -32,7 +33,8 @@ class BottomButtonEntryWidget extends StatelessWidget {
describe: '全选、已选、主按钮、次按钮',
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BrnSelectionBottomButtonExample();
}));
},
Expand Down
19 changes: 12 additions & 7 deletions example/lib/sample/components/button/button_entry_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class ButtonEntryPage extends StatelessWidget {
isSupportTheme: true,
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BigMainButtonExample();
}));
},
Expand All @@ -39,7 +40,8 @@ class ButtonEntryPage extends StatelessWidget {
describe: '宽度为屏幕宽度,背景色为白色,带有边框线',
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BigOutlineButtonExample();
}));
},
Expand All @@ -49,7 +51,8 @@ class ButtonEntryPage extends StatelessWidget {
describe: '宽度为屏幕宽度,背景色为次级辅助色',
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BigFuButtonExample();
}));
},
Expand All @@ -60,7 +63,8 @@ class ButtonEntryPage extends StatelessWidget {
describe: '宽度为屏幕宽度,背景色为浅主题色',
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BigGhostButtonExample();
}));
},
Expand All @@ -71,7 +75,8 @@ class ButtonEntryPage extends StatelessWidget {
isSupportTheme: true,
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BrnSmallMainButtonExample();
}));
},
Expand All @@ -82,12 +87,12 @@ class ButtonEntryPage extends StatelessWidget {
describe: '最小宽度为84,宽度自适应文字',
describeColor: Color(0xFF222222),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(builder: (context) {
Navigator.of(context)
.push(MaterialPageRoute(builder: (context) {
return BrnSmallOutlineButtonExample();
}));
},
),

],
),
),
Expand Down
Loading

0 comments on commit 480ad3c

Please sign in to comment.