Skip to content

Commit 4b19267

Browse files
committed
发布 Fair 3.2.1 版本
1 parent eb845ed commit 4b19267

File tree

9 files changed

+47
-32
lines changed

9 files changed

+47
-32
lines changed

README-zh.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22

33
<p align="center">
4-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.1-orange" alt="pub"></a>
55
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
66
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
77
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -58,7 +58,7 @@ git clone https://github.com/wuba/fair.git
5858
```yaml
5959
# add Fair dependency
6060
dependencies:
61-
fair: 3.2.0
61+
fair: 3.2.1
6262

6363
# add build_runner and compiler dependency
6464
dev_dependencies:
@@ -176,6 +176,11 @@ Fair-Online 是面向Flutter 开发者,提供从Flutter 在线开发,到实
176176

177177
## 🔨最近版本
178178

179+
### 3.2.1
180+
更新时间:2023.04.13
181+
182+
- 修复了一些bug.
183+
179184
### 3.2.0
180185
更新时间:2023.04.12
181186

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![social preview](social-dark.png)
22
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
33
<p align="center">
4-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
4+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.1-orange" alt="pub"></a>
55
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
66
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
77
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -50,7 +50,7 @@ Assuming that the fair project and your own project are in the same folder:
5050
```yaml
5151
# add Fair dependency
5252
dependencies:
53-
fair: 3.2.0
53+
fair: 3.2.1
5454

5555
# add build_runner and compiler dependency
5656
dev_dependencies:
@@ -174,6 +174,11 @@ Hot update platform: [FAIR PUSHY](https://github.com/wuba/FairPushy)
174174

175175
## versions
176176

177+
### 3.2.1
178+
updateDate:2023.04.13
179+
180+
- Fixed some issues.
181+
177182
### 3.2.0
178183
updateDate:2023.04.12
179184

fair/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [3.2.1]
2+
* Fixed some issues.
3+
14
## [3.2.0]
25
* Adjust the call sequence of dispose;
36
* Fix for #244 IconData making it impossible to make tree-shake-icons.

fair/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="https://fair.58.com/logo.png">
33
</p>
44
<p align="center">
5-
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
5+
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.1-orange" alt="pub"></a>
66
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
77
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
88
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
@@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi
1919
Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`.
2020
```yaml
2121
dependencies:
22-
fair: ^3.2.0
22+
fair: ^3.2.1
2323
```
2424
2525
Wrap your app with FairApp Widget.

fair/example/lib/src/page/list/load-more/sample_logic_loadmore_page.dart

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,16 @@ class JRListState extends State<JRListWidget> {
119119
//下拉刷新
120120
displacement: 10.0,
121121
onRefresh: _onRefresh,
122-
child: Sugar.ifEqualBool(listIsEmpty(),
123-
trueValue: Center(
124-
child: CircularProgressIndicator(), //没有数据就转圈
125-
),
126-
falseValue: ListView.builder(
127-
controller: _scrollController,
128-
itemCount: _itemCount(),
129-
itemBuilder: _itemBuilder))),
122+
child: Text('123'),
123+
// child: Sugar.ifEqualBool(listIsEmpty(),
124+
// trueValue: Center(
125+
// child: CircularProgressIndicator(), //没有数据就转圈
126+
// ),
127+
// falseValue: ListView.builder(
128+
// controller: _scrollController,
129+
// itemCount: _itemCount(),
130+
// itemBuilder: _itemBuilder))
131+
),
130132
),
131133
);
132134
}

fair/example/lib/src/page/plugins/permission/sample_permission_page.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ class PermissionPageState extends State<PermissionPage> {
2828
body: Container(
2929
child: Column(
3030
children: [
31-
Sugar.ifEqual(picUrl, '',
32-
trueValue: Image.network(
33-
'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png',
34-
width: 500,
35-
height: 250,
36-
),
37-
falseValue: Image.file(
38-
File(picUrl),
39-
width: 500,
40-
height: 250,
41-
)),
31+
// Sugar.ifEqual(picUrl, '',
32+
// trueValue: Image.network(
33+
// 'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png',
34+
// width: 500,
35+
// height: 250,
36+
// ),
37+
// falseValue: Image.file(
38+
// File(picUrl),
39+
// width: 500,
40+
// height: 250,
41+
// )),
4242
Text('点击按钮拍照'),
4343
MaterialButton(
4444
color: Colors.grey,

fair/example/lib/src/page/sugars/ifequal_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class _State extends State<IfEqualPage> {
5454
child: Column(
5555
mainAxisAlignment: MainAxisAlignment.center,
5656
children: [
57-
Sugar.ifEqual(_count, 2,
58-
falseValue: Image.asset('assets/image/logo.png'),
59-
trueValue: Image.asset('assets/image/logo2.png')),
57+
// Sugar.ifEqual(_count, 2,
58+
// falseValue: Image.asset('assets/image/logo.png'),
59+
// trueValue: Image.asset('assets/image/logo2.png')),
6060
Padding(
6161
padding: EdgeInsets.only(top: 20),
6262
child: Text('_count = $_count'),

fair/example/lib/src/page/sugars/ifequalbool_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ class _State extends State<IfEqualBoolPage> {
6161
child: Column(
6262
mainAxisAlignment: MainAxisAlignment.center,
6363
children: [
64-
Sugar.ifEqualBool(_countCanMod2(),
65-
falseValue: Image.asset('assets/image/logo.png'),
66-
trueValue: Image.asset('assets/image/logo2.png')),
64+
// Sugar.ifEqualBool(_countCanMod2(),
65+
// falseValue: Image.asset('assets/image/logo.png'),
66+
// trueValue: Image.asset('assets/image/logo2.png')),
6767
Padding(
6868
padding: EdgeInsets.only(top: 20),
6969
child: Text('_count = $_count'),

fair/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fair
22
description: Flutter Fair is a package used to update widget dynamically.
3-
version: 3.2.0
3+
version: 3.2.1
44
homepage: https://fair.58.com/
55

66
environment:

0 commit comments

Comments
 (0)