wechat_flutter

GitHub stars GitHub forks GitHub issues

If there is a problem that other dependencies cannot be compiled, you can try to remove the “^” of all dependencies in dependencies in pubspec.yaml or change the plug-in version number to any, and try to compile again. 6 If there is still an error, execute flutter 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 the pubspec.yaml file is compatible with your local Flutter.

Related documents

List of problems and solutions

课程说明

本项目出配套课程啦,耗时6个月打造,flutter3最新版本,从0到1实现微信,包含im聊天单聊群聊功能:https://edu.csdn.net/course/detail/39189

课程demo下载地址 https://wwpj.lanzouu.com/s/wechat-new-demo

log

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! start.gif

Effect

1.gif 2.gif 3.gif
4.gif 5.gif 6.gif
7.gif 8.gif 9.gif

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

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

IOS

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, 3.0.5, on macOS 13.0 22A5331f darwin-x64, locale en-CN)
    • Flutter version 3.0.5 at /opt/fvm/versions/3.0.5
    • Upstream repository unknown
    • Framework revision f1875d570e (1 year, 5 months ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.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 33.0.0)
    • Android SDK at /Users/q1/android-sdk-macosx
    • Platform android-34, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • 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.3)
    • 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.13+0-b1751.21-8125866)

[✓] VS Code (version 1.84.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (3 available)
    • SHARK KSR A0 (mobile) • 6fc7fbe3 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)       • macos    • darwin-x64     • macOS 13.0 22A5331f darwin-x64
    • Chrome (web)          • chrome   • web-javascript • Google Chrome 120.0.6099.129

[✓] HTTP Host Availability
    • All required HTTP hosts are available

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

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.