Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/null-safe' into 2.2.x (#102)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
17 people authored Mar 4, 2022
1 parent d8234a9 commit 045a2d6
Show file tree
Hide file tree
Showing 384 changed files with 14,113 additions and 12,763 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,6 @@ build/
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
pubspec.lock

# FVM
.fvm
44 changes: 42 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,44 @@
## [1.0.0] - first publish adapter flutter sdk 1.22.4

## [2.0.0] - adapter flutter sdk 2.2.2

## [2.1.0-Beta] - 2022-2-15
### Changed

#### base

- **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
- <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>



### Fixed

- Fix example error [#71](https://github.com/LianjiaTech/bruno/issues/71) thanks to **leftcoding** fixing this issue.
- Fix <code>BrnPickerTitleConfig</code> <code>titleContent</code> setting is invalid [#70](https://github.com/LianjiaTech/bruno/issues/70).
- Optimize <code>BrnPopupWindow </code> <code>onItemClick</code> logic [#57 ](https://github.com/LianjiaTech/bruno/issues/57) .
- Fix <code>BrnDialog</code> is obscured by keyboard [#7](https://github.com/LianjiaTech/bruno/issues/7) .



Thanks again to **leftcoding**, **jojinshallar**, **laiiihz**, **donywan**, **kalifun**, **junlandroid**, **Kenneth**, **HappyImp**, **kkkman22** , **a1017480401** and **Alex**.



## [2.0.0] - 2021-12-8

- Adapt flutter sdk 2.2.2

## [1.0.0] - 2021-12-7

- First publish adapt flutter sdk 1.22.4



Binary file removed assets/icons/icon_uparrow.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ BrnAbnormalStateWidget({
| img | Image | 图片 || |
| title | String | 标题 || |
| content | String | 内容 || |
| operateAreaType | enum OperateAreaType { SingleButton, DoubleButton, TextButton } | 操作区类型。SingleButton 为【单按钮】效果 DoubleButton 为【双按钮】效果 TextButton 为【文字链】效果 || OperateAreaType.TextButton |
| operateAreaType | enum OperateAreaType { singleButton, doubleButton, textButton } | 操作区类型。SingleButton 为【单按钮】效果 DoubleButton 为【双按钮】效果 TextButton 为【文字链】效果 || OperateAreaType.TextButton |
| operateTexts | List | | | |
| action | BrnEmptyStatusIndexedActionClickCallback = void Function(int index)index 点击的位置 | 点击回调,在 SingleButton 类型或者 enablePageTap = true 点击空白区域时返回 0;其他根据点击的位置返回。 || |
| enablePageTap | bool | 空白区域是否可点击 || false |
Expand Down
2 changes: 1 addition & 1 deletion docs/components/form/BrnAddLabel/BrnAddLabel.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ BrnAddLabel({
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.LABEL_ADD | 外部可根据此字段判断表单项类型 |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.labelAdd | 外部可根据此字段判断表单项类型 |
| title | String | 录入项标题 || '' | |
| isEdit | bool | 录入项 是否可编辑 || true | true:可编辑false:禁用 |
| onTap | VoidCallback | 可操作区点击回调 ||| |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ BrnExpandFormGroup({
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.NORMAL_GROUP_TYPE | 外部可根据此字段判断表单项类型 |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.normalGroupType | 外部可根据此字段判断表单项类型 |
| title | String | 录入项标题 || '' | |
| subTitle | String | 录入项子标题 ||| |
| tipLabel | String | 录入项提示(问号图标&文案) 用户点击时触发onTip回调。 || 备注中类型3 | 1. 设置"空字符串"时展示问号图标 2. 设置"非空字符串"时展示问号图标&文案 3. 若不赋值或赋值为null时,不显示提示项 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BrnMultiChoiceInputFormItem({
this.title: "",
this.subTitle,
this.tipLabel,
this.prefixIconType: BrnPrefixIconType.TYPE_NORMAL,
this.prefixIconType: BrnPrefixIconType.normal,
this.error: "",
this.isEdit: true,
this.isRequire: true,
Expand All @@ -72,11 +72,11 @@ BrnMultiChoiceInputFormItem({
| **参数名** | 参数类型 | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType<br/>.MULTI_CHOICE_PORTRAIT_INPUT_TYPE | 外部可根据此字段判断表单项类型 |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.multiChoicePortraitInputType | 外部可根据此字段判断表单项类型 |
| title | String | 录入项标题 || '' | |
| subTitle | String | 录入项子标题 ||| |
| tipLabel | String | 录入项提示(问号图标&文案) 用户点击时触发 onTip 回调。 || 备注中类型 3 | 1. 设置"空字符串"时展示问号图标 2. 设置"非空字符串"时展示问号图标&文案 3. 若不赋值或赋值为 null 时,不显示提示项 |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.TYPE_NORMAL | 1. 不展示图标:BrnPrefixIconType.TYPE_NORMAL2. 展示加号图标:BrnPrefixIconType.TYPE_ADD3. 展示减号图标:BrnPrefixIconType.TYPE_REMOVE |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.normal | 1. 不展示图标:BrnPrefixIconType.normal2. 展示加号图标:BrnPrefixIconType.add3. 展示减号图标:BrnPrefixIconType.remove |
| error | String | 录入项错误提示 || '' | |
| isRequire | bool | 录入项是否为必填项(展示\*图标) 默认为 false 不必填 || false | |
| isEdit | bool | 录入项 是否可编辑 || true | true:可编辑 false:禁用 |
Expand Down Expand Up @@ -137,7 +137,7 @@ BrnMultiChoiceInputFormItem(

```dart
BrnMultiChoiceInputFormItem(
prefixIconType: BrnPrefixIconType.TYPE_ADD,
prefixIconType: BrnPrefixIconType.add,
isRequire: true,
error: "必填项不能为空",
title: "自然到访保护期",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ BrnMultiChoicePortraitInputFormItem(
this.title: "",
this.subTitle,
this.tipLabel,
this.prefixIconType: BrnPrefixIconType.TYPE_NORMAL,
this.prefixIconType: BrnPrefixIconType.normal,
this.error: "",
this.isEdit: true,
this.isRequire: false,
Expand All @@ -73,11 +73,11 @@ this.themeData = BrnThemeConfigurator.instance
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.MULTI_CHOICE_PORTRAIT_INPUT_TYPE | 外部可根据此字段判断表单项类型 |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.multiChoicePortraitInputType | 外部可根据此字段判断表单项类型 |
| title | String | 录入项标题 || '' | |
| subTitle | String | 录入项子标题 ||| |
| tipLabel | String | 录入项提示(问号图标&文案) 用户点击时触发onTip回调。 || 备注中类型3 | 1. 设置"空字符串"时展示问号图标 2. 设置"非空字符串"时展示问号图标&文案 3. 若不赋值或赋值为null时,不显示提示项 |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.TYPE\_NORMAL | 1. 不展示图标:BrnPrefixIconType.TYPE\_NORMAL 2. 展示加号图标:BrnPrefixIconType.TYPE\_ADD 3. 展示减号图标:BrnPrefixIconType.TYPE\_REMOVE |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.normal | 1. 不展示图标:BrnPrefixIconType.normal 2. 展示加号图标:BrnPrefixIconType.add 3. 展示减号图标:BrnPrefixIconType.remove |
| error | String | 录入项错误提示 || '' | |
| isRequire | bool | 录入项是否为必填项(展示`*`图标) 默认为 false 不必填 || false | |
| isEdit | bool | 录入项 是否可编辑 || true | true:可编辑false:禁用 |
Expand All @@ -94,9 +94,9 @@ this.themeData = BrnThemeConfigurator.instance
###### BrnPrefixIconType:
```dart
class BrnPrefixIconType {
static const String TYPE_NORMAL = "type_normal";
static const String TYPE_ADD = "type_add";
static const String TYPE_REMOVE = "type_remove";
static const String normal = "type_normal";
static const String add = "type_add";
static const String remove = "type_remove";
}
```
## 四、代码演示
Expand Down Expand Up @@ -138,7 +138,7 @@ BrnMultiChoicePortraitInputFormItem(

```dart
BrnMultiChoicePortraitInputFormItem(
prefixIconType: BrnPrefixIconType.TYPE_REMOVE,
prefixIconType: BrnPrefixIconType.remove,
isRequire: true,
error: "必填项不能为空",
title: "自然到访保护期",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BrnNormalFormGroup({
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | String | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.NORMAL_GROUP_TYPE | 外部可用此字段判断表单类型 |
| type | String | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.normalGroupType | 外部可用此字段判断表单类型 |
| title | String | 录入项标题 ||| |
| subTitle | String | 录入项子标题 ||| |
| tipLabel | String | 录入项提示(问号图标&文案) 用户点击时触发onTip回调。 || null | 1. 若赋值为 空字符串("")时仅展示"问号"图标,2. 若赋值为非空字符串时 展示"问号图标&文案",3. 若不赋值或赋值为null时 不显示提示项 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ BrnRadioInputFormItem(
this.title: "",
this.subTitle,
this.tipLabel,
this.prefixIconType: BrnPrefixIconType.TYPE_NORMAL,
this.prefixIconType: BrnPrefixIconType.normal,
this.error: "",
this.isEdit: true,
this.isRequire: false,
Expand All @@ -78,11 +78,10 @@ BrnRadioInputFormItem(
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** | **备注** |
| --- | --- | --- | --- | --- | --- |
| label | String | 录入项的唯一标识,主要用于录入类型页面框架中 ||| |
| type | Stirng | 录入项类型,主要用于录入类型页面框架中 || BrnInputItemType.TYPE_NORMAL | 外部可根据此字段判断表单项类型 |
| title | String | 录入项标题 || '' | |
| subTitle | String | 录入项子标题 ||| |
| tipLabel | String | 录入项提示(问号图标&文案) 用户点击时触发onTip回调。 || 备注中类型3 | 1. 设置"空字符串"时展示问号图标 2. 设置"非空字符串"时展示问号图标&文案 3. 若不赋值或赋值为null时,不显示提示项 |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.TYPE_NORMAL | 1. 不展示图标:BrnPrefixIconType.TYPE_NORMAL 2. 展示加号图标:BrnPrefixIconType.TYPE_ADD3. 展示减号图标:BrnPrefixIconType.TYPE_REMOVE |
| prefixIconType | String | 录入项前缀图标样式 "添加项" "删除项" 详见 **BrnPrefixIconType**|| BrnPrefixIconType.normal | 1. 不展示图标:BrnPrefixIconType.normal 2. 展示加号图标:BrnPrefixIconType.add3. 展示减号图标:BrnPrefixIconType.remove |
| error | String | 录入项错误提示 || '' | |
| isRequire | bool | 录入项是否为必填项(展示*图标) 默认为 false 不必填 || false | |
| isEdit | bool | 录入项 是否可编辑 || true | true:可编辑false:禁用 |
Expand All @@ -103,10 +102,10 @@ BrnRadioInputFormItem(


```dart
class BrnPrefixIconType {
static const String TYPE_NORMAL = "type_normal";
static const String TYPE_ADD = "type_add";
static const String TYPE_REMOVE = "type_remove";
class BrnPrefixIconType {
static const String normal = "type_normal";
static const String add = "type_add";
static const String remove = "type_remove";
}
```
## 四、代码演示
Expand Down Expand Up @@ -142,7 +141,7 @@ BrnRadioInputFormItem(
![](./img/BrnRadioInputFormItemDemo2.png)
```dart
BrnRadioInputFormItem(
prefixIconType: BrnPrefixIconType.TYPE_ADD,
prefixIconType: BrnPrefixIconType.add,
isRequire: true,
error: "必填项不能为空",
title: "自然到访保护期",
Expand Down Expand Up @@ -173,7 +172,7 @@ BrnRadioInputFormItem(
![](./img/BrnRadioInputFormItemDemo3.png)
```dart
BrnRadioInputFormItem(
prefixIconType: BrnPrefixIconType.TYPE_REMOVE,
prefixIconType: BrnPrefixIconType.remove,
isRequire: true,
title: "自然到访保护期",
subTitle: "这里是副标题",
Expand Down Expand Up @@ -203,7 +202,7 @@ BrnRadioInputFormItem(
![](./img/BrnRadioInputFormItemDemo4.png)
```dart
BrnRadioInputFormItem.autoLayout(
prefixIconType: BrnPrefixIconType.TYPE_REMOVE,
prefixIconType: BrnPrefixIconType.remove,
isRequire: true,
error: "必填项不能为空",
title: "autoLayout",
Expand Down
Loading

0 comments on commit 045a2d6

Please sign in to comment.