Skip to content

Commit

Permalink
发布 Fair 3.2.1 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
yancechen committed Apr 13, 2023
1 parent eb845ed commit 4b19267
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 32 deletions.
9 changes: 7 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![social preview](social-dark.png)

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

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

## 🔨最近版本

### 3.2.1
更新时间:2023.04.13

- 修复了一些bug.

### 3.2.0
更新时间:2023.04.12

Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![social preview](social-dark.png)
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
<p align="center">
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.1-orange" alt="pub"></a>
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
Expand Down Expand Up @@ -50,7 +50,7 @@ Assuming that the fair project and your own project are in the same folder:
```yaml
# add Fair dependency
dependencies:
fair: 3.2.0
fair: 3.2.1

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

## versions

### 3.2.1
updateDate:2023.04.13

- Fixed some issues.

### 3.2.0
updateDate:2023.04.12

Expand Down
3 changes: 3 additions & 0 deletions fair/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [3.2.1]
* Fixed some issues.

## [3.2.0]
* Adjust the call sequence of dispose;
* Fix for #244 IconData making it impossible to make tree-shake-icons.
Expand Down
4 changes: 2 additions & 2 deletions fair/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img src="https://fair.58.com/logo.png">
</p>
<p align="center">
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.0-orange" alt="pub"></a>
<a href="https://pub.dev/packages/fair"><img src="https://img.shields.io/badge/pub-3.2.1-orange" alt="pub"></a>
<a href="https://github.com/wuba/fair"><img src="https://img.shields.io/badge/platform-flutter-blue.svg" alt="github"></a>
<a href="https://fair.58.com/"><img src="https://img.shields.io/badge/doc-fair.58.com-green.svg" alt="doc"></a>
<a href="https://github.com/wuba/fair/LICENSE"><img src="https://img.shields.io/badge/license-BSD-green.svg" alt="license"></a>
Expand All @@ -19,7 +19,7 @@ We create Fair so we can dispatch UI changes to users as bundle(s), the way simi
Use Flutter Fair require few steps. Add dependency inside `pubspec.yaml`.
```yaml
dependencies:
fair: ^3.2.0
fair: ^3.2.1
```
Wrap your app with FairApp Widget.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ class JRListState extends State<JRListWidget> {
//下拉刷新
displacement: 10.0,
onRefresh: _onRefresh,
child: Sugar.ifEqualBool(listIsEmpty(),
trueValue: Center(
child: CircularProgressIndicator(), //没有数据就转圈
),
falseValue: ListView.builder(
controller: _scrollController,
itemCount: _itemCount(),
itemBuilder: _itemBuilder))),
child: Text('123'),
// child: Sugar.ifEqualBool(listIsEmpty(),
// trueValue: Center(
// child: CircularProgressIndicator(), //没有数据就转圈
// ),
// falseValue: ListView.builder(
// controller: _scrollController,
// itemCount: _itemCount(),
// itemBuilder: _itemBuilder))
),
),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ class PermissionPageState extends State<PermissionPage> {
body: Container(
child: Column(
children: [
Sugar.ifEqual(picUrl, '',
trueValue: Image.network(
'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png',
width: 500,
height: 250,
),
falseValue: Image.file(
File(picUrl),
width: 500,
height: 250,
)),
// Sugar.ifEqual(picUrl, '',
// trueValue: Image.network(
// 'https://img.58cdn.com.cn/logo/58/252_84/logo-o.png',
// width: 500,
// height: 250,
// ),
// falseValue: Image.file(
// File(picUrl),
// width: 500,
// height: 250,
// )),
Text('点击按钮拍照'),
MaterialButton(
color: Colors.grey,
Expand Down
6 changes: 3 additions & 3 deletions fair/example/lib/src/page/sugars/ifequal_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ class _State extends State<IfEqualPage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Sugar.ifEqual(_count, 2,
falseValue: Image.asset('assets/image/logo.png'),
trueValue: Image.asset('assets/image/logo2.png')),
// Sugar.ifEqual(_count, 2,
// falseValue: Image.asset('assets/image/logo.png'),
// trueValue: Image.asset('assets/image/logo2.png')),
Padding(
padding: EdgeInsets.only(top: 20),
child: Text('_count = $_count'),
Expand Down
6 changes: 3 additions & 3 deletions fair/example/lib/src/page/sugars/ifequalbool_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class _State extends State<IfEqualBoolPage> {
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Sugar.ifEqualBool(_countCanMod2(),
falseValue: Image.asset('assets/image/logo.png'),
trueValue: Image.asset('assets/image/logo2.png')),
// Sugar.ifEqualBool(_countCanMod2(),
// falseValue: Image.asset('assets/image/logo.png'),
// trueValue: Image.asset('assets/image/logo2.png')),
Padding(
padding: EdgeInsets.only(top: 20),
child: Text('_count = $_count'),
Expand Down
2 changes: 1 addition & 1 deletion fair/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fair
description: Flutter Fair is a package used to update widget dynamically.
version: 3.2.0
version: 3.2.1
homepage: https://fair.58.com/

environment:
Expand Down

0 comments on commit 4b19267

Please sign in to comment.