Skip to content

Commit

Permalink
Release master (#124)
Browse files Browse the repository at this point in the history
* update readme and pubspec version

* merge 2.2.x

* remove dialogStyle

* compress mp4 demo video and delete apk
  • Loading branch information
hexintao authored Mar 10, 2022
1 parent 480ad3c commit 3c2ed34
Show file tree
Hide file tree
Showing 75 changed files with 1,336 additions and 1,212 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ Thanks again to **leftcoding**, **jojinshallar**, **laiiihz**, **donywan**,
- First publish adapt flutter sdk 1.22.4



1 change: 1 addition & 0 deletions README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,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.0 | 2.2.2-null safety |

> Attention although we have adapted version 2.2.2, support for null-safe is in the works. We'll keep you updated on github as soon as possible, so stay tuned to 🙂.
Expand Down
Binary file modified demo/Overview.MP4
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,30 @@ BrnAbnormalStateWidget({
this.topPercent: 0.08,
this.themeData,
}) {
this.themeData ??= BrnEmptyConfig();
this.themeData ??= BrnAbnormalStateConfig();
this.themeData = BrnThemeConfigurator.instance
.getConfig(configId: this.themeData.configId)
.emptyConfig
.getConfig(configId: this.themeData!.configId)
.abnormalStateConfig
.merge(this.themeData);
}
```

### 参数说明

| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** |
| ---------------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------ | -------------------------- |
| img | Image | 图片 || |
| title | String | 标题 || |
| content | String | 内容 || |
| 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 |
| topOffset | double | 顶部距离,默认为 null,走自动计算逻辑:父视图高度的 8%,可自己指定高度 || null |
| bgColor | Color | 背景色 || Colors.white |
| isCenterVertical | bool | 内容是否垂直居中 || false |
| topPercent | double | 距顶部高度百分比 || 0.08 |
| **参数名** | **参数类型** | **描述** | **是否必填** | **默认值** |
| ---------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------ | -------------------------- |
| img | Image? | 图片 || null |
| title | String? | 标题 || null |
| content | String? | 内容 || null |
| operateAreaType | enum OperateAreaType { SingleButton, DoubleButton, TextButton } | 操作区类型。SingleButton 为【单按钮】效果 DoubleButton 为【双按钮】效果 TextButton 为【文字链】效果 || OperateAreaType.TextButton |
| operateTexts | `List<String>?` | 操作区文案 || null |
| action | `BrnEmptyStatusIndexedActionClickCallback? = void Function(int index)index?` | 点击回调,在 SingleButton 类型或者 enablePageTap = true 点击空白区域时返回 0;其他根据点击的位置返回。 || |
| enablePageTap | bool | 空白区域是否可点击 || false |
| topOffset | double? | 顶部距离,默认为 null,走自动计算逻辑:父视图高度的 8%,可自己指定高度 || null |
| bgColor | Color | 背景色 || Colors.white |
| isCenterVertical | bool | 内容是否垂直居中 || false |
| topPercent | double | 距顶部高度百分比 || 0.08 |
| themeData | BrnAbnormalStateConfig? | 主题配置 |||

## 四、代码演示

Expand Down
Loading

0 comments on commit 3c2ed34

Please sign in to comment.