forked from Sky24n/flutter_wanandroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thl
committed
Nov 26, 2019
1 parent
bd7cb99
commit e5d156f
Showing
18 changed files
with
108 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 更新说明 | ||
### v0.2.5 (2019.11.16) | ||
1.基础库升级。 | ||
2.一些优化~。 | ||
|
||
### v0.2.2 (2019.07.02) | ||
1.基础库升级。 | ||
2.修复OPPO R15详情页问题。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# 更新说明 | ||
### v0.2.5 (2019.11.16) | ||
1.基础库升级。 | ||
2.一些优化~。 | ||
|
||
### v0.2.2 (2019.07.02) | ||
1.基础库升级。 | ||
2.修复OPPO R15详情页问题。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
有关项目最新动态,可以关注App内第一条Hot Item信息。 | ||
|
||
### 运行本项目注意!!! | ||
本项目运行环境要求! | ||
本项目运行环境要求! Flutter Version (beta v1.10.7) | ||
``` | ||
ps:作者Futter版本 | ||
[✓] Flutter (Channel beta, v1.6.3, locale zh-Hans-CN) | ||
[✓] Flutter (Channel beta, v1.10.7, locale zh-Hans-CN) | ||
ps:以上是最低支持版本,如不是,请自行升级! | ||
|
@@ -46,6 +46,10 @@ flutter run --release | |
另外附送[login_demo](https://github.com/Sky24n/FlutterRepos/tree/master/login_demo)示例!关于App启动时,未登录跳登录页,已登录进主页。 | ||
|
||
### [更新说明](./CHANGELOGS.md) | ||
### v0.2.5 (2019.11.16) | ||
1.基础库升级。 | ||
2.一些优化~。 | ||
|
||
### v0.2.2 (2019.07.02) | ||
1.基础库升级。 | ||
2.修复OPPO R15详情页问题。 | ||
|
@@ -85,9 +89,9 @@ flutter run --release | |
<img src="https://gitee.com/uploads/images/2019/0506/004900_5e0bd537_506864.png" width="240"> <img src="https://raw.githubusercontent.com/Sky24n/LDocuments/master/AppImgs/flutter_wanandroid/splash_video.gif" width="240"> <img src="https://raw.githubusercontent.com/Sky24n/LDocuments/master/AppImgs/flutter_wanandroid/upgrade_download.gif" width="240"> | ||
|
||
### 安卓Apk | ||
点击下载 [新版v0.2.2](https://raw.githubusercontent.com/Sky24n/LDocuments/master/AppStore/flutter_wanandroid.apk) | ||
点击下载 [新版v0.2.5](https://raw.githubusercontent.com/Sky24n/LDocuments/master/AppStore/flutter_wanandroid.apk) | ||
|
||
扫码下载 新版v0.2.2 | ||
扫码下载 新版v0.2.5 | ||
![flutter_wanandroid](https://raw.githubusercontent.com/Sky24n/LDocuments/master/AppImgs/flutter_wanandroid/qrcode.png) | ||
|
||
### iOS:请自行clone项目代码运行。 | ||
|
@@ -437,22 +441,22 @@ double adapterSize = ScreenUtil.getAdapterSizeCtx(context, 100) | |
④ [Streams-Block-Reactive-Programming-in-Flutter](https://github.com/boeledi/Streams-Block-Reactive-Programming-in-Flutter) | ||
|
||
### 开源库 | ||
1. Dart常用工具类库[common_utils][common_utils_github](作者) | ||
1. Dart常用工具类库[common_utils][common_utils_github] | ||
该库包含TimerUtil(倒计时,定时任务),TimelineUtil(时间轴),DateUtil(日期格式化),RegexUtil(正则验证手机号,身份证,邮箱等等),RegexUtil(正则验证手机号,身份证,邮箱等等),NumUtil(保留x位小数, 精确加、减、乘、除, 防止精度丢失),MoneyUtil(元转分,分转元),ObjectUtil(判空),LogUtil(简单封装打印日志)。 | ||
如果你有不错的纯dart工具类或对已有对工具类有更好的优化建议,欢迎PR,大家一起维护~ | ||
2. Flutter常用工具类库[flustars][flustars_github](作者) | ||
2. Flutter常用工具类库[flustars][flustars_github] | ||
该库包含SpUtil(单例"同步" SharedPreferences 工具类),ScreenUtil(屏幕适配),WidgetUtil(Widget渲染监听,获取Widget宽高,在屏幕上的坐标)。 | ||
如果你有不错的Flutter工具类或对已有对工具类有更好的优化建议,欢迎PR,大家一起维护~ | ||
3. 汉字转拼音库[lpinyin](https://github.com/flutterchina/lpinyin)(作者) | ||
4. 国际化/多语言库[fluintl](https://github.com/Sky24n/fluintl)(作者) | ||
3. 汉字转拼音库[lpinyin](https://github.com/flutterchina/lpinyin) | ||
4. 国际化/多语言库[fluintl](https://github.com/Sky24n/fluintl) | ||
5. UI组件库[flukit](https://github.com/flutterchina/flukit) | ||
6. 网络请求[dio](https://github.com/flutterchina/dio) | ||
7. 图片加载[cached_network_image](https://github.com/renefloor/flutter_cached_network_image) | ||
8. 上拉加载和下拉刷新[pull_to_refresh](https://github.com/peng8350/flutter_pulltorefresh) | ||
9. [url_launcher](https://github.com/flutter/plugins/tree/master/packages/url_launcher) | ||
10. 点赞效果[LikeButton](https://github.com/yumi0629/LikeButton) | ||
11. 安卓webview增加滚动监听[webview_flutter](https://github.com/Sky24n/plugins/tree/master/packages/webview_flutter) | ||
12. 城市列表[azlistview](https://github.com/flutterchina/azlistview)(作者) | ||
12. 城市列表[azlistview](https://github.com/flutterchina/azlistview) | ||
|
||
### 项目问题汇总 | ||
Q1:Flutter国际化系统切换iOS不生效问题? | ||
|
@@ -467,10 +471,6 @@ Email : [email protected] | |
⭐⭐⭐ 如果您觉得本项目不错的话,来个star支持下作者吧! ⭐⭐⭐ | ||
关于项目任何问题请提交[issues](https://github.com/Sky24n/flutter_wanandroid/issues),私发QQ邮件将不再回复~ | ||
|
||
Flutter全局屏幕适配 [auto_size](https://github.com/flutterchina/auto_size) | ||
|
||
[![GitHub stars](https://img.shields.io/github/stars/flutterchina/auto_size.svg?style=social&label=Star)](https://github.com/flutterchina/auto_size) [![GitHub forks](https://img.shields.io/github/forks/flutterchina/auto_size.svg?style=social&label=Fork)](https://github.com/flutterchina/auto_size) [![GitHub watchers](https://img.shields.io/github/watchers/flutterchina/auto_size.svg?style=social&label=Watch)](https://github.com/flutterchina/auto_size) | ||
|
||
Flutter版玩安卓 [flutter_wanandroid](https://github.com/Sky24n/flutter_wanandroid) | ||
|
||
[![GitHub stars](https://img.shields.io/github/stars/Sky24n/flutter_wanandroid.svg?style=social&label=Star)](https://github.com/Sky24n/flutter_wanandroid) [![GitHub forks](https://img.shields.io/github/forks/Sky24n/flutter_wanandroid.svg?style=social&label=Fork)](https://github.com/Sky24n/flutter_wanandroid) [![GitHub watchers](https://img.shields.io/github/watchers/Sky24n/flutter_wanandroid.svg?style=social&label=Watch)](https://github.com/Sky24n/flutter_wanandroid) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.useAndroidX=true | ||
android.enableJetifier=true | ||
android.enableR8=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include ':app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
# This is a generated file; do not edit or check into version control. | ||
export "FLUTTER_ROOT=/Users/thl/Library/Android/flutter" | ||
export "FLUTTER_APPLICATION_PATH=/Users/thl/AndroidStudioProjects/smzc workspace/flutter_wanandroid" | ||
export "FLUTTER_TARGET=lib/main.dart" | ||
export "FLUTTER_BUILD_DIR=build" | ||
export "SYMROOT=${SOURCE_ROOT}/../build/ios" | ||
export "FLUTTER_FRAMEWORK_DIR=/Users/thl/Library/Android/flutter/bin/cache/artifacts/engine/ios" | ||
export "FLUTTER_BUILD_NAME=0.2.2" | ||
export "FLUTTER_BUILD_NUMBER=0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import 'dart:io'; | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/services.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:flustars/flustars.dart'; | ||
|
||
class Global { | ||
static const bool kReleaseMode = | ||
bool.fromEnvironment('dart.vm.product', defaultValue: false); | ||
|
||
//初始化全局信息 | ||
static Future init(VoidCallback callback) async { | ||
WidgetsFlutterBinding.ensureInitialized(); | ||
await SpUtil.getInstance(); | ||
callback(); | ||
if (Platform.isAndroid) { | ||
// 以下两行 设置android状态栏为透明的沉浸。写在组件渲染之后,是为了在渲染后进行set赋值,覆盖状态栏,写在渲染之前MaterialApp组件会覆盖掉这个值。 | ||
SystemUiOverlayStyle systemUiOverlayStyle = | ||
SystemUiOverlayStyle(statusBarColor: Colors.transparent); | ||
SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.