Skip to content

Commit

Permalink
Merge branch '2.10.x'
Browse files Browse the repository at this point in the history
* 2.10.x:
  perf: `Example Theme`  修改 Example 主题色。 (#204)
  update version to 2.2.0 (#201)
  1.add BrnSwitchFormItem、BrnGeneralFormItem、BrnMetaSwitch (#198)
  Adapt to flutter 2.10.5 (#203)
  opt: expand bottomNavigationTile click area, not only the icon and label. (#202)
  sync the optimization of components. (#196)
  sync documents (#197)
  fix core rules analyze problems (#193)
  fix theme merge order error (#194)
  add type attribute and optimize iconColor usage (#192)
  perf: flutter analyze issues. (#189)
  fix: selection "不限" 选项无效 (#185)
  fix: Build failed due to use of deprecated Android v1 embedding. (#188)
  BrnTextBlockInputFormItem maxLines、minLines 参数设置可为 nulll,支持输入法换行,且展示行数随键入的文本自动扩长 (#181)
  fix BrnTitleFormItem attribute isRequire doesn't work (#183)
  fix: maxLength 100 -> 10 (#176)
  优化主题定制文档细节。 (#173)
  update version to 2.1.1 (#168)
  • Loading branch information
violinday committed Apr 29, 2022
2 parents 174ee28 + 66e9efe commit a8d77d6
Show file tree
Hide file tree
Showing 201 changed files with 3,093 additions and 1,049 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
java-version: '8.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.2.3'
flutter-version: '2.10.5'
- run: dart --version
- run: flutter --version
- run: flutter pub get
Expand All @@ -40,7 +40,7 @@ jobs:
java-version: '8.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '2.2.3'
flutter-version: '2.10.5'
- run: dart --version
- run: flutter --version
- run: flutter pub get
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
## [2.2.0] - 2022-4-29

### Changed

#### base
- Adapt flutter sdk 2.10.5.
- Fix flutter analyze issues.
- Fixed some component theme configurations customization not taking effect [#177](https://github.com/LianjiaTech/bruno/issues/177) .

#### components

**New components** <code>BrnSwitchFormItem</code> <code>BrnGeneralFormItem</code> <code>BrnMetaSwitch</code>.

- <code>BrnTitleFormItem</code>: fix <code>isRequire</code> parameter invalid [#179](https://github.com/LianjiaTech/bruno/issues/179).
- <code>BrnTextBlockInputFormItem</code> : change the <code>minLines</code> and <code>maxLines</code> attributes to be nullable [#181](https://github.com/LianjiaTech/bruno/pull/181) thanks to **xiao luobei**.
- <code>BrnSelectionView</code> : fix "unlimited" option not taking effect .
- <code>BrnBottomTabBar</code>: remove the restriction on <code> type</code> by <code> item.length</code> in the construction method.
- <code>BrnPairInfoTable</code> adds a callback attribute <code>onFolded</code> for expanding and collapsing state changes.
- <code>BrnCheckbox</code>: add attribute <code>crossAxisAlignment</code>.
- <code>BrnRadioButton</code>: add attribute <code>crossAxisAlignment</code>.
- <code>BrnMiddleInputDialog</code>: add attribute <code>themeData</code> support theme.
- <code>BrnTextButtonPanel</code>: optimize button display, fix the space cannot be filled in some cases.
- <code>BrnCommonCardTitle</code>: add attribute <code>titleMaxLines</code> and <code>titleOverflow</code>.
- <code>BrnMultiSelectDialog</code>: uses the default contentStyle of BrnDialogConfig.
- <code>BrnScrollableTextDialog</code>: optimize ScrollBar placement and styling.
- <code>BrnSingleSelectDialog</code>: Add click callback for closeIcon.
- <code>BrnSelectionView</code>: optimizes the data display of the [More] filter page, and supports the display of up to 2 rows.
- <code>BrnTextInputFormItem</code> <code>BrnTextBlockInputFormItem</code> <code>BrnTitleSelectInputFormItem</code> : add attribute <code>autofocus</code> and default value is false.
- <code>BrnAppBar</code> theme customization <code>BrnAppBarConfig</code> supports the attribute <code>showDefaultBottom</code> to control the bottom dividing line of the AppBar
- <code>BrnMultiDataPicker</code>: add default delegate implementation<code>BrnDefaultMultiDataPickerDelegate</code>.
- <code>BrnStepInputFormItem</code>: add attribute <code>canManualInput</code> and <code>controller</code> to support manual input function.
- <code>BrnPairInfoTable</code>: add a callback <code>onExpanded</code> for expanding and collapsing state changes.
- <code>BrnSearchText</code>: add attribute <code>inputFormatters</code><code>textInputType</code>.
- <code>BrnAnchorTab</code>: support content dynamic change.
- <code>BrnProgressBarChart</code>: when <code>barChartStyle</code> is <code>BarChartStyle.horizontal</code> support item click callback.



## [2.1.1] - 2022-4-1

### Changed
Expand Down
7 changes: 7 additions & 0 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ An enterprise-class package of Flutter components for mobile applications.

![](https://img.ljcdn.com/beike/zjz/bruno/img/1638883534391.png)

#### New components :tada: :tada: :tada:

<code>BrnSwitchButton</code> <code>BrnSwitchFormItem</code> <code>BrnGeneralFormItem</code>

<img src="https://img.ljcdn.com/beike/zjz/bruno/img/1651141461442.png" width="300" height="359" />

## ✨ Features

* Enterprise-class UI designed for mobile applications.
Expand All @@ -49,6 +55,7 @@ If you cannot access the demo, you can directly watch [Overview](https://github.
| 1.0.0 | 1.22.4 |
| 2.0.0 | 2.2.2 |
| 2.1.1 (support nullsafety) | 2.2.2 |
| 2.2.0 | 2.10.5 |


## Preparing for use
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@

![](https://img.ljcdn.com/beike/zjz/bruno/img/1638883534391.png)

#### 组件上新 :tada: :tada: :tada:

<code>BrnSwitchButton</code> <code>BrnSwitchFormItem</code> <code>BrnGeneralFormItem</code>

<img src="https://img.ljcdn.com/beike/zjz/bruno/img/1651141461442.png" width="300" height="359" />



## ✨ 特性

Expand All @@ -45,6 +52,7 @@
| 1.0.0 | 1.22.4 |
| 2.0.0 | 2.2.2 |
| 2.1.1 (支持空安全) | 2.2.2 |
| 2.2.0 | 2.10.5 |



Expand Down
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include: package:lints/core.yaml
# include: package:lints/recommended.yaml

analyzer:
exclude:
- doc/**
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@ BrnCommonActionSheet({

### 参数说明

| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ | ------------------------- |
| actions | `List<BrnCommonActionSheetItem>` | 用于存储每个选项的相关配置信息的列表(BrnActionItem 含有参数 title---选项标题文案(**必填**),desc----辅助信息文案,actionEleStyle----普通项或警示项,titleStyle---自定义主标题文本样式(覆盖 actionEleStyle)descStyle---自定义辅助信息文本样式(覆盖 actionEleStyle)) |||
| title | String? | 列表标题的文案 |||
| titleWidget | Widget? | 列表标题区域自定义 Widget |||
| cancelTitle | String? | 取消按钮的文案 || ''取消'' |
| maxTitleLines | Int | 列表标题文案最大行数 || 2 |
| onItemClickInterceptor | BrnCommonActionSheetItemClickInterceptor? =void( int index, BrnCommonActionSheetItem actionItem)? | **返回值为 bool**,返回值用于判断是否拦截点击事件,如果为**true**将拦截,用户点击将**不会触发 clickCallBack**,当前 actionSheet 也**不会消失**。如果为**false**,则不会造成任何影响,只是提前拦截了一下点击事件。 |||
| clickCallBack(默认回调后会执行 pop 操作,如过不想 pop,请使用 onItemClickInterceptor) | BrnCommonActionSheetItemClickCallBack?=void ( int index, BrnCommonActionSheetItem actionItem)? | **返回值为 void**,点击后回调方法(方法传参为被点击的按钮的**index**及相关配置信息**BrnActionItem**),使用者**根据参数自行配置响应动作**|||
| spaceColor | Color | “取消”按钮上方间隔颜色 || **Color(0xfff8f8f8)**浅灰 |
| separatorLineColor | Color? | 分割线颜色 || **Color(0xfff0f0f0)**浅灰 |
| maxSheetHeight | double | 列表最大高度限制 || 默认为0 |
| themeData | BrnActionSheetConfig? | ActionSheet 主题配置类,支持配置字段详见 BrnActionSheetConfig || |
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** |
| ------------------------------------------------------------ | ----------------------------------------- | ------------------------------------------------------------ | ------------ | ------------------------- |
| actions | `List<BrnCommonActionSheetItem>` | 用于存储每个选项的相关配置信息的列表(BrnActionItem 含有参数 title---选项标题文案(**必填**),desc----辅助信息文案,actionEleStyle----普通项或警示项,titleStyle---自定义主标题文本样式(覆盖 actionEleStyle)descStyle---自定义辅助信息文本样式(覆盖 actionEleStyle)) |||
| title | String? | 列表标题的文案 |||
| titleWidget | Widget? | 列表标题区域自定义 Widget |||
| cancelTitle | String? | 取消按钮的文案 || ''取消'' |
| maxTitleLines | Int | 列表标题文案最大行数 || 2 |
| onItemClickInterceptor | BrnCommonActionSheetItemClickInterceptor? | **返回值为 bool**,返回值用于判断是否拦截点击事件,如果为**true**将拦截,用户点击将**不会触发 clickCallBack**,当前 actionSheet 也**不会消失**。如果为**false**,则不会造成任何影响,只是提前拦截了一下点击事件。 |||
| clickCallBack(默认回调后会执行 pop 操作,如过不想 pop,请使用 onItemClickInterceptor) | BrnCommonActionSheetItemClickCallBack? | **返回值为 void**,点击后回调方法(方法传参为被点击的按钮的**index**及相关配置信息**BrnActionItem**),使用者**根据参数自行配置响应动作**|||
| spaceColor | Color | “取消”按钮上方间隔颜色 || **Color(0xfff8f8f8)**浅灰 |
| separatorLineColor | Color? | 分割线颜色 || **Color(0xfff0f0f0)**浅灰 |
| maxSheetHeight | double | 列表最大高度限制 || 默认为0 |
| themeData | BrnActionSheetConfig? | ActionSheet 主题配置类,支持配置字段详见 BrnActionSheetConfig || |

## 四、代码演示

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ BrnShareActionSheet({
| firstShareChannels | `List<BrnShareItem>?` | 第一行渠道列表 |||
| secondShareChannels | `List<BrnShareItem>?` | 第二行渠道列表 || |
| mainTitle | String? | 列表标题 || |
| clickCallBack | BrnShareActionSheetItemClickCallBack=void ( int section, int index, BrnShareItem shareItem)? | 点击分享渠道图标后回调方法 |||
| clickCallBack | BrnShareActionSheetItemClickCallBack? | 点击分享渠道图标后回调方法 |||
| cancelTitle | String? | 取消按钮的文案 || ''取消'' |
| context | BuildContext | BuidContext |||
| shareTextColor | Color | 分享渠道文案颜色 || Color(0xff999999)灰色 |
| textColor | Color | 选项标题颜色 || Color(0xff222222)黑色 |
| clickInterceptor | BrnShareActionSheetOnItemClickInterceptor? = void (int section, int index, BrnShareItem shareItem)? | 是否可点击(如果为预设类型,设置为不可点击后会变为相应的置灰图标)默认为true || |
| clickInterceptor | BrnShareActionSheetOnItemClickInterceptor? | 是否可点击(如果为预设类型,设置为不可点击后会变为相应的置灰图标)默认为true || |

### 其他数据

Expand Down
Loading

0 comments on commit a8d77d6

Please sign in to comment.