If there is a problem that other dependencies cannot be compiled, you can try to remove the "^" of all dependencies in
dependencies
inpubspec.yaml
or change the plug-in version number to any, and try to compile again. 6 If there is still an error, executeflutter clean
in the main directory of the project and run again. 7 If the plug-in version does not match, remember to check whether the plug-in flutter version introduced in thepubspec.yaml
file is compatible with your local Flutter.
Related documents
List of problems and solutions
Notice
本人远程全职或兼职接单flutter,任何疑难杂症也可以联系我,微信:18826987045.
I take flutter orders remotely full-time or part-time. If you have any intractable diseases, you can also contact me. Telegram: +86 18826987045.
log
-
2022.06.28 Replace the pure ui branch simulation picture address [12:00]
-
2022.06.28 create pure ui branch [10:00]
-
2022.05.28 Update environment information and post
problem list and solution
index -
2022.05.26 Began to be compatible with flutter2.10.4
-
2022.05.26 List the errors and how to fix them
-
2022.05.15 Repair and supplement Android installation package link and QR code
-
2021.11.08 Adapt to flutter 2.5
-
2021.05.12 Adapt to iOS, solve running problems
-
2021.05.10 Adapt to Flutter2 stable branch [11:45]
-
2021.05.10 Fix im plugin example can not get dependencies, fix
lib/ui/flutter/my_cupertino_dialog.dart
-
2021.01.16 Added a new payment page, waiting for the icon to be completed [14:49]
-
2021.01.16 Adapt to Flutter (Channel stable, 1.22.5)
-
2020.08.25 Adapt to Flutter (Channel stable, 1.20.2)
-
2020.07.29 Upload avatar capture error [15:45]
-
2020.07.29 Repair login, logout, and modify information reporting status management monitoring errors;
-
2020.06.30 Only when the group members are more than 20 will it display all group members, and the group owner will display the group management item [afternoon]
-
2020.06.30 Session list no session message judgment display, fix session error reporting, group announcement complete display [AM
-
2020.06.26 Quit group chat and disband group chat functions, chat member page, select member page [PM].
-
2020.06.26 Modify group chat name page, change chat background page, fix webView [AM].
-
2020.06.24 Group announcement, change group announcement message body content display, add group notes, add group QR code page;
-
2020.06.23 Group chat detail page creation;
-
2020.06.21 Session list chat content display expressions [10 points].
-
2020.06.20 Fix an error when recording video is finished [17:48].
-
2020.06.20 Remove the initialized tap effect [17 points
-
2020.06.20 Fix the empty session list [12:00].
-
2020.06.20 Fix group chat messages not appearing in the session list [09 points].
-
2020.06.18 Added WeChat tap effect;
-
2020.06.17 Added display of initiated group chat and group chat list;
-
2020.06.16 Added the function of chatting with expressions;
-
2020.06.15 Fix the package flashback problem;
-
2020.02.14 Adaptation of Flutter v1.17.3;
-
2020.02.16 adapt flutter v1.12.13 and Androidx, fix Android running problems;
-
2019.12.30 remove extended_text_field;
Introduction
wechat_flutter is a flutter version of WeChat, currently has implemented the basic functions of instant messaging, support for Android and IOS, specific download experience. Download it and experience it!
Effect
Download Experience(Android) [Test account 166, login directly]: https://wwc.lanzoul.com/iQlkj04vnhsj
To prevent the QR code above from not displaying:
For IOS, just pull down the project and run it directly.
Features
- text message
- Emotion messages
- Image messages
- Voice messages
- Delete session
- Language internationalization
- Account registration
- Account login
- Auto-login
- Session list
- Address Book
- Change avatar
- Show avatar
- Show nickname
- Change nickname
- Search for friends
- Add a friend
- Delete Friends
- Video shooting
- Video message
- Location messages
- Create a group chat
- Quit group chat
- Dismiss a group chat
- Group chat list
- Group chat announcement
- Modify group name
- Group chat message (text)
- Swipe
- Set notes
Third Party Framework
Library | Features |
---|---|
dim | instant messaging |
shared_preferences | persistent_storage |
provider | state management |
cached_network_image | Image caching |
toast | message alerts |
webview_flutter | web page display |
image_picker | image and video selection |
extended_text | extended_text |
url_launcher | open_browser_browse |
connectivity | check network connection |
photo_view | zoom in on images |
dio | network_frame |
open_file | open_file |
package_info | package information |
flutter_sound | Audio recording and processing |
permission_handler | permission management |
audioplayers | audio playback processing |
camera | camera |
video_player | video_players |
extended_text_field | extended_text_input |
flutter_image_compress | image compression |
lpinyin | Get Chinese pinyin |
azlistview | Special list slider |
wechat_assets_picker | WeChat image gallery |
Tutorials for using
- Use the command (pull the project): $ git clone https://github.com/fluttercandies/wechat_flutter.git
- Then command (get dependencies): $ flutter packages get (IOS execute the IOS part and then execute the next step)
- Final command (run): $ flutter run
IOS
- Enter the project IOS directory: $ cd ios/
- Update Pod (not required): $ pod update
- Install Pod: $ pod install
If you get (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)
, then you haven't set up the domestic source.
Or try to go over the wall.
My Flutter environment
[✓] Flutter (Channel unknown, 2.10.4, on macOS 12.2.1 21D62 darwin-x64, locale en-CN)
• Flutter version 2.10.4 at /opt/fvm/versions/2.10.4
• Upstream repository unknown
• Framework revision c860cba910 (9 weeks ago), 2022-03-25 00:23:12 -0500
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
• 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 31.0.0-rc1)
• Android SDK at /Users/q1/android-sdk-macosx
• Platform android-31, build-tools 31.0.0-rc1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.66.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.38.1
[✓] Connected device (3 available)
• SEA AL10 (mobile) • 6HJ4C20219007098 • android-arm64 • Android 10 (API 29)
• macOS (desktop) • macos • darwin-x64 • macOS 12.2.1 21D62 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 102.0.5005.61
[!] HTTP Host Availability
✗ HTTP host https://maven.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host: Operation timed out
! Doctor found issues in 1 category.
Problems running androidx.core:core
Error message:
Android dependency 'androidx.core:core' has different version for
the compile (1.0.0) and runtime (1.0.2) classpath.
manually set the same version via DependencyResolution
You should set the same version via DependencyResolution.
Solution
External Libraries
=> Flutter Plugins
=> image_picker-0.6.1+2
at the bottom of the project
=> android
=> build.gradle
then at the bottom there is androidx.core:core:version
.
Change it directly to androidx.core:core:1.0.0
.
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
}
dependencies {
implementation 'androidx.core:core:1.0.0'
implementation 'androidx.annotation:annotation:1.0.0'
}
}
And then change the permission_handler as well.
About the project has not been updated for too long
I'm sorry guys, but from now on I'm in maintenance mode. Sorry guys, from now on into maintenance.
Future
- Later the problems encountered in the project and the solution to the idea of writing a blog for everyone to learn.
- Imitation WeChat recording audio open source library : https://github.com/yxwandroid/flutter_plugin_record
- WeChat image library : https://github.com/fluttercandies/flutter_wechat_assets_picker
Flutter WeChat group
The above image cannot be displayed click me
Flutter tutorial website: www.flutterj.com
Flutter exchange QQ group: 874592746
LICENSE
fluttercandies/wechat_flutter is licensed under the
Apache License 2.0
A permissive license whose main conditions require preservation of copyright and license notices.
Contributors provide an express grant of patent rights.
Licensed works, modifications, and larger works may be distributed under different terms and without source code.