flutter_chat
1.0.0
利用極光IM實現的仿微信APP
声明:本项目仅供学习,如有侵权请联系本人进行删除。
手机号码:18601952581(微信同号)
QQ:1558053958
邮箱:[email protected]
可承接一些中小型项目、毕业设计等
IOS
如果出現(Connection refused - connect(2) for "raw.githubusercontent.com" port 443)
,表示還沒設定國內來源, 或嘗試下翻牆。
Flutter (Channel stable, 1.22.1, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
• Flutter version 1.22.1 at /System/Volumes/Data/workspace/flutter
• Framework revision f30b7f4db9 (3 周前), 2020-10-08 10:06:30 -0700
• Engine revision 75bef9f6c8
• Dart version 2.10.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/developer/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] Connected device (3 available)
• MI 5X • 1c7664100104 • android-arm64 • Android 8.1.0 (API 27)
• iPhone 11 Pro Max • B366D105-9EEC-47E4-A0CE-94C43E9ACD2D • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator)
如果你還沒升級flutter版本到1.17.0,那就把provider的版本改為4.0.5+1
專案中某些介面為http url,Android 9.0/P和iOS禁止從非https網址加載,故需更改App 的網路安全配置以允許此類連接
Android
在res 下方新增一個xml 目錄,建立network_security_config.xml文件
<? xml version = " 1.0 " encoding = " utf-8 " ?>
< network-security-config >
< base-config cleartextTrafficPermitted = " true " />
</ network-security-config >
在AndroidManifest.xml檔案下的application標籤增加以下屬性
< application
android : networkSecurityConfig = " @xml/network_security_config "
/>
iOS
在Info.plist下編輯
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
如果您喜歡我的Flutter版仿微信App,或感覺幫助到了您,可以點右上角“Star”支持一下,您的支持就是我的動力,謝謝?
您也可以掃描下面的二維碼,請作者喝杯咖啡☕️
Apache 2.0