获取新肺炎实时动态App,支持Android和IOS。
-
2020.2.2 - 修复了统计的分隔符导致统计数据无法正常显示。
-
2020.2.6 - 修复了统计信息出错和诊疗无图标和对齐问题。
http://www.flutterj.com/nCoV-2019.apk
IOS:
拉下代码直接跑即可
![]() |
![]() |
![]() |
![]() |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- cached_network_image
在pubspec.yaml
文件中,关于flutter版本使用cached_network_image
插件问题,默认使用any,
因为你们刚安装上flutter为最新版本flutter。
# cached_network_image: ^1.1.1 # 1.9.0左右flutter版本的用这个
cached_network_image: any # 2.0.0左右flutter版本直接用any
- 使用命令(拉取项目):$ git clone https://github.com/fluttercandies/ncov_2019.git
- 然后命令(获取依赖):$ flutter packages get (IOS执行IOS部分再执行下一步)
- 最后命令(运行):$ flutter run
IOS
- 进入项目IOS目录:$ cd ios/
- 更新Pod(非必须):$ pod update
- 安装Pod:$ pod install
q1deMacBook-Pro:~ q1$ flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.5 18F2059,
locale zh-Hans-CN)
• Flutter version 1.9.1+hotfix.6 at /Users/q1/flutter
• Framework revision 68587a0916 (10 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/q1/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/q1/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1024-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2, Build version 11B52
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1024-b01)
[✓] Connected device (2 available)
• Android SDK built for x86 • emulator-5554 •
android-x86 • Android 10 (API 29) (emulator)
• iPhone 11 Pro Max • 1873AA1D-FC80-4074-9A7B-3C78C4D332F1 • ios
• com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)
! Doctor found issues in 1 category.
如果大家有好的意见或者有好的设计图的话可以群内找我。
Flutter交流QQ群:874592746
Flutter交流微信群: