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

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

Merged
merged 110 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
0e14055
Null safe (#13)
zhoujuanjuan Dec 15, 2021
9fdb8fd
upgrade dependencies:collection to stable
laiiihz Dec 16, 2021
814920b
migrate constants to null safety
laiiihz Dec 16, 2021
5991726
migrate brn_multi_click_util to null safety
laiiihz Dec 16, 2021
540d5ce
migrate font util to null safety
laiiihz Dec 16, 2021
5ed705a
migrate brn_text_style to null safety
laiiihz Dec 16, 2021
9f41f43
migrate brn picker constants to null safety
laiiihz Dec 16, 2021
577299f
migrate brn appBar theme to null safety
laiiihz Dec 16, 2021
39281ea
optimize bruno theme's import (#16)
laiiihz Dec 20, 2021
ae53073
♻️ [NNBD] Part 1. Migrate configs (#28)
AlexV525 Dec 22, 2021
97b8b77
♻️ [NNBD] Part 2. Migrate utils (#30)
AlexV525 Dec 22, 2021
43acef4
:art: BrnSearchText (#36)
kalifun Dec 27, 2021
d2a37e0
Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null
zhoujuanjuan Dec 27, 2021
75a2be3
refactor:优化theme,暴露非null引用
zhoujuanjuan Dec 27, 2021
f97bf07
theme:去除无用信息及优化部分代码
zhoujuanjuan Dec 28, 2021
44ba17a
theme:增加属性类型
zhoujuanjuan Dec 28, 2021
d4a4212
Theme: 优化单例实现,初步优化 BrnAllThemeConfig 属性获取不为 null (#40)
zhoujuanjuan Dec 29, 2021
886c48e
🎨 utils-EventBus添加null-safe (#23)
kkkman22 Dec 30, 2021
081a7dc
refactor brn_toast (#33)
leftcoding Dec 30, 2021
cad7451
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Dec 31, 2021
c19203f
优化修复 EventBus
zhoujuanjuan Dec 31, 2021
7dff62a
优化 EventBus 单例实现 (#43)
zhoujuanjuan Dec 31, 2021
974e0da
brn_toast time change to seconds (#45)
leftcoding Jan 4, 2022
c96cdd3
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 4, 2022
3ef1aa2
migrate brn_loading to null safety (#32)
laiiihz Jan 4, 2022
2c99d35
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 4, 2022
6a36110
optimization brn_theme_configurator instance constructor (#47)
leftcoding Jan 4, 2022
c7ae392
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 5, 2022
6e0834b
迁移example ,优化常量命名,增加export
zhoujuanjuan Jan 4, 2022
5db665d
migrate brn_empty_status.dart
zhoujuanjuan Jan 5, 2022
976d588
Migrate BrnStateTag、BrnTagCustom、BrnSelectTag、BrnDeleteTag to null-sa…
violinday Jan 5, 2022
7c12fc8
删除 BrnThemeImg
zhoujuanjuan Jan 6, 2022
0b75394
Merge remote-tracking branch 'upstream/null-safe' into null-safe
zhoujuanjuan Jan 6, 2022
c00cfd5
fix:tagConfig merge方法增加判空处理
zhoujuanjuan Jan 6, 2022
ada5216
fix:revert tagConfig
zhoujuanjuan Jan 7, 2022
beec378
fix:BrnAbnormalStateWidget空处理
zhoujuanjuan Jan 7, 2022
7d3ed35
reset and migrated package [rating] to null-safety. (#42)
jojinshallar Jan 7, 2022
0203e9f
迁移example ,优化常量命名,增加export (#51)
zhoujuanjuan Jan 7, 2022
b852eb6
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 7, 2022
6df9863
空安全报错修改 (#55)
HappyImp Jan 7, 2022
e1a515e
优化sketch教程为视频教程
zhoujuanjuan Jan 10, 2022
46ec54a
Migrated package [selectcity] to null-safety (#56)
jojinshallar Jan 10, 2022
27dd619
migrate card_title to null safety (#59)
laiiihz Jan 10, 2022
e69a944
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 10, 2022
232f347
Migrated package [radio] to null-safety (#62)
jojinshallar Jan 11, 2022
e31532f
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 11, 2022
162fcfe
Migrated tabbar to null-safety
zhoujuanjuan Jan 11, 2022
fc0579a
Migrated package [guide] to null-safety (#65)
jojinshallar Jan 12, 2022
925350c
🚀 Use the latest Podfile for the example (#68)
AlexV525 Jan 12, 2022
4fe8680
Null safe calendar (#64)
laiiihz Jan 12, 2022
00c53b3
Card Components Null safe adapter (#53)
KennethYo Jan 12, 2022
2bd473f
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 12, 2022
103ab13
Migrated scroll_anchor to null-safety
zhoujuanjuan Jan 11, 2022
2c991c4
fix #71 (#77)
leftcoding Jan 13, 2022
2b141fd
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 13, 2022
7e25ffd
fix content_card themeData is not null (#79)
laiiihz Jan 13, 2022
2a4a43b
Null safe of all buttons (#20)
donywan Jan 14, 2022
8237c32
Migrated package [navbar][input] to null-safety (#75)
jojinshallar Jan 17, 2022
04b7a3e
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 17, 2022
5748da7
fix:修复迁移tabar问题
zhoujuanjuan Jan 17, 2022
244a957
Migrated tabbar & scroll_anchor to null-safety (#66)
zhoujuanjuan Jan 17, 2022
a8101d4
Migrate Selection to null-safe (#54)
violinday Jan 17, 2022
8c25d72
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 18, 2022
1c33fd9
migrate form to null safety
zhoujuanjuan Jan 18, 2022
07c308a
fix:修复tabbar报错及selection警告信息
zhoujuanjuan Jan 18, 2022
8e07cdf
Migrated package [dialog] to null-safety (#81)
jojinshallar Jan 19, 2022
fdf45af
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 19, 2022
488f70d
migrate brn_horizontal_steps、brn_step_line to null safety (#89)
leftcoding Jan 21, 2022
0704e89
migrate charts to null safety (#80)
laiiihz Jan 23, 2022
79cb687
migrate actionsheet into null-safe (#73)
junlandroid Jan 23, 2022
e1749fe
Merge remote-tracking branch 'upstream/null-safe' into null-safe
zhoujuanjuan Jan 24, 2022
0b4c168
fix:修复迁移问题
zhoujuanjuan Jan 24, 2022
3f3b4d3
fix:优化迁移部分问题key和style非空问题
zhoujuanjuan Jan 24, 2022
8344fb9
migrate form to null safety (#86)
zhoujuanjuan Jan 24, 2022
1b89f72
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 24, 2022
8b9e3ab
migrate picker to null safety
zhoujuanjuan Jan 24, 2022
8629bb0
migrate popup to null safety (#69)
hexintao Jan 24, 2022
04432c6
migrate gallery to null safety (#90)
Nayuta403 Jan 25, 2022
fbe085a
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 25, 2022
2d7fcc1
fix:修复picker空安全迁移问题
zhoujuanjuan Jan 25, 2022
49e9147
migrate appraise dir to null safety (#84)
hexintao Jan 25, 2022
a23e201
fix:修复list没指定泛型及if判断错误问题
zhoujuanjuan Jan 26, 2022
4fa42f7
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 26, 2022
33ed04a
fix:migrate dashed line to null safty
zhoujuanjuan Jan 26, 2022
a4c1a74
migrate picker to null safety (#91)
zhoujuanjuan Jan 26, 2022
4300e62
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Jan 26, 2022
069436d
migrate example to null safty
zhoujuanjuan Jan 26, 2022
3e28aa4
fix:修复部分example warning
zhoujuanjuan Jan 26, 2022
00f8a47
fix:修复demo报错问题
zhoujuanjuan Jan 27, 2022
8b17ba3
fix:追加未跟踪修复
zhoujuanjuan Jan 27, 2022
a526542
fix:优化部分接口可空参数为非空
zhoujuanjuan Jan 27, 2022
7add53d
Perf:Button Null safe (#93)
violinday Jan 27, 2022
966b63e
Merge branch 'null-safe' into null-safe
violinday Feb 7, 2022
5401fba
migrate example to null safety (#94)
zhoujuanjuan Feb 14, 2022
7028763
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Feb 14, 2022
4c62a0c
fix:修复tabar showmore overflow 问题 #98 以及 tabbar 标签颜色默认设置倒置问题
zhoujuanjuan Feb 16, 2022
140cd43
Fix #98 问题及优化部分代码 (#99)
zhoujuanjuan Feb 16, 2022
dcc5731
refactor:优化 BrnInputItemType 常量命名
zhoujuanjuan Feb 16, 2022
fb34dc0
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Feb 16, 2022
6b10b9c
refactor:优化枚举值命名
zhoujuanjuan Feb 16, 2022
589daf1
fix:修改docs目录下form相关常量命名及所有枚举命名
zhoujuanjuan Feb 16, 2022
a7ec085
优化 BrnInputItemType 常量命名 (#100)
zhoujuanjuan Feb 17, 2022
295b16a
Merge branch 'LianjiaTech:null-safe' into null-safe
zhoujuanjuan Feb 17, 2022
2ead0c1
refactor: 更新 changelog
zhoujuanjuan Feb 17, 2022
b67f8b9
Merge branch 'LianjiaTech:2.2.x' into 2.2.x
zhoujuanjuan Feb 17, 2022
f1d0efc
Merge remote-tracking branch 'origin/null-safe' into 2.2.x
zhoujuanjuan Feb 17, 2022
97f6a1f
refactor:BrnBubbleText 增加属性 bgColor、textStyle,修复demo actionSheet、gal…
zhoujuanjuan Feb 18, 2022
9748fac
fix:修复changelog 错误,brn_gallery_summary_page.dart 中标题空处理
zhoujuanjuan Feb 22, 2022
b0092e0
fix:修复部分问题
zhoujuanjuan Mar 4, 2022
d370e7b
fix:修复部分问题
zhoujuanjuan Mar 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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