Skip to content

Commit 60d6eaf

Browse files
committed
发布 fair_version 3.7.0 版本
1 parent 17a2faf commit 60d6eaf

File tree

22 files changed

+18103
-0
lines changed

22 files changed

+18103
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
build/
32+
33+
# Android related
34+
**/android/**/gradle-wrapper.jar
35+
**/android/.gradle
36+
**/android/captures/
37+
**/android/gradlew
38+
**/android/gradlew.bat
39+
**/android/local.properties
40+
**/android/**/GeneratedPluginRegistrant.java
41+
42+
# iOS/XCode related
43+
**/ios/**/*.mode1v3
44+
**/ios/**/*.mode2v3
45+
**/ios/**/*.moved-aside
46+
**/ios/**/*.pbxuser
47+
**/ios/**/*.perspectivev3
48+
**/ios/**/*sync/
49+
**/ios/**/.sconsign.dblite
50+
**/ios/**/.tags*
51+
**/ios/**/.vagrant/
52+
**/ios/**/DerivedData/
53+
**/ios/**/Icon?
54+
**/ios/**/Pods/
55+
**/ios/**/.symlinks/
56+
**/ios/**/profile
57+
**/ios/**/xcuserdata
58+
**/ios/.generated/
59+
**/ios/Flutter/App.framework
60+
**/ios/Flutter/Flutter.framework
61+
**/ios/Flutter/Flutter.podspec
62+
**/ios/Flutter/Generated.xcconfig
63+
**/ios/Flutter/app.flx
64+
**/ios/Flutter/app.zip
65+
**/ios/Flutter/flutter_assets/
66+
**/ios/Flutter/flutter_export_environment.sh
67+
**/ios/ServiceDefinitions.json
68+
**/ios/Runner/GeneratedPluginRegistrant.*
69+
70+
# Exceptions to above rules.
71+
!**/ios/**/default.mode1v3
72+
!**/ios/**/default.mode2v3
73+
!**/ios/**/default.pbxuser
74+
!**/ios/**/default.perspectivev3
75+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
76+
pubspec.lock
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: fba99f6cf9a14512e461e3122c8ddfaa25394e89
8+
channel: unknown
9+
10+
project_type: package
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## 3.7.0
2+
* Generated from flutter 3.7.0
3+
4+
## 3.3.0
5+
* Generated from flutter 3.3.0
6+
7+
## 3.0.0
8+
* Generated from flutter 3.0.0
9+
10+
## 2.10.0
11+
* Generated from flutter 2.10.0
12+
13+
## 2.8.0
14+
* Generated from flutter 2.8.0
15+
16+
## 2.5.0+1
17+
* Generated from flutter 2.5.0
18+
* Add the LinearGradient to the mapping table
19+
20+
## 2.5.0
21+
* Generated from flutter 2.5.0
22+
23+
## 2.0.6+2
24+
* Generated from flutter 2.0.6
25+
* Add the LinearGradient to the mapping table
26+
27+
## 2.0.6+1
28+
* Generated from flutter 2.0.6
29+
30+
## 1.22.6
31+
* Generated from flutter 1.22.6
32+
33+
## 0.2.0
34+
* Generated from flutter 1.22.4
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (C) 2005-present, 58.com. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without modification,
4+
are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above
9+
copyright notice, this list of conditions and the following
10+
disclaimer in the documentation and/or other materials provided
11+
with the distribution.
12+
* Neither the name of 58.com nor the names of its
13+
contributors may be used to endorse or promote products derived
14+
from this software without specific prior written permission.
15+
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
20+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
23+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Widget mapping used by [fair]
2+
3+
**Tips:**
4+
5+
- If your Flutter SDK is 2.0.6, we recommend that you use fair_version 2.0.6+2, like this:
6+
7+
```yaml
8+
dependency_overrides:
9+
fair_version: 2.0.6+2
10+
```
11+
12+
- If your Flutter SDK is 2.5.0/2.5.1/2.5.2/2.5.3, we recommend that you use fair_version 2.5.0+1, like this:
13+
14+
```yaml
15+
dependency_overrides:
16+
fair_version: 2.5.0+1
17+
```
18+
19+
- If your Flutter SDK is 2.8.0/2.8.1, we recommend that you use fair_version 2.8.0, like this:
20+
21+
```yaml
22+
dependency_overrides:
23+
fair_version: 2.8.0
24+
```
25+
26+
- If your Flutter SDK is 2.10.0/2.10.1/2.10.2/2.10.3, we recommend that you use fair_version 2.10.0, like this:
27+
28+
```yaml
29+
dependency_overrides:
30+
fair_version: 2.10.0
31+
```
32+
33+
- If your Flutter SDK is 3.0.0/3.0.1/3.0.2/3.0.3/3.0.4/3.0.5, we recommend that you use fair_version 3.0.0, like this:
34+
35+
```yaml
36+
dependency_overrides:
37+
fair_version: 3.0.0
38+
```
39+
40+
- If your Flutter SDK is 3.3.0/3.3.1/3.3.2/3.3.3/3.3.4/3.3.5/3.3.6/3.3.7/3.3.8/3.3.9/3.3.10, we recommend that you use fair_version 3.3.0, like this:
41+
42+
```yaml
43+
dependency_overrides:
44+
fair_version: 3.3.0
45+
```
46+
47+
- If your Flutter SDK is 3.7.0/3.7.1/3.7.2/3.7.3/3.7.4/3.7.5/3.7.6/3.7.7/3.7.8/3.7.9/3.7.10, we recommend that you use fair_version 3.7.0, like this:
48+
49+
```yaml
50+
dependency_overrides:
51+
fair_version: 3.7.0
52+
```
53+
54+
- v1.22.4 generated from Flutter SDK 1.22.4
55+
- v1.22.6 generated from Flutter SDK 1.22.6
56+
- v2.0.6+1 generated from Flutter SDK 2.0.6
57+
- v2.0.6+2 generated from Flutter SDK 2.0.6
58+
- v2.5.0 generated from Flutter SDK 2.5.0
59+
- v2.5.0+1 generated from Flutter SDK 2.5.0
60+
- v2.8.0 generated from Flutter SDK 2.8.0
61+
- v2.10.0 generated from Flutter SDK 2.10.0
62+
- v3.0.0 generated from Flutter SDK 3.0.0
63+
- v3.3.0 generated from Flutter SDK 3.3.0
64+
- v3.7.0 generated from Flutter SDK 3.7.0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
linter:
7+
rules:
8+
lowercase_with_underscores: false
9+
prefer_single_quotes: false
10+
deprecated_member_use: false
11+
analyzer:
12+
exclude:
13+
- lib/src/widgets/all.dart
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
##################################################################
3+
##
4+
## Import package
5+
##
6+
##
7+
## Author: Chaobin Wu
8+
## Email : chaobinwu89@gmail.com
9+
##
10+
#################################################################
11+
die() {
12+
echo "$*"
13+
exit 1
14+
}
15+
# fix import of $$p.dart
16+
sed -i '' '11 i\
17+
import "dart:math" as math;' "lib/src/widgets/\$\$p.dart"
18+
# fix import of $$w.dart
19+
sed -i '' '14 i\
20+
part "../part/w.part.dart";' "lib/src/widgets/\$\$w.dart"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (C) 2005-present, 58.com. All rights reserved.
3+
* Use of this source code is governed by a BSD type license that can be
4+
* found in the LICENSE file.
5+
*/
6+
7+
export 'src/widgets/all.dart';
8+
export 'src/widgets/version.dart';
9+
export 'src/widgets/utils.dart';
10+
export 'src/widgets/module.dart';
11+
export 'src/fair_utf8.dart' if (dart.library.html) '';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import 'dart:ffi';
2+
import 'package:ffi/ffi.dart';
3+
4+
class FairUtf8 {
5+
6+
static String fromUtf8(Pointer<Utf8> data) {
7+
return data.toDartString();
8+
}
9+
10+
static dynamic toUtf8(String data) {
11+
return data.toNativeUtf8();
12+
}
13+
14+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (C) 2005-present, 58.com. All rights reserved.
3+
* Use of this source code is governed by a BSD type license that can be
4+
* found in the LICENSE file.
5+
*/
6+
7+
8+
import 'package:flutter/cupertino.dart';
9+
10+
const defaultThickness = CupertinoScrollbar.defaultThickness;
11+
const defaultThicknessWhileDragging =
12+
CupertinoScrollbar.defaultThicknessWhileDragging;
13+
const defaultRadius = CupertinoScrollbar.defaultRadius;
14+
const defaultRadiusWhileDragging =
15+
CupertinoScrollbar.defaultRadiusWhileDragging;
16+
const EdgeInsetsDirectional _kDefaultInsetGroupedRowsMargin =
17+
EdgeInsetsDirectional.fromSTEB(20.0, 0.0, 20.0, 10.0);
18+
const TextStyle _kDefaultPlaceholderStyle = TextStyle(
19+
fontWeight: FontWeight.w400,
20+
color: CupertinoColors.placeholderText,
21+
);

0 commit comments

Comments
 (0)