├── .gitignore
├── .metadata
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── flutter_wechat_clone
│ │ │ │ └── MainActivity.kt
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── launch_background.xml
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-night
│ │ │ └── styles.xml
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── assets
├── fonts
│ └── iconfont.ttf
└── images
│ ├── default_nor_avatar.png
│ ├── ic_album.png
│ ├── ic_bottle_msg.png
│ ├── ic_cards_wallet.png
│ ├── ic_collections.png
│ ├── ic_emotions.png
│ ├── ic_feeds.png
│ ├── ic_fengchao.png
│ ├── ic_file_transfer.png
│ ├── ic_game_entry.png
│ ├── ic_group_chat.png
│ ├── ic_mini_program.png
│ ├── ic_new_friend.png
│ ├── ic_people_nearby.png
│ ├── ic_public_account.png
│ ├── ic_qrcode_preview_tiny.png
│ ├── ic_quick_scan.png
│ ├── ic_quick_search.png
│ ├── ic_settings.png
│ ├── ic_shake_phone.png
│ ├── ic_shopping.png
│ ├── ic_social_circle.png
│ ├── ic_tag.png
│ ├── ic_tx_news.png
│ ├── ic_wallet.png
│ └── ic_wx_games.png
├── ios
├── .gitignore
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Podfile
├── Podfile.lock
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── IDEWorkspaceChecks.plist
│ │ │ └── WorkspaceSettings.xcsettings
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── IDEWorkspaceChecks.plist
│ │ └── WorkspaceSettings.xcsettings
└── Runner
│ ├── AppDelegate.swift
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── Runner-Bridging-Header.h
├── lib
├── constants.dart
├── main.dart
├── model
│ ├── contacts.dart
│ └── conversation.dart
├── pages
│ ├── contacts_page.dart
│ ├── conversation_page.dart
│ ├── discover_page.dart
│ ├── main_page.dart
│ └── profile_page.dart
└── widgets
│ └── full_width_button.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-512.png
├── index.html
└── manifest.json
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: f4abaa0735eba4dfd8f33f73363911d63931fe03
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # flutter_wechat_clone
2 |
3 | A new Flutter project.
4 |
5 | ## Getting Started
6 |
7 | This project is a starting point for a Flutter application.
8 |
9 | A few resources to get you started if this is your first Flutter project:
10 |
11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
13 |
14 | For help getting started with Flutter, view our
15 | [online documentation](https://flutter.dev/docs), which offers tutorials,
16 | samples, guidance on mobile development, and a full API reference.
17 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.flutter_wechat_clone"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/flutter_wechat_clone/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.flutter_wechat_clone
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/assets/fonts/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/fonts/iconfont.ttf
--------------------------------------------------------------------------------
/assets/images/default_nor_avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/default_nor_avatar.png
--------------------------------------------------------------------------------
/assets/images/ic_album.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_album.png
--------------------------------------------------------------------------------
/assets/images/ic_bottle_msg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_bottle_msg.png
--------------------------------------------------------------------------------
/assets/images/ic_cards_wallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_cards_wallet.png
--------------------------------------------------------------------------------
/assets/images/ic_collections.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_collections.png
--------------------------------------------------------------------------------
/assets/images/ic_emotions.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_emotions.png
--------------------------------------------------------------------------------
/assets/images/ic_feeds.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_feeds.png
--------------------------------------------------------------------------------
/assets/images/ic_fengchao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_fengchao.png
--------------------------------------------------------------------------------
/assets/images/ic_file_transfer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_file_transfer.png
--------------------------------------------------------------------------------
/assets/images/ic_game_entry.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_game_entry.png
--------------------------------------------------------------------------------
/assets/images/ic_group_chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_group_chat.png
--------------------------------------------------------------------------------
/assets/images/ic_mini_program.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_mini_program.png
--------------------------------------------------------------------------------
/assets/images/ic_new_friend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_new_friend.png
--------------------------------------------------------------------------------
/assets/images/ic_people_nearby.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_people_nearby.png
--------------------------------------------------------------------------------
/assets/images/ic_public_account.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_public_account.png
--------------------------------------------------------------------------------
/assets/images/ic_qrcode_preview_tiny.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_qrcode_preview_tiny.png
--------------------------------------------------------------------------------
/assets/images/ic_quick_scan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_quick_scan.png
--------------------------------------------------------------------------------
/assets/images/ic_quick_search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_quick_search.png
--------------------------------------------------------------------------------
/assets/images/ic_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_settings.png
--------------------------------------------------------------------------------
/assets/images/ic_shake_phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_shake_phone.png
--------------------------------------------------------------------------------
/assets/images/ic_shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_shopping.png
--------------------------------------------------------------------------------
/assets/images/ic_social_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_social_circle.png
--------------------------------------------------------------------------------
/assets/images/ic_tag.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_tag.png
--------------------------------------------------------------------------------
/assets/images/ic_tx_news.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_tx_news.png
--------------------------------------------------------------------------------
/assets/images/ic_wallet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_wallet.png
--------------------------------------------------------------------------------
/assets/images/ic_wx_games.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/assets/images/ic_wx_games.png
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/ephemeral/
22 | Flutter/app.flx
23 | Flutter/app.zip
24 | Flutter/flutter_assets/
25 | Flutter/flutter_export_environment.sh
26 | ServiceDefinitions.json
27 | Runner/GeneratedPluginRegistrant.*
28 |
29 | # Exceptions to above rules.
30 | !default.mode1v3
31 | !default.mode2v3
32 | !default.pbxuser
33 | !default.perspectivev3
34 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
2 | #include "Generated.xcconfig"
3 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Uncomment this line to define a global platform for your project
2 | # platform :ios, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def flutter_root
14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 | unless File.exist?(generated_xcode_build_settings_path)
16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 | end
18 |
19 | File.foreach(generated_xcode_build_settings_path) do |line|
20 | matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 | return matches[1].strip if matches
22 | end
23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 | end
25 |
26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 |
28 | flutter_ios_podfile_setup
29 |
30 | target 'Runner' do
31 | use_frameworks!
32 | use_modular_headers!
33 |
34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35 | end
36 |
37 | post_install do |installer|
38 | installer.pods_project.targets.each do |target|
39 | flutter_additional_ios_build_settings(target)
40 | end
41 | end
42 |
--------------------------------------------------------------------------------
/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - Flutter (1.0.0)
3 | - FMDB (2.7.5):
4 | - FMDB/standard (= 2.7.5)
5 | - FMDB/standard (2.7.5)
6 | - path_provider (0.0.1):
7 | - Flutter
8 | - sqflite (0.0.2):
9 | - Flutter
10 | - FMDB (>= 2.7.5)
11 |
12 | DEPENDENCIES:
13 | - Flutter (from `Flutter`)
14 | - path_provider (from `.symlinks/plugins/path_provider/ios`)
15 | - sqflite (from `.symlinks/plugins/sqflite/ios`)
16 |
17 | SPEC REPOS:
18 | trunk:
19 | - FMDB
20 |
21 | EXTERNAL SOURCES:
22 | Flutter:
23 | :path: Flutter
24 | path_provider:
25 | :path: ".symlinks/plugins/path_provider/ios"
26 | sqflite:
27 | :path: ".symlinks/plugins/sqflite/ios"
28 |
29 | SPEC CHECKSUMS:
30 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c
31 | FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
32 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
33 | sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
34 |
35 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c
36 |
37 | COCOAPODS: 1.10.2
38 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | BC855B25829D08A6E9AEA9ED /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC958AAAFC3FC331F3F85D0A /* Pods_Runner.framework */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXCopyFilesBuildPhase section */
20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
21 | isa = PBXCopyFilesBuildPhase;
22 | buildActionMask = 2147483647;
23 | dstPath = "";
24 | dstSubfolderSpec = 10;
25 | files = (
26 | );
27 | name = "Embed Frameworks";
28 | runOnlyForDeploymentPostprocessing = 0;
29 | };
30 | /* End PBXCopyFilesBuildPhase section */
31 |
32 | /* Begin PBXFileReference section */
33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
36 | 5F46BE8AF9301476435AC0E0 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; };
37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
40 | 862A1027280452E6684BAE7B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; };
41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | B672AAAAA105BEDC65F98A1B /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; };
49 | BC958AAAFC3FC331F3F85D0A /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
50 | /* End PBXFileReference section */
51 |
52 | /* Begin PBXFrameworksBuildPhase section */
53 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
54 | isa = PBXFrameworksBuildPhase;
55 | buildActionMask = 2147483647;
56 | files = (
57 | BC855B25829D08A6E9AEA9ED /* Pods_Runner.framework in Frameworks */,
58 | );
59 | runOnlyForDeploymentPostprocessing = 0;
60 | };
61 | /* End PBXFrameworksBuildPhase section */
62 |
63 | /* Begin PBXGroup section */
64 | 959031C05C79CDAD9D620797 /* Frameworks */ = {
65 | isa = PBXGroup;
66 | children = (
67 | BC958AAAFC3FC331F3F85D0A /* Pods_Runner.framework */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 9740EEB11CF90186004384FC /* Flutter */ = {
73 | isa = PBXGroup;
74 | children = (
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
77 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
78 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
79 | );
80 | name = Flutter;
81 | sourceTree = "";
82 | };
83 | 97C146E51CF9000F007C117D = {
84 | isa = PBXGroup;
85 | children = (
86 | 9740EEB11CF90186004384FC /* Flutter */,
87 | 97C146F01CF9000F007C117D /* Runner */,
88 | 97C146EF1CF9000F007C117D /* Products */,
89 | A4E57281CD2BB1B021512958 /* Pods */,
90 | 959031C05C79CDAD9D620797 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
106 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
107 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
108 | 97C147021CF9000F007C117D /* Info.plist */,
109 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
110 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
111 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
112 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
113 | );
114 | path = Runner;
115 | sourceTree = "";
116 | };
117 | A4E57281CD2BB1B021512958 /* Pods */ = {
118 | isa = PBXGroup;
119 | children = (
120 | B672AAAAA105BEDC65F98A1B /* Pods-Runner.debug.xcconfig */,
121 | 5F46BE8AF9301476435AC0E0 /* Pods-Runner.release.xcconfig */,
122 | 862A1027280452E6684BAE7B /* Pods-Runner.profile.xcconfig */,
123 | );
124 | name = Pods;
125 | path = Pods;
126 | sourceTree = "";
127 | };
128 | /* End PBXGroup section */
129 |
130 | /* Begin PBXNativeTarget section */
131 | 97C146ED1CF9000F007C117D /* Runner */ = {
132 | isa = PBXNativeTarget;
133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
134 | buildPhases = (
135 | 395690F9EEACF6DD06AF64D9 /* [CP] Check Pods Manifest.lock */,
136 | 9740EEB61CF901F6004384FC /* Run Script */,
137 | 97C146EA1CF9000F007C117D /* Sources */,
138 | 97C146EB1CF9000F007C117D /* Frameworks */,
139 | 97C146EC1CF9000F007C117D /* Resources */,
140 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
142 | FE4B05D0A457BCC38C497F27 /* [CP] Embed Pods Frameworks */,
143 | );
144 | buildRules = (
145 | );
146 | dependencies = (
147 | );
148 | name = Runner;
149 | productName = Runner;
150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
151 | productType = "com.apple.product-type.application";
152 | };
153 | /* End PBXNativeTarget section */
154 |
155 | /* Begin PBXProject section */
156 | 97C146E61CF9000F007C117D /* Project object */ = {
157 | isa = PBXProject;
158 | attributes = {
159 | LastUpgradeCheck = 1020;
160 | ORGANIZATIONNAME = "";
161 | TargetAttributes = {
162 | 97C146ED1CF9000F007C117D = {
163 | CreatedOnToolsVersion = 7.3.1;
164 | LastSwiftMigration = 1100;
165 | };
166 | };
167 | };
168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
169 | compatibilityVersion = "Xcode 9.3";
170 | developmentRegion = en;
171 | hasScannedForEncodings = 0;
172 | knownRegions = (
173 | en,
174 | Base,
175 | );
176 | mainGroup = 97C146E51CF9000F007C117D;
177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
178 | projectDirPath = "";
179 | projectRoot = "";
180 | targets = (
181 | 97C146ED1CF9000F007C117D /* Runner */,
182 | );
183 | };
184 | /* End PBXProject section */
185 |
186 | /* Begin PBXResourcesBuildPhase section */
187 | 97C146EC1CF9000F007C117D /* Resources */ = {
188 | isa = PBXResourcesBuildPhase;
189 | buildActionMask = 2147483647;
190 | files = (
191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | };
198 | /* End PBXResourcesBuildPhase section */
199 |
200 | /* Begin PBXShellScriptBuildPhase section */
201 | 395690F9EEACF6DD06AF64D9 /* [CP] Check Pods Manifest.lock */ = {
202 | isa = PBXShellScriptBuildPhase;
203 | buildActionMask = 2147483647;
204 | files = (
205 | );
206 | inputFileListPaths = (
207 | );
208 | inputPaths = (
209 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
210 | "${PODS_ROOT}/Manifest.lock",
211 | );
212 | name = "[CP] Check Pods Manifest.lock";
213 | outputFileListPaths = (
214 | );
215 | outputPaths = (
216 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
217 | );
218 | runOnlyForDeploymentPostprocessing = 0;
219 | shellPath = /bin/sh;
220 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
221 | showEnvVarsInLog = 0;
222 | };
223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
224 | isa = PBXShellScriptBuildPhase;
225 | buildActionMask = 2147483647;
226 | files = (
227 | );
228 | inputPaths = (
229 | );
230 | name = "Thin Binary";
231 | outputPaths = (
232 | );
233 | runOnlyForDeploymentPostprocessing = 0;
234 | shellPath = /bin/sh;
235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
236 | };
237 | 9740EEB61CF901F6004384FC /* Run Script */ = {
238 | isa = PBXShellScriptBuildPhase;
239 | buildActionMask = 2147483647;
240 | files = (
241 | );
242 | inputPaths = (
243 | );
244 | name = "Run Script";
245 | outputPaths = (
246 | );
247 | runOnlyForDeploymentPostprocessing = 0;
248 | shellPath = /bin/sh;
249 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
250 | };
251 | FE4B05D0A457BCC38C497F27 /* [CP] Embed Pods Frameworks */ = {
252 | isa = PBXShellScriptBuildPhase;
253 | buildActionMask = 2147483647;
254 | files = (
255 | );
256 | inputFileListPaths = (
257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
258 | );
259 | name = "[CP] Embed Pods Frameworks";
260 | outputFileListPaths = (
261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
262 | );
263 | runOnlyForDeploymentPostprocessing = 0;
264 | shellPath = /bin/sh;
265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
266 | showEnvVarsInLog = 0;
267 | };
268 | /* End PBXShellScriptBuildPhase section */
269 |
270 | /* Begin PBXSourcesBuildPhase section */
271 | 97C146EA1CF9000F007C117D /* Sources */ = {
272 | isa = PBXSourcesBuildPhase;
273 | buildActionMask = 2147483647;
274 | files = (
275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
277 | );
278 | runOnlyForDeploymentPostprocessing = 0;
279 | };
280 | /* End PBXSourcesBuildPhase section */
281 |
282 | /* Begin PBXVariantGroup section */
283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
284 | isa = PBXVariantGroup;
285 | children = (
286 | 97C146FB1CF9000F007C117D /* Base */,
287 | );
288 | name = Main.storyboard;
289 | sourceTree = "";
290 | };
291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
292 | isa = PBXVariantGroup;
293 | children = (
294 | 97C147001CF9000F007C117D /* Base */,
295 | );
296 | name = LaunchScreen.storyboard;
297 | sourceTree = "";
298 | };
299 | /* End PBXVariantGroup section */
300 |
301 | /* Begin XCBuildConfiguration section */
302 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
333 | ENABLE_NS_ASSERTIONS = NO;
334 | ENABLE_STRICT_OBJC_MSGSEND = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_NO_COMMON_BLOCKS = YES;
337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
339 | GCC_WARN_UNDECLARED_SELECTOR = YES;
340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
341 | GCC_WARN_UNUSED_FUNCTION = YES;
342 | GCC_WARN_UNUSED_VARIABLE = YES;
343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
344 | MTL_ENABLE_DEBUG_INFO = NO;
345 | SDKROOT = iphoneos;
346 | SUPPORTED_PLATFORMS = iphoneos;
347 | TARGETED_DEVICE_FAMILY = "1,2";
348 | VALIDATE_PRODUCT = YES;
349 | };
350 | name = Profile;
351 | };
352 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
353 | isa = XCBuildConfiguration;
354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
355 | buildSettings = {
356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
357 | CLANG_ENABLE_MODULES = YES;
358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
359 | ENABLE_BITCODE = NO;
360 | INFOPLIST_FILE = Runner/Info.plist;
361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
362 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterWechatClone;
363 | PRODUCT_NAME = "$(TARGET_NAME)";
364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
365 | SWIFT_VERSION = 5.0;
366 | VERSIONING_SYSTEM = "apple-generic";
367 | };
368 | name = Profile;
369 | };
370 | 97C147031CF9000F007C117D /* Debug */ = {
371 | isa = XCBuildConfiguration;
372 | buildSettings = {
373 | ALWAYS_SEARCH_USER_PATHS = NO;
374 | CLANG_ANALYZER_NONNULL = YES;
375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
376 | CLANG_CXX_LIBRARY = "libc++";
377 | CLANG_ENABLE_MODULES = YES;
378 | CLANG_ENABLE_OBJC_ARC = YES;
379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
380 | CLANG_WARN_BOOL_CONVERSION = YES;
381 | CLANG_WARN_COMMA = YES;
382 | CLANG_WARN_CONSTANT_CONVERSION = YES;
383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
385 | CLANG_WARN_EMPTY_BODY = YES;
386 | CLANG_WARN_ENUM_CONVERSION = YES;
387 | CLANG_WARN_INFINITE_RECURSION = YES;
388 | CLANG_WARN_INT_CONVERSION = YES;
389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
394 | CLANG_WARN_STRICT_PROTOTYPES = YES;
395 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
396 | CLANG_WARN_UNREACHABLE_CODE = YES;
397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
399 | COPY_PHASE_STRIP = NO;
400 | DEBUG_INFORMATION_FORMAT = dwarf;
401 | ENABLE_STRICT_OBJC_MSGSEND = YES;
402 | ENABLE_TESTABILITY = YES;
403 | GCC_C_LANGUAGE_STANDARD = gnu99;
404 | GCC_DYNAMIC_NO_PIC = NO;
405 | GCC_NO_COMMON_BLOCKS = YES;
406 | GCC_OPTIMIZATION_LEVEL = 0;
407 | GCC_PREPROCESSOR_DEFINITIONS = (
408 | "DEBUG=1",
409 | "$(inherited)",
410 | );
411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
413 | GCC_WARN_UNDECLARED_SELECTOR = YES;
414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
415 | GCC_WARN_UNUSED_FUNCTION = YES;
416 | GCC_WARN_UNUSED_VARIABLE = YES;
417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
418 | MTL_ENABLE_DEBUG_INFO = YES;
419 | ONLY_ACTIVE_ARCH = YES;
420 | SDKROOT = iphoneos;
421 | TARGETED_DEVICE_FAMILY = "1,2";
422 | };
423 | name = Debug;
424 | };
425 | 97C147041CF9000F007C117D /* Release */ = {
426 | isa = XCBuildConfiguration;
427 | buildSettings = {
428 | ALWAYS_SEARCH_USER_PATHS = NO;
429 | CLANG_ANALYZER_NONNULL = YES;
430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
431 | CLANG_CXX_LIBRARY = "libc++";
432 | CLANG_ENABLE_MODULES = YES;
433 | CLANG_ENABLE_OBJC_ARC = YES;
434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
435 | CLANG_WARN_BOOL_CONVERSION = YES;
436 | CLANG_WARN_COMMA = YES;
437 | CLANG_WARN_CONSTANT_CONVERSION = YES;
438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
440 | CLANG_WARN_EMPTY_BODY = YES;
441 | CLANG_WARN_ENUM_CONVERSION = YES;
442 | CLANG_WARN_INFINITE_RECURSION = YES;
443 | CLANG_WARN_INT_CONVERSION = YES;
444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
449 | CLANG_WARN_STRICT_PROTOTYPES = YES;
450 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
451 | CLANG_WARN_UNREACHABLE_CODE = YES;
452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
454 | COPY_PHASE_STRIP = NO;
455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
456 | ENABLE_NS_ASSERTIONS = NO;
457 | ENABLE_STRICT_OBJC_MSGSEND = YES;
458 | GCC_C_LANGUAGE_STANDARD = gnu99;
459 | GCC_NO_COMMON_BLOCKS = YES;
460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
462 | GCC_WARN_UNDECLARED_SELECTOR = YES;
463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
464 | GCC_WARN_UNUSED_FUNCTION = YES;
465 | GCC_WARN_UNUSED_VARIABLE = YES;
466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
467 | MTL_ENABLE_DEBUG_INFO = NO;
468 | SDKROOT = iphoneos;
469 | SUPPORTED_PLATFORMS = iphoneos;
470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
471 | TARGETED_DEVICE_FAMILY = "1,2";
472 | VALIDATE_PRODUCT = YES;
473 | };
474 | name = Release;
475 | };
476 | 97C147061CF9000F007C117D /* Debug */ = {
477 | isa = XCBuildConfiguration;
478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
479 | buildSettings = {
480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
481 | CLANG_ENABLE_MODULES = YES;
482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
483 | ENABLE_BITCODE = NO;
484 | INFOPLIST_FILE = Runner/Info.plist;
485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
486 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterWechatClone;
487 | PRODUCT_NAME = "$(TARGET_NAME)";
488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
490 | SWIFT_VERSION = 5.0;
491 | VERSIONING_SYSTEM = "apple-generic";
492 | };
493 | name = Debug;
494 | };
495 | 97C147071CF9000F007C117D /* Release */ = {
496 | isa = XCBuildConfiguration;
497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
498 | buildSettings = {
499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
500 | CLANG_ENABLE_MODULES = YES;
501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
502 | ENABLE_BITCODE = NO;
503 | INFOPLIST_FILE = Runner/Info.plist;
504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
505 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterWechatClone;
506 | PRODUCT_NAME = "$(TARGET_NAME)";
507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
508 | SWIFT_VERSION = 5.0;
509 | VERSIONING_SYSTEM = "apple-generic";
510 | };
511 | name = Release;
512 | };
513 | /* End XCBuildConfiguration section */
514 |
515 | /* Begin XCConfigurationList section */
516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
517 | isa = XCConfigurationList;
518 | buildConfigurations = (
519 | 97C147031CF9000F007C117D /* Debug */,
520 | 97C147041CF9000F007C117D /* Release */,
521 | 249021D3217E4FDB00AE95B9 /* Profile */,
522 | );
523 | defaultConfigurationIsVisible = 0;
524 | defaultConfigurationName = Release;
525 | };
526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
527 | isa = XCConfigurationList;
528 | buildConfigurations = (
529 | 97C147061CF9000F007C117D /* Debug */,
530 | 97C147071CF9000F007C117D /* Release */,
531 | 249021D4217E4FDB00AE95B9 /* Profile */,
532 | );
533 | defaultConfigurationIsVisible = 0;
534 | defaultConfigurationName = Release;
535 | };
536 | /* End XCConfigurationList section */
537 | };
538 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
539 | }
540 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | import UIKit
2 | import Flutter
3 |
4 | @UIApplicationMain
5 | @objc class AppDelegate: FlutterAppDelegate {
6 | override func application(
7 | _ application: UIApplication,
8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 | ) -> Bool {
10 | GeneratedPluginRegistrant.register(with: self)
11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions)
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | flutter_wechat_clone
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/constants.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class AppColors {
4 | static const BackgroundColor = Color(0xffebebeb);
5 | static const AppBarColor = Color(0xff303030);
6 | static const TabIconNormal = Color(0xff999999);
7 | static const TabIconActive = Color(0xff46c11b);
8 | static const AppBarPopupMenuColor = Color(0xffffffff);
9 | static const TitleColor = Color(0xff353535);
10 | static const ConversationItemBgColor = Color(0xffffffff);
11 | static const DescTextColor = Color(0xff9e9e9e);
12 | static const DividerColor = Color(0xffd9d9d9);
13 | static const NotifyDotBgColor = Color(0xffff3e3e);
14 | static const NotifyDotText = Color(0xffffffff);
15 | static const ConversationMuteIconColor = Color(0xffd8d8d8);
16 | static const DeviceInfoItemBgColor = Color(0xfff5f5f5);
17 | static const DeviceInfoItemTextColor = Color(0xff606062);
18 | static const DeviceInfoItemIconColor = Color(0xff606062);
19 | static const ContactGroupTitleBgColor = Color(0xffebebeb);
20 | static const ContactGroupTitleColor = Color(0xff888888);
21 | static const IndexLetterBoxBgColor = Colors.black45;
22 | }
23 |
24 | class AppStyles {
25 | static const TitleStyle = TextStyle(
26 | fontSize: 14.0,
27 | color: AppColors.TitleColor,
28 | );
29 |
30 | static const DescStyle = TextStyle(
31 | fontSize: 12.0,
32 | color: AppColors.DescTextColor,
33 | );
34 |
35 | static const UnreadMsgCountDotStyle = TextStyle(
36 | fontSize: 12.0,
37 | color: AppColors.NotifyDotText,
38 | );
39 |
40 | static const DeviceInfoItemTextStyle = TextStyle(
41 | fontSize: 13.0,
42 | color: AppColors.DeviceInfoItemTextColor,
43 | );
44 |
45 | static const GroupTitleItemTextStyle = TextStyle(
46 | fontSize: 14.0,
47 | color: AppColors.ContactGroupTitleColor,
48 | );
49 |
50 | static const IndexLetterBoxTextStyle = TextStyle(
51 | fontSize: 64.0,
52 | color: Colors.white,
53 | );
54 | }
55 |
56 | class Constants {
57 | static const IconFontFamily = "appIconFont";
58 | static const ConversationAvatarSize = 48.0;
59 | static const DividerWidth = 0.5;
60 | static const UnReadMsgNotifyDotSize = 20.0;
61 | static const ConversationMuteIcon = 18.0;
62 | static const ContactAvatarSize = 36.0;
63 | static const IndexBarWidth = 24.0;
64 | static const IndexLetterBoxSize = 114.0;
65 | static const IndexLetterBoxRadius = 4.0;
66 | static const FullWidthIconButtonIconSize = 24.0;
67 | static const ProfileHeaderIconSize = 60.0;
68 |
69 | static const ConversationAvatarDefaultIocn = Icon(
70 | IconData(
71 | 0xe642,
72 | fontFamily: IconFontFamily,
73 | ),
74 | size: ConversationAvatarSize,
75 | );
76 |
77 | static const ContactAvatarDefaultIocn = Icon(
78 | IconData(
79 | 0xe642,
80 | fontFamily: IconFontFamily,
81 | ),
82 | size: ContactAvatarSize,
83 | );
84 |
85 | static const ProfileAvatarDefaultIocn = Icon(
86 | IconData(
87 | 0xe642,
88 | fontFamily: IconFontFamily,
89 | ),
90 | size: ProfileHeaderIconSize,
91 | );
92 | }
93 |
94 |
95 |
96 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_wechat_clone/constants.dart';
3 | import 'package:flutter_wechat_clone/pages/main_page.dart';
4 |
5 | void main() {
6 | runApp(MyApp());
7 | }
8 |
9 | class MyApp extends StatelessWidget {
10 | // This widget is the root of your application.
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | title: '微信',
15 | theme: ThemeData(
16 | primaryColor: AppColors.AppBarColor,
17 | cardColor: AppColors.AppBarColor),
18 | home: MainPage(),
19 | );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/lib/model/contacts.dart:
--------------------------------------------------------------------------------
1 | class Contact {
2 | const Contact({
3 | required this.avatar,
4 | required this.name,
5 | required this.nameIndex,
6 | });
7 |
8 | final String avatar;
9 | final String name;
10 | final String nameIndex;
11 | }
12 |
13 | class ContactsPageData {
14 | final List contacts = [
15 | const Contact(
16 | avatar: 'https://randomuser.me/api/portraits/men/53.jpg',
17 | name: 'Maurice Sutton',
18 | nameIndex: 'M',
19 | ),
20 | const Contact(
21 | avatar: 'https://randomuser.me/api/portraits/women/76.jpg',
22 | name: 'Jerry',
23 | nameIndex: 'J',
24 | ),
25 | const Contact(
26 | avatar: 'https://randomuser.me/api/portraits/women/17.jpg',
27 | name: 'Dangdang',
28 | nameIndex: 'D',
29 | ),
30 | const Contact(
31 | avatar: 'https://randomuser.me/api/portraits/women/55.jpg',
32 | name: 'Teddy',
33 | nameIndex: 'T',
34 | ),
35 | const Contact(
36 | avatar: 'https://randomuser.me/api/portraits/women/11.jpg',
37 | name: 'Steave',
38 | nameIndex: 'S',
39 | ),
40 | const Contact(
41 | avatar: 'https://randomuser.me/api/portraits/women/65.jpg',
42 | name: 'Vivian',
43 | nameIndex: 'V',
44 | ),
45 | const Contact(
46 | avatar: 'https://randomuser.me/api/portraits/women/50.jpg',
47 | name: 'Mary',
48 | nameIndex: 'M',
49 | ),
50 | const Contact(
51 | avatar: 'https://randomuser.me/api/portraits/women/91.jpg',
52 | name: 'David',
53 | nameIndex: 'D',
54 | ),
55 | const Contact(
56 | avatar: 'https://randomuser.me/api/portraits/women/60.jpg',
57 | name: 'Bob',
58 | nameIndex: 'B',
59 | ),
60 | const Contact(
61 | avatar: 'https://randomuser.me/api/portraits/men/60.jpg',
62 | name: 'Jeff Green',
63 | nameIndex: 'J',
64 | ),
65 | const Contact(
66 | avatar: 'https://randomuser.me/api/portraits/men/45.jpg',
67 | name: 'Adam',
68 | nameIndex: 'A',
69 | ),
70 | const Contact(
71 | avatar: 'https://randomuser.me/api/portraits/men/7.jpg',
72 | name: 'Michel',
73 | nameIndex: 'M',
74 | ),
75 | const Contact(
76 | avatar: 'https://randomuser.me/api/portraits/men/35.jpg',
77 | name: 'Green',
78 | nameIndex: 'G',
79 | ),
80 | const Contact(
81 | avatar: 'https://randomuser.me/api/portraits/men/64.jpg',
82 | name: 'Jack Ma',
83 | nameIndex: 'J',
84 | ),
85 | const Contact(
86 | avatar: 'https://randomuser.me/api/portraits/men/86.jpg',
87 | name: 'Tom',
88 | nameIndex: 'T',
89 | ),
90 | const Contact(
91 | avatar: 'https://randomuser.me/api/portraits/men/31.jpg',
92 | name: 'Zat',
93 | nameIndex: 'Z',
94 | ),
95 | const Contact(
96 | avatar: 'https://randomuser.me/api/portraits/women/13.jpg',
97 | name: 'Zlia',
98 | nameIndex: 'Z',
99 | ),
100 | ];
101 |
102 | static ContactsPageData mock() {
103 | return ContactsPageData();
104 | }
105 | }
106 |
--------------------------------------------------------------------------------
/lib/model/conversation.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../constants.dart';
3 |
4 | enum Device { MAC, WIN }
5 |
6 | class Conversation {
7 | final String avatar;
8 | final String title;
9 | final Color titleColor;
10 | final String desc;
11 | final String updateAt;
12 | final bool isMute;
13 | final int unreadMsgCount;
14 | final bool dispalyDot;
15 |
16 | const Conversation(
17 | {required this.avatar,
18 | required this.title,
19 | this.titleColor: AppColors.TitleColor,
20 | required this.desc,
21 | required this.updateAt,
22 | this.isMute: false,
23 | this.unreadMsgCount: 0,
24 | this.dispalyDot: false});
25 |
26 | bool isAvatarFromNet() {
27 | if (this.avatar.indexOf('http') == 0 || this.avatar.indexOf('https') == 0) {
28 | return true;
29 | }
30 | return false;
31 | }
32 | }
33 |
34 | class ConversationPageData {
35 | const ConversationPageData({
36 | this.device,
37 | required this.conversations,
38 | });
39 |
40 | final Device? device;
41 | final List conversations;
42 |
43 | static mock() {
44 | return ConversationPageData(
45 | device: Device.WIN, conversations: mockConversations);
46 | }
47 |
48 | static List mockConversations = [
49 | const Conversation(
50 | avatar: 'assets/images/ic_file_transfer.png',
51 | title: '文件传输助手',
52 | desc: '',
53 | updateAt: '19:56',
54 | ),
55 | const Conversation(
56 | avatar: 'assets/images/ic_tx_news.png',
57 | title: '腾讯新闻',
58 | desc: '豪车与出租车刮擦 俩车主划拳定责',
59 | updateAt: '17:20',
60 | ),
61 | const Conversation(
62 | avatar: 'assets/images/ic_wx_games.png',
63 | title: '微信游戏',
64 | titleColor: Color(0xff586b95),
65 | desc: '25元现金助力开学季!',
66 | updateAt: '17:12',
67 | ),
68 | const Conversation(
69 | avatar: 'https://randomuser.me/api/portraits/men/10.jpg',
70 | title: '汤姆丁',
71 | desc: '今晚要一起去吃肯德基吗?',
72 | updateAt: '17:56',
73 | isMute: true,
74 | unreadMsgCount: 0,
75 | ),
76 | const Conversation(
77 | avatar: 'https://randomuser.me/api/portraits/women/10.jpg',
78 | title: 'Tina Morgan',
79 | desc: '晚自习是什么来着?你知道吗,看到的话赶紧回复我',
80 | updateAt: '17:58',
81 | isMute: false,
82 | unreadMsgCount: 3,
83 | ),
84 | const Conversation(
85 | avatar: 'assets/images/ic_fengchao.png',
86 | title: '蜂巢智能柜',
87 | titleColor: Color(0xff586b95),
88 | desc: '喷一喷,竟比洗牙还神奇!5秒钟还你一个漂亮洁白的口腔。',
89 | updateAt: '17:12',
90 | ),
91 | const Conversation(
92 | avatar: 'https://randomuser.me/api/portraits/women/57.jpg',
93 | title: 'Lily',
94 | desc: '今天要去运动场锻炼吗?',
95 | updateAt: '昨天',
96 | isMute: false,
97 | unreadMsgCount: 99,
98 | ),
99 | const Conversation(
100 | avatar: 'https://randomuser.me/api/portraits/men/10.jpg',
101 | title: '汤姆丁',
102 | desc: '今晚要一起去吃肯德基吗?',
103 | updateAt: '17:56',
104 | isMute: true,
105 | unreadMsgCount: 0,
106 | ),
107 | const Conversation(
108 | avatar: 'https://randomuser.me/api/portraits/women/10.jpg',
109 | title: 'Tina Morgan',
110 | desc: '晚自习是什么来着?你知道吗,看到的话赶紧回复我',
111 | updateAt: '17:58',
112 | isMute: false,
113 | unreadMsgCount: 3,
114 | ),
115 | const Conversation(
116 | avatar: 'https://randomuser.me/api/portraits/women/57.jpg',
117 | title: 'Lily',
118 | desc: '今天要去运动场锻炼吗?',
119 | updateAt: '昨天',
120 | isMute: false,
121 | unreadMsgCount: 0,
122 | ),
123 | const Conversation(
124 | avatar: 'https://randomuser.me/api/portraits/men/10.jpg',
125 | title: '汤姆丁',
126 | desc: '今晚要一起去吃肯德基吗?',
127 | updateAt: '17:56',
128 | isMute: true,
129 | unreadMsgCount: 0,
130 | ),
131 | const Conversation(
132 | avatar: 'https://randomuser.me/api/portraits/women/10.jpg',
133 | title: 'Tina Morgan',
134 | desc: '晚自习是什么来着?你知道吗,看到的话赶紧回复我',
135 | updateAt: '17:58',
136 | isMute: false,
137 | unreadMsgCount: 1,
138 | ),
139 | const Conversation(
140 | avatar: 'https://randomuser.me/api/portraits/women/57.jpg',
141 | title: 'Lily',
142 | desc: '今天要去运动场锻炼吗?',
143 | updateAt: '昨天',
144 | isMute: false,
145 | unreadMsgCount: 0,
146 | ),
147 | ];
148 | }
149 |
--------------------------------------------------------------------------------
/lib/pages/contacts_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../constants.dart';
4 | import '../model/contacts.dart' show Contact, ContactsPageData;
5 | import 'package:cached_network_image/cached_network_image.dart';
6 |
7 | @immutable
8 | class _ContactItem extends StatelessWidget {
9 | _ContactItem({
10 | required this.avatar,
11 | required this.title,
12 | this.groupTitle,
13 | required this.onPressed,
14 | });
15 |
16 | final String avatar;
17 | final String title;
18 | final String? groupTitle;
19 | final VoidCallback onPressed;
20 |
21 | static const double MARGIN_VERTICAL = 10.0;
22 | static const double GROUP_TITLE_HEIGHT = 24.0;
23 |
24 | bool get _isAvatarFromNet {
25 | return this.avatar.startsWith('http') || this.avatar.startsWith("https");
26 | }
27 |
28 | static double _height(bool hasGroupTitle) {
29 | final _buttonHeight = MARGIN_VERTICAL * 2 +
30 | Constants.ContactAvatarSize +
31 | Constants.DividerWidth;
32 | if (hasGroupTitle) {
33 | return _buttonHeight + GROUP_TITLE_HEIGHT;
34 | } else {
35 | return _buttonHeight;
36 | }
37 | }
38 |
39 | @override
40 | Widget build(BuildContext context) {
41 | Widget _avatarIcon;
42 | if (_isAvatarFromNet) {
43 | _avatarIcon = CachedNetworkImage(
44 | imageUrl: this.avatar,
45 | placeholder: (context, url) => Constants.ContactAvatarDefaultIocn,
46 | width: Constants.ContactAvatarSize,
47 | height: Constants.ContactAvatarSize,
48 | errorWidget: (context, url, msg) => Constants.ContactAvatarDefaultIocn,
49 | );
50 | } else {
51 | _avatarIcon = Image.asset(
52 | this.avatar,
53 | width: Constants.ContactAvatarSize,
54 | height: Constants.ContactAvatarSize,
55 | );
56 | }
57 |
58 | Widget _button = Container(
59 | margin: const EdgeInsets.symmetric(horizontal: 16.0),
60 | padding: const EdgeInsets.symmetric(vertical: MARGIN_VERTICAL),
61 | decoration: BoxDecoration(
62 | border: Border(
63 | bottom: BorderSide(
64 | width: Constants.DividerWidth, color: AppColors.DividerColor),
65 | )),
66 | child: Row(
67 | children: [
68 | _avatarIcon,
69 | SizedBox(width: 10.0),
70 | Text(title),
71 | ],
72 | ),
73 | );
74 |
75 | //分组标签
76 | Widget _itemBody;
77 | if (this.groupTitle != null) {
78 | _itemBody = Column(
79 | children: [
80 | Container(
81 | height: GROUP_TITLE_HEIGHT,
82 | padding: EdgeInsets.only(left: 16.0, right: 16.0),
83 | color: AppColors.ContactGroupTitleBgColor,
84 | alignment: Alignment.centerLeft,
85 | child: Text(this.groupTitle!,
86 | style: AppStyles.GroupTitleItemTextStyle),
87 | ),
88 | _button,
89 | ],
90 | );
91 | } else {
92 | _itemBody = _button;
93 | }
94 |
95 | return _itemBody;
96 | }
97 | }
98 |
99 | const INDEX_BAR_WORDS = [
100 | "↑",
101 | "☆",
102 | "A",
103 | "B",
104 | "C",
105 | "D",
106 | "E",
107 | "F",
108 | "G",
109 | "H",
110 | "I",
111 | "J",
112 | "K",
113 | "L",
114 | "M",
115 | "N",
116 | "O",
117 | "P",
118 | "Q",
119 | "R",
120 | "S",
121 | "T",
122 | "U",
123 | "V",
124 | "W",
125 | "X",
126 | "Y",
127 | "Z"
128 | ];
129 |
130 | // ignore: must_be_immutable
131 | class ContactsPage extends StatefulWidget {
132 | Color _indexBarBgColor = Colors.transparent;
133 | String _currentLetter = '';
134 | @override
135 | _ContactsPageState createState() => _ContactsPageState();
136 | }
137 |
138 | class _ContactsPageState extends State {
139 | late ScrollController _scrollController;
140 | final ContactsPageData data = ContactsPageData.mock();
141 | final List _contacts = [];
142 | final List<_ContactItem> _functionButtons = [
143 | _ContactItem(
144 | avatar: 'assets/images/ic_new_friend.png',
145 | title: '新的朋友',
146 | onPressed: () {
147 | print("添加新朋友");
148 | }),
149 | _ContactItem(
150 | avatar: 'assets/images/ic_group_chat.png',
151 | title: '群聊',
152 | onPressed: () {
153 | print("点击了群聊");
154 | }),
155 | _ContactItem(
156 | avatar: 'assets/images/ic_tag.png',
157 | title: '标签',
158 | onPressed: () {
159 | print("点击了标签");
160 | }),
161 | _ContactItem(
162 | avatar: 'assets/images/ic_public_account.png',
163 | title: '公众号',
164 | onPressed: () {
165 | print("添加公众号");
166 | }),
167 | ];
168 | final Map _letterPosMap = {INDEX_BAR_WORDS[0]: 0.0};
169 |
170 | @override
171 | void initState() {
172 | super.initState();
173 | _contacts
174 | ..addAll(data.contacts)
175 | ..addAll(data.contacts)
176 | ..addAll(data.contacts);
177 | _contacts
178 | .sort((Contact a, Contact b) => a.nameIndex.compareTo(b.nameIndex));
179 | _scrollController = new ScrollController();
180 |
181 | //计算用于 IndexBar 进行定位的关键通讯录列表项的位置
182 | var _totalPos = _functionButtons.length * _ContactItem._height(false);
183 | for (var i = 0; i < _contacts.length; i++) {
184 | bool _hasGroupTitle = true;
185 | if (i > 0 &&
186 | _contacts[i].nameIndex.compareTo(_contacts[i - 1].nameIndex) == 0) {
187 | _hasGroupTitle = false;
188 | }
189 |
190 | if (_hasGroupTitle) {
191 | _letterPosMap[_contacts[i].nameIndex] = _totalPos;
192 | }
193 | _totalPos += _ContactItem._height(_hasGroupTitle);
194 | }
195 | }
196 |
197 | @override
198 | void dispose() {
199 | _scrollController.dispose();
200 | super.dispose();
201 | }
202 |
203 | String getLetter(BuildContext context, double tileHeight, Offset globalPos) {
204 | RenderBox _box = context.findRenderObject() as RenderBox;
205 | var local = _box.globalToLocal(globalPos);
206 | int index = (local.dy ~/ tileHeight).clamp(0, INDEX_BAR_WORDS.length - 1);
207 | return INDEX_BAR_WORDS[index];
208 | }
209 |
210 | void _jumpToIndex(String letter) {
211 | if (_letterPosMap.isNotEmpty) {
212 | final _pos = _letterPosMap[letter];
213 | if (_pos != null) {
214 | _scrollController.animateTo(_letterPosMap[letter],
215 | curve: Curves.easeInOut, duration: Duration(microseconds: 200));
216 | }
217 | }
218 | }
219 |
220 | Widget _buildIndexBar(BuildContext context, BoxConstraints constraints) {
221 | final List _letters = INDEX_BAR_WORDS.map((String word) {
222 | return Expanded(child: Text(word));
223 | }).toList();
224 |
225 | final _totalHeight = constraints.biggest.height;
226 | final _tileHeight = _totalHeight / _letters.length;
227 | print(_totalHeight);
228 | return GestureDetector(
229 | onVerticalDragDown: (DragDownDetails details) {
230 | setState(() {
231 | widget._indexBarBgColor = Colors.black26;
232 | widget._currentLetter =
233 | getLetter(context, _tileHeight, details.globalPosition);
234 | _jumpToIndex(widget._currentLetter);
235 | });
236 | },
237 | onVerticalDragEnd: (DragEndDetails details) {
238 | setState(() {
239 | widget._indexBarBgColor = Colors.transparent;
240 | widget._currentLetter = '';
241 | });
242 | },
243 | onVerticalDragCancel: () {
244 | setState(() {
245 | widget._indexBarBgColor = Colors.transparent;
246 | widget._currentLetter = '';
247 | });
248 | },
249 | onVerticalDragUpdate: (DragUpdateDetails details) {
250 | setState(() {
251 | widget._currentLetter =
252 | getLetter(context, _tileHeight, details.globalPosition);
253 | _jumpToIndex(widget._currentLetter);
254 | });
255 | },
256 | child: Column(
257 | children: _letters,
258 | ),
259 | );
260 | }
261 |
262 | @override
263 | Widget build(BuildContext context) {
264 | final List _body = [
265 | ListView.builder(
266 | controller: _scrollController,
267 | itemBuilder: (BuildContext context, int index) {
268 | if (index < _functionButtons.length) {
269 | return _functionButtons[index];
270 | }
271 | int _contactIndex = index - _functionButtons.length;
272 | bool _isGroupTitle = true;
273 | Contact _contact = _contacts[_contactIndex];
274 |
275 | if (_contactIndex >= 1 &&
276 | _contact.nameIndex == _contacts[_contactIndex - 1].nameIndex) {
277 | _isGroupTitle = false;
278 | }
279 | return _ContactItem(
280 | avatar: _contact.avatar,
281 | title: _contact.name,
282 | groupTitle: _isGroupTitle ? _contact.nameIndex : null,
283 | onPressed: () {},
284 | );
285 | },
286 | itemCount: _contacts.length + _functionButtons.length,
287 | ),
288 | Positioned(
289 | width: Constants.IndexBarWidth,
290 | right: 0.0,
291 | top: 0.0,
292 | bottom: 0.0,
293 | child: Container(
294 | color: widget._indexBarBgColor,
295 | child: LayoutBuilder(
296 | builder: _buildIndexBar,
297 | ),
298 | ),
299 | )
300 | ];
301 |
302 | if (widget._currentLetter.isNotEmpty) {
303 | _body.add(Center(
304 | child: Container(
305 | width: Constants.IndexLetterBoxSize,
306 | height: Constants.IndexLetterBoxSize,
307 | decoration: BoxDecoration(
308 | color: AppColors.IndexLetterBoxBgColor,
309 | borderRadius: BorderRadius.all(
310 | Radius.circular(Constants.IndexLetterBoxRadius)),
311 | ),
312 | child: Center(
313 | child: Text(widget._currentLetter,
314 | style: AppStyles.IndexLetterBoxTextStyle),
315 | ),
316 | ),
317 | ));
318 | }
319 |
320 | return Stack(
321 | children: _body,
322 | );
323 | }
324 | }
325 |
--------------------------------------------------------------------------------
/lib/pages/conversation_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../constants.dart' show AppColors, AppStyles, Constants;
3 | import '../model/conversation.dart';
4 | import 'package:cached_network_image/cached_network_image.dart';
5 |
6 | class _ConversationItem extends StatelessWidget {
7 | const _ConversationItem({required this.conversation});
8 |
9 | final Conversation conversation;
10 |
11 | @override
12 | Widget build(BuildContext context) {
13 | Widget avatar;
14 | if (conversation.isAvatarFromNet()) {
15 | avatar = CachedNetworkImage(
16 | imageUrl: conversation.avatar,
17 | placeholder: (context, msg) => Constants.ConversationAvatarDefaultIocn,
18 | width: Constants.ConversationAvatarSize,
19 | height: Constants.ConversationAvatarSize,
20 | );
21 | } else {
22 | avatar = Image.asset(
23 | conversation.avatar,
24 | width: Constants.ConversationAvatarSize,
25 | height: Constants.ConversationAvatarSize,
26 | );
27 | }
28 |
29 | Widget avatarContainer;
30 | if (conversation.unreadMsgCount > 0) {
31 | // 未读消息角标
32 | Widget unreadMsgCountText = Container(
33 | width: Constants.UnReadMsgNotifyDotSize,
34 | height: Constants.UnReadMsgNotifyDotSize,
35 | alignment: Alignment.center,
36 | decoration: BoxDecoration(
37 | borderRadius:
38 | BorderRadius.circular(Constants.UnReadMsgNotifyDotSize / 2.0),
39 | color: AppColors.NotifyDotBgColor,
40 | ),
41 | child: Text(conversation.unreadMsgCount.toString(),
42 | style: AppStyles.UnreadMsgCountDotStyle),
43 | );
44 |
45 | avatarContainer = Stack(
46 | clipBehavior: Clip.none,
47 | children: [
48 | avatar,
49 | Positioned(
50 | right: -6.0,
51 | top: -6.0,
52 | child: unreadMsgCountText,
53 | )
54 | ],
55 | );
56 | } else {
57 | avatarContainer = avatar;
58 | }
59 |
60 | Color muteIconColor;
61 | if (conversation.isMute) {
62 | muteIconColor = AppColors.ConversationMuteIconColor;
63 | } else {
64 | muteIconColor = Colors.transparent;
65 | }
66 |
67 | //勿扰模式图标
68 | Widget muteContainer = Container(
69 | margin: const EdgeInsets.only(top: 10.0),
70 | child: Icon(
71 | IconData(
72 | 0xe78b,
73 | fontFamily: Constants.IconFontFamily,
74 | ),
75 | color: muteIconColor,
76 | size: Constants.ConversationMuteIcon,
77 | ),
78 | );
79 |
80 | var _rightArea = [
81 | Text(conversation.updateAt, style: AppStyles.DescStyle),
82 | muteContainer
83 | ];
84 |
85 | return Container(
86 | padding: const EdgeInsets.all(10.0),
87 | decoration: BoxDecoration(
88 | color: AppColors.ConversationItemBgColor,
89 | border: Border(
90 | bottom: BorderSide(
91 | color: AppColors.DividerColor,
92 | width: Constants.DividerWidth))),
93 | child: Row(
94 | crossAxisAlignment: CrossAxisAlignment.center,
95 | children: [
96 | avatarContainer,
97 | Container(width: 10.0),
98 | Expanded(
99 | child: Column(
100 | crossAxisAlignment: CrossAxisAlignment.start,
101 | children: [
102 | Text(conversation.title, style: AppStyles.TitleStyle),
103 | Text(conversation.desc, style: AppStyles.DescStyle)
104 | ],
105 | ),
106 | ),
107 | Container(width: 10.0),
108 | Column(
109 | children: _rightArea,
110 | )
111 | ],
112 | ),
113 | );
114 | }
115 | }
116 |
117 | class _DeviceInfoItem extends StatelessWidget {
118 | const _DeviceInfoItem({required this.device});
119 | final Device device;
120 |
121 | int get iconName {
122 | return device == Device.WIN ? 0xe72a : 0xe640;
123 | }
124 |
125 | String get deviceName {
126 | return device == Device.WIN ? "Windows" : "Mac";
127 | }
128 |
129 | @override
130 | Widget build(BuildContext context) {
131 | return Container(
132 | padding:
133 | EdgeInsets.only(left: 24.0, top: 10.0, right: 24.0, bottom: 10.0),
134 | decoration: BoxDecoration(
135 | border: Border(
136 | bottom: BorderSide(
137 | width: Constants.DividerWidth,
138 | color: AppColors.DividerColor,
139 | ),
140 | )),
141 | child: Row(
142 | mainAxisAlignment: MainAxisAlignment.start,
143 | crossAxisAlignment: CrossAxisAlignment.center,
144 | children: [
145 | Icon(
146 | IconData(this.iconName, fontFamily: Constants.IconFontFamily),
147 | size: 24.0,
148 | color: AppColors.DeviceInfoItemIconColor,
149 | ),
150 | SizedBox(width: 16.0),
151 | Text('$deviceName 微信已登录,手机通知已关闭。',
152 | style: AppStyles.DeviceInfoItemTextStyle)
153 | ],
154 | ),
155 | );
156 | }
157 | }
158 |
159 | class ConversationPage extends StatefulWidget {
160 | @override
161 | _ConversationPageState createState() => _ConversationPageState();
162 | }
163 |
164 | class _ConversationPageState extends State {
165 | final ConversationPageData data = ConversationPageData.mock();
166 | @override
167 | Widget build(BuildContext context) {
168 | return ListView.builder(
169 | itemBuilder: (BuildContext context, int index) {
170 | if (data.device != null) {
171 | //需要显示其他设备的登录信息
172 | if (index == 0) {
173 | return _DeviceInfoItem(device: data.device!);
174 | } else {
175 | return _ConversationItem(
176 | conversation: data.conversations[index - 1]);
177 | }
178 | } else {
179 | return _ConversationItem(conversation: data.conversations[index]);
180 | }
181 | },
182 | itemCount: data.device != null
183 | ? data.conversations.length + 1
184 | : data.conversations.length,
185 | );
186 | }
187 | }
188 |
--------------------------------------------------------------------------------
/lib/pages/discover_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../widgets/full_width_button.dart';
3 | import '../constants.dart' show AppColors;
4 |
5 | class DiscoverPage extends StatefulWidget {
6 | @override
7 | _DiscoverPageState createState() => _DiscoverPageState();
8 | }
9 |
10 | class _DiscoverPageState extends State {
11 | static const SEPARATE_SIZE = 20.0;
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | return Container(
16 | color: AppColors.BackgroundColor,
17 | child: SingleChildScrollView(
18 | child: Column(
19 | children: [
20 | SizedBox(height: SEPARATE_SIZE),
21 | FullWidthButton(
22 | iconPath: 'assets/images/ic_social_circle.png',
23 | title: '朋友圈',
24 | onPressed: () {
25 | print('点击了朋友圈');
26 | },
27 | ),
28 | SizedBox(height: SEPARATE_SIZE),
29 | FullWidthButton(
30 | iconPath: 'assets/images/ic_quick_scan.png',
31 | title: '扫一扫',
32 | showDivider: true,
33 | onPressed: () {
34 | print('点击了扫一扫');
35 | },
36 | ),
37 | FullWidthButton(
38 | iconPath: 'assets/images/ic_shake_phone.png',
39 | title: '摇一摇',
40 | onPressed: () {},
41 | ),
42 | SizedBox(height: SEPARATE_SIZE),
43 | FullWidthButton(
44 | iconPath: 'assets/images/ic_feeds.png',
45 | title: '看一看',
46 | showDivider: true,
47 | onPressed: () {},
48 | ),
49 | FullWidthButton(
50 | iconPath: 'assets/images/ic_quick_search.png',
51 | title: '搜一搜',
52 | onPressed: () {},
53 | ),
54 | SizedBox(height: SEPARATE_SIZE),
55 | FullWidthButton(
56 | iconPath: 'assets/images/ic_people_nearby.png',
57 | title: '附近的人',
58 | showDivider: true,
59 | onPressed: () {},
60 | ),
61 | FullWidthButton(
62 | iconPath: 'assets/images/ic_bottle_msg.png',
63 | title: '漂流瓶',
64 | onPressed: () {},
65 | ),
66 | SizedBox(height: SEPARATE_SIZE),
67 | FullWidthButton(
68 | iconPath: 'assets/images/ic_shopping.png',
69 | title: '购物',
70 | showDivider: true,
71 | onPressed: () {},
72 | ),
73 | FullWidthButton(
74 | iconPath: 'assets/images/ic_game_entry.png',
75 | title: '游戏',
76 | onPressed: () {},
77 | ),
78 | SizedBox(height: SEPARATE_SIZE),
79 | FullWidthButton(
80 | iconPath: 'assets/images/ic_mini_program.png',
81 | title: '小程序',
82 | onPressed: () {},
83 | ),
84 | SizedBox(height: SEPARATE_SIZE),
85 | ],
86 | ),
87 | ),
88 | );
89 | }
90 | }
91 |
--------------------------------------------------------------------------------
/lib/pages/main_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | import '../constants.dart';
4 | import 'contacts_page.dart';
5 | import 'conversation_page.dart';
6 | import 'profile_page.dart';
7 | import 'discover_page.dart';
8 |
9 | enum ActionItems { GROUP_CHAT, ADD_FRIEND, QR_SCAN, PAYMENT }
10 |
11 | class NavigationIconView {
12 | final BottomNavigationBarItem item;
13 |
14 | NavigationIconView(
15 | {required String title,
16 | required IconData icon,
17 | required IconData activeIcon})
18 | : item = new BottomNavigationBarItem(
19 | icon: Icon(icon),
20 | activeIcon: Icon(activeIcon),
21 | label: title,
22 | backgroundColor: Colors.white);
23 | }
24 |
25 | class MainPage extends StatefulWidget {
26 | MainPage({Key? key}) : super(key: key);
27 |
28 | @override
29 | _MainPageState createState() => _MainPageState();
30 | }
31 |
32 | class _MainPageState extends State {
33 | int _currentIndex = 0;
34 | late PageController _pageController;
35 | late List _pages;
36 | List _navigationViews = [
37 | NavigationIconView(
38 | title: '微信',
39 | icon: IconData(0xe608, fontFamily: Constants.IconFontFamily),
40 | activeIcon: IconData(0xe603, fontFamily: Constants.IconFontFamily)),
41 | NavigationIconView(
42 | title: '通讯录',
43 | icon: IconData(0xe601, fontFamily: Constants.IconFontFamily),
44 | activeIcon: IconData(0xe602, fontFamily: Constants.IconFontFamily),
45 | ),
46 | NavigationIconView(
47 | title: '发现',
48 | icon: IconData(0xe600, fontFamily: Constants.IconFontFamily),
49 | activeIcon: IconData(0xe604, fontFamily: Constants.IconFontFamily),
50 | ),
51 | NavigationIconView(
52 | title: '我',
53 | icon: IconData(0xe607, fontFamily: Constants.IconFontFamily),
54 | activeIcon: IconData(0xe630, fontFamily: Constants.IconFontFamily),
55 | ),
56 | ];
57 |
58 | @override
59 | void initState() {
60 | super.initState();
61 | _pageController = PageController(initialPage: _currentIndex);
62 | _pages = [
63 | ConversationPage(),
64 | ContactsPage(),
65 | DiscoverPage(),
66 | ProfilePage(),
67 | ];
68 | }
69 |
70 | _buildPopupMenuItem(int iconName, String title) {
71 | return Row(
72 | children: [
73 | Icon(
74 | IconData(iconName, fontFamily: Constants.IconFontFamily),
75 | size: 22.0,
76 | color: AppColors.AppBarPopupMenuColor,
77 | ),
78 | Container(width: 12.0),
79 | Text(
80 | title,
81 | style: TextStyle(color: AppColors.AppBarPopupMenuColor),
82 | ),
83 | ],
84 | );
85 | }
86 |
87 | @override
88 | Widget build(BuildContext context) {
89 | final BottomNavigationBar botNavBar = new BottomNavigationBar(
90 | items: _navigationViews.map((NavigationIconView view) {
91 | return view.item;
92 | }).toList(),
93 | currentIndex: _currentIndex,
94 | type: BottomNavigationBarType.fixed,
95 | fixedColor: AppColors.TabIconActive,
96 | onTap: (int index) {
97 | setState(() {
98 | _currentIndex = index;
99 | _pageController.jumpToPage(_currentIndex);
100 | // _pageController.animateToPage(_currentIndex, duration: Duration(milliseconds: 200), curve: Curves.easeInOut);
101 | });
102 | },
103 | );
104 |
105 | return Scaffold(
106 | appBar: AppBar(
107 | title: Text('微信'),
108 | elevation: 0.0, //不需要阴影
109 | actions: [
110 | IconButton(
111 | icon: Icon(IconData(0xe605, fontFamily: Constants.IconFontFamily)),
112 | onPressed: () {
113 | print('点击了搜索按钮');
114 | },
115 | ),
116 | Container(width: 16.0),
117 | PopupMenuButton(
118 | itemBuilder: (BuildContext context) {
119 | return >[
120 | PopupMenuItem(
121 | child: _buildPopupMenuItem(0xe606, "发起群聊"),
122 | value: ActionItems.GROUP_CHAT,
123 | ),
124 | PopupMenuItem(
125 | child: _buildPopupMenuItem(0xe638, "添加朋友"),
126 | value: ActionItems.ADD_FRIEND,
127 | ),
128 | PopupMenuItem(
129 | child: _buildPopupMenuItem(0xe79b, "扫一扫"),
130 | value: ActionItems.QR_SCAN,
131 | ),
132 | PopupMenuItem(
133 | child: _buildPopupMenuItem(0xe658, "收付款"),
134 | value: ActionItems.PAYMENT,
135 | ),
136 | ];
137 | },
138 | icon: Icon(
139 | IconData(0xe66b, fontFamily: Constants.IconFontFamily),
140 | size: 22.0,
141 | ),
142 | onSelected: (ActionItems selected) {
143 | print('点击的是$selected');
144 | },
145 | ),
146 | Container(width: 16.0)
147 | ],
148 | ),
149 | body: PageView.builder(
150 | itemBuilder: (BuildContext context, int index) {
151 | return _pages[index];
152 | },
153 | physics: NeverScrollableScrollPhysics(),
154 | controller: _pageController,
155 | itemCount: _pages.length,
156 | onPageChanged: (int index) {
157 | setState(() {
158 | _currentIndex = index;
159 | });
160 | },
161 | ),
162 | bottomNavigationBar: botNavBar,
163 | );
164 | }
165 | }
166 |
--------------------------------------------------------------------------------
/lib/pages/profile_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../widgets/full_width_button.dart';
3 | import '../constants.dart' show AppColors, Constants;
4 | import 'package:cached_network_image/cached_network_image.dart';
5 |
6 | class _ProfileHeaderView extends StatelessWidget {
7 | static const HORIZONTAL_PADDING = 20.0;
8 | static const VERTICAL_PADDING = 13.0;
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Container(
13 | color: Colors.white,
14 | padding: EdgeInsets.symmetric(
15 | vertical: VERTICAL_PADDING, horizontal: HORIZONTAL_PADDING),
16 | child: Row(
17 | crossAxisAlignment: CrossAxisAlignment.center,
18 | children: [
19 | CachedNetworkImage(
20 | imageUrl: 'https://z3.ax1x.com/2021/08/18/fom6ED.jpg',
21 | imageBuilder: (context, imageProvider) => Container(
22 | decoration: BoxDecoration(
23 | borderRadius: BorderRadius.all(Radius.circular(6.0)),
24 | image: DecorationImage(image: imageProvider, fit: BoxFit.cover),
25 | ),
26 | ),
27 | placeholder: (context, msg) => Constants.ProfileAvatarDefaultIocn,
28 | errorWidget: (context, url, error) => Icon(Icons.error),
29 | width: Constants.ProfileHeaderIconSize,
30 | height: Constants.ProfileHeaderIconSize,
31 | ),
32 | SizedBox(width: 10.0),
33 | Expanded(
34 | child: Column(
35 | crossAxisAlignment: CrossAxisAlignment.start,
36 | children: [
37 | Text('码农 Super V',
38 | style: TextStyle(
39 | color: AppColors.TitleColor,
40 | fontSize: 16.0,
41 | fontWeight: FontWeight.w500,
42 | )),
43 | SizedBox(height: 10.0),
44 | Text('微信号: xxx123xxx',
45 | style: TextStyle(
46 | color: AppColors.DescTextColor,
47 | fontSize: 13.0,
48 | ))
49 | ],
50 | ),
51 | ),
52 | Icon(
53 | IconData(
54 | 0xe620,
55 | fontFamily: Constants.IconFontFamily,
56 | ),
57 | size: 22.0,
58 | color: AppColors.TabIconNormal,
59 | ),
60 | SizedBox(width: 5.0),
61 | Icon(
62 | IconData(
63 | 0xe664,
64 | fontFamily: Constants.IconFontFamily,
65 | ),
66 | size: 22.0,
67 | color: AppColors.TabIconNormal,
68 | ),
69 | ],
70 | ),
71 | );
72 | }
73 | }
74 |
75 | class ProfilePage extends StatefulWidget {
76 | @override
77 | _ProfilePageState createState() => _ProfilePageState();
78 | }
79 |
80 | class _ProfilePageState extends State {
81 | static const SEPARATE_SIZE = 20.0;
82 |
83 | @override
84 | Widget build(BuildContext context) {
85 | return Container(
86 | color: AppColors.BackgroundColor,
87 | child: SingleChildScrollView(
88 | child: Column(
89 | children: [
90 | SizedBox(height: SEPARATE_SIZE),
91 | _ProfileHeaderView(),
92 | SizedBox(height: SEPARATE_SIZE),
93 | FullWidthButton(
94 | iconPath: 'assets/images/ic_wallet.png',
95 | title: '钱包',
96 | showDivider: true,
97 | onPressed: () {},
98 | ),
99 | SizedBox(height: SEPARATE_SIZE),
100 | FullWidthButton(
101 | iconPath: 'assets/images/ic_collections.png',
102 | title: '收藏',
103 | showDivider: true,
104 | onPressed: () {},
105 | ),
106 | FullWidthButton(
107 | iconPath: 'assets/images/ic_album.png',
108 | title: '相册',
109 | showDivider: true,
110 | onPressed: () {},
111 | ),
112 | FullWidthButton(
113 | iconPath: 'assets/images/ic_cards_wallet.png',
114 | title: '卡包',
115 | showDivider: true,
116 | onPressed: () {},
117 | ),
118 | FullWidthButton(
119 | iconPath: 'assets/images/ic_emotions.png',
120 | title: '表情',
121 | showDivider: true,
122 | onPressed: () {},
123 | ),
124 | SizedBox(height: SEPARATE_SIZE),
125 | FullWidthButton(
126 | iconPath: 'assets/images/ic_settings.png',
127 | title: '设置',
128 | showDivider: true,
129 | onPressed: () {},
130 | ),
131 | ],
132 | ),
133 | ),
134 | );
135 | }
136 | }
137 |
--------------------------------------------------------------------------------
/lib/widgets/full_width_button.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../constants.dart' show Constants, AppColors;
3 |
4 | class FullWidthButton extends StatelessWidget {
5 | static const HORIZONTAL_PADDING = 20.0;
6 | static const VERTICAL_PADDING = 13.0;
7 |
8 | const FullWidthButton({
9 | required this.title,
10 | required this.iconPath,
11 | required this.onPressed,
12 | this.showDivider: false,
13 | });
14 |
15 | final String title;
16 | final String iconPath;
17 | final bool showDivider;
18 | final VoidCallback onPressed;
19 | @override
20 | Widget build(BuildContext context) {
21 | final pureButton = Row(
22 | crossAxisAlignment: CrossAxisAlignment.center,
23 | children: [
24 | Image.asset(
25 | iconPath,
26 | width: Constants.FullWidthIconButtonIconSize,
27 | height: Constants.FullWidthIconButtonIconSize,
28 | ),
29 | SizedBox(width: HORIZONTAL_PADDING),
30 | Expanded(
31 | child: Text(title),
32 | ),
33 | Icon(
34 | IconData(
35 | 0xe664,
36 | fontFamily: Constants.IconFontFamily,
37 | ),
38 | size: 22.0,
39 | color: AppColors.TabIconNormal,
40 | ),
41 | ],
42 | );
43 |
44 | final borderButton = Container(
45 | decoration: BoxDecoration(
46 | border: Border(
47 | bottom: BorderSide(
48 | color: AppColors.DividerColor, width: Constants.DividerWidth)),
49 | ),
50 | padding: EdgeInsets.only(bottom: VERTICAL_PADDING),
51 | child: pureButton,
52 | );
53 |
54 | return GestureDetector(
55 | onTap: onPressed,
56 | child: Container(
57 | padding: EdgeInsets.only(
58 | left: HORIZONTAL_PADDING,
59 | right: HORIZONTAL_PADDING,
60 | top: VERTICAL_PADDING,
61 | bottom: showDivider ? 0.0 : VERTICAL_PADDING),
62 | color: Colors.white,
63 | child: showDivider ? borderButton : pureButton,
64 | ),
65 | );
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | async:
5 | dependency: transitive
6 | description:
7 | name: async
8 | url: "https://pub.flutter-io.cn"
9 | source: hosted
10 | version: "2.6.1"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.flutter-io.cn"
16 | source: hosted
17 | version: "2.1.0"
18 | cached_network_image:
19 | dependency: "direct main"
20 | description:
21 | name: cached_network_image
22 | url: "https://pub.flutter-io.cn"
23 | source: hosted
24 | version: "3.1.0"
25 | cached_network_image_platform_interface:
26 | dependency: transitive
27 | description:
28 | name: cached_network_image_platform_interface
29 | url: "https://pub.flutter-io.cn"
30 | source: hosted
31 | version: "1.0.0"
32 | cached_network_image_web:
33 | dependency: transitive
34 | description:
35 | name: cached_network_image_web
36 | url: "https://pub.flutter-io.cn"
37 | source: hosted
38 | version: "1.0.1"
39 | characters:
40 | dependency: transitive
41 | description:
42 | name: characters
43 | url: "https://pub.flutter-io.cn"
44 | source: hosted
45 | version: "1.1.0"
46 | charcode:
47 | dependency: transitive
48 | description:
49 | name: charcode
50 | url: "https://pub.flutter-io.cn"
51 | source: hosted
52 | version: "1.2.0"
53 | clock:
54 | dependency: transitive
55 | description:
56 | name: clock
57 | url: "https://pub.flutter-io.cn"
58 | source: hosted
59 | version: "1.1.0"
60 | collection:
61 | dependency: transitive
62 | description:
63 | name: collection
64 | url: "https://pub.flutter-io.cn"
65 | source: hosted
66 | version: "1.15.0"
67 | crypto:
68 | dependency: transitive
69 | description:
70 | name: crypto
71 | url: "https://pub.flutter-io.cn"
72 | source: hosted
73 | version: "3.0.1"
74 | cupertino_icons:
75 | dependency: "direct main"
76 | description:
77 | name: cupertino_icons
78 | url: "https://pub.flutter-io.cn"
79 | source: hosted
80 | version: "1.0.3"
81 | fake_async:
82 | dependency: transitive
83 | description:
84 | name: fake_async
85 | url: "https://pub.flutter-io.cn"
86 | source: hosted
87 | version: "1.2.0"
88 | ffi:
89 | dependency: transitive
90 | description:
91 | name: ffi
92 | url: "https://pub.flutter-io.cn"
93 | source: hosted
94 | version: "1.1.2"
95 | file:
96 | dependency: transitive
97 | description:
98 | name: file
99 | url: "https://pub.flutter-io.cn"
100 | source: hosted
101 | version: "6.1.2"
102 | flutter:
103 | dependency: "direct main"
104 | description: flutter
105 | source: sdk
106 | version: "0.0.0"
107 | flutter_blurhash:
108 | dependency: transitive
109 | description:
110 | name: flutter_blurhash
111 | url: "https://pub.flutter-io.cn"
112 | source: hosted
113 | version: "0.6.0"
114 | flutter_cache_manager:
115 | dependency: transitive
116 | description:
117 | name: flutter_cache_manager
118 | url: "https://pub.flutter-io.cn"
119 | source: hosted
120 | version: "3.1.2"
121 | flutter_test:
122 | dependency: "direct dev"
123 | description: flutter
124 | source: sdk
125 | version: "0.0.0"
126 | http:
127 | dependency: transitive
128 | description:
129 | name: http
130 | url: "https://pub.flutter-io.cn"
131 | source: hosted
132 | version: "0.13.3"
133 | http_parser:
134 | dependency: transitive
135 | description:
136 | name: http_parser
137 | url: "https://pub.flutter-io.cn"
138 | source: hosted
139 | version: "4.0.0"
140 | matcher:
141 | dependency: transitive
142 | description:
143 | name: matcher
144 | url: "https://pub.flutter-io.cn"
145 | source: hosted
146 | version: "0.12.10"
147 | meta:
148 | dependency: transitive
149 | description:
150 | name: meta
151 | url: "https://pub.flutter-io.cn"
152 | source: hosted
153 | version: "1.3.0"
154 | octo_image:
155 | dependency: transitive
156 | description:
157 | name: octo_image
158 | url: "https://pub.flutter-io.cn"
159 | source: hosted
160 | version: "1.0.0+1"
161 | path:
162 | dependency: transitive
163 | description:
164 | name: path
165 | url: "https://pub.flutter-io.cn"
166 | source: hosted
167 | version: "1.8.0"
168 | path_provider:
169 | dependency: transitive
170 | description:
171 | name: path_provider
172 | url: "https://pub.flutter-io.cn"
173 | source: hosted
174 | version: "2.0.2"
175 | path_provider_linux:
176 | dependency: transitive
177 | description:
178 | name: path_provider_linux
179 | url: "https://pub.flutter-io.cn"
180 | source: hosted
181 | version: "2.0.2"
182 | path_provider_macos:
183 | dependency: transitive
184 | description:
185 | name: path_provider_macos
186 | url: "https://pub.flutter-io.cn"
187 | source: hosted
188 | version: "2.0.2"
189 | path_provider_platform_interface:
190 | dependency: transitive
191 | description:
192 | name: path_provider_platform_interface
193 | url: "https://pub.flutter-io.cn"
194 | source: hosted
195 | version: "2.0.1"
196 | path_provider_windows:
197 | dependency: transitive
198 | description:
199 | name: path_provider_windows
200 | url: "https://pub.flutter-io.cn"
201 | source: hosted
202 | version: "2.0.3"
203 | pedantic:
204 | dependency: transitive
205 | description:
206 | name: pedantic
207 | url: "https://pub.flutter-io.cn"
208 | source: hosted
209 | version: "1.11.1"
210 | platform:
211 | dependency: transitive
212 | description:
213 | name: platform
214 | url: "https://pub.flutter-io.cn"
215 | source: hosted
216 | version: "3.0.0"
217 | plugin_platform_interface:
218 | dependency: transitive
219 | description:
220 | name: plugin_platform_interface
221 | url: "https://pub.flutter-io.cn"
222 | source: hosted
223 | version: "2.0.1"
224 | process:
225 | dependency: transitive
226 | description:
227 | name: process
228 | url: "https://pub.flutter-io.cn"
229 | source: hosted
230 | version: "4.2.3"
231 | rxdart:
232 | dependency: transitive
233 | description:
234 | name: rxdart
235 | url: "https://pub.flutter-io.cn"
236 | source: hosted
237 | version: "0.27.1"
238 | sky_engine:
239 | dependency: transitive
240 | description: flutter
241 | source: sdk
242 | version: "0.0.99"
243 | source_span:
244 | dependency: transitive
245 | description:
246 | name: source_span
247 | url: "https://pub.flutter-io.cn"
248 | source: hosted
249 | version: "1.8.1"
250 | sqflite:
251 | dependency: transitive
252 | description:
253 | name: sqflite
254 | url: "https://pub.flutter-io.cn"
255 | source: hosted
256 | version: "2.0.0+3"
257 | sqflite_common:
258 | dependency: transitive
259 | description:
260 | name: sqflite_common
261 | url: "https://pub.flutter-io.cn"
262 | source: hosted
263 | version: "2.0.0+2"
264 | stack_trace:
265 | dependency: transitive
266 | description:
267 | name: stack_trace
268 | url: "https://pub.flutter-io.cn"
269 | source: hosted
270 | version: "1.10.0"
271 | stream_channel:
272 | dependency: transitive
273 | description:
274 | name: stream_channel
275 | url: "https://pub.flutter-io.cn"
276 | source: hosted
277 | version: "2.1.0"
278 | string_scanner:
279 | dependency: transitive
280 | description:
281 | name: string_scanner
282 | url: "https://pub.flutter-io.cn"
283 | source: hosted
284 | version: "1.1.0"
285 | synchronized:
286 | dependency: transitive
287 | description:
288 | name: synchronized
289 | url: "https://pub.flutter-io.cn"
290 | source: hosted
291 | version: "3.0.0"
292 | term_glyph:
293 | dependency: transitive
294 | description:
295 | name: term_glyph
296 | url: "https://pub.flutter-io.cn"
297 | source: hosted
298 | version: "1.2.0"
299 | test_api:
300 | dependency: transitive
301 | description:
302 | name: test_api
303 | url: "https://pub.flutter-io.cn"
304 | source: hosted
305 | version: "0.3.0"
306 | typed_data:
307 | dependency: transitive
308 | description:
309 | name: typed_data
310 | url: "https://pub.flutter-io.cn"
311 | source: hosted
312 | version: "1.3.0"
313 | uuid:
314 | dependency: transitive
315 | description:
316 | name: uuid
317 | url: "https://pub.flutter-io.cn"
318 | source: hosted
319 | version: "3.0.4"
320 | vector_math:
321 | dependency: transitive
322 | description:
323 | name: vector_math
324 | url: "https://pub.flutter-io.cn"
325 | source: hosted
326 | version: "2.1.0"
327 | win32:
328 | dependency: transitive
329 | description:
330 | name: win32
331 | url: "https://pub.flutter-io.cn"
332 | source: hosted
333 | version: "2.2.5"
334 | xdg_directories:
335 | dependency: transitive
336 | description:
337 | name: xdg_directories
338 | url: "https://pub.flutter-io.cn"
339 | source: hosted
340 | version: "0.2.0"
341 | sdks:
342 | dart: ">=2.13.0 <3.0.0"
343 | flutter: ">=2.0.0"
344 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: flutter_wechat_clone
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.12.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 |
27 |
28 | # The following adds the Cupertino Icons font to your application.
29 | # Use with the CupertinoIcons class for iOS style icons.
30 | cupertino_icons: ^1.0.2
31 | cached_network_image: ^3.1.0
32 |
33 |
34 | dev_dependencies:
35 | flutter_test:
36 | sdk: flutter
37 |
38 | # For information on the generic Dart part of this file, see the
39 | # following page: https://dart.dev/tools/pub/pubspec
40 |
41 | # The following section is specific to Flutter.
42 | flutter:
43 |
44 | # The following line ensures that the Material Icons font is
45 | # included with your application, so that you can use the icons in
46 | # the material Icons class.
47 | uses-material-design: true
48 | assets:
49 | - assets/images/ic_file_transfer.png
50 | - assets/images/ic_fengchao.png
51 | - assets/images/ic_tx_news.png
52 | - assets/images/ic_wx_games.png
53 | - assets/images/ic_new_friend.png
54 | - assets/images/ic_group_chat.png
55 | - assets/images/ic_tag.png
56 | - assets/images/ic_public_account.png
57 | - assets/images/ic_bottle_msg.png
58 | - assets/images/ic_feeds.png
59 | - assets/images/ic_game_entry.png
60 | - assets/images/ic_mini_program.png
61 | - assets/images/ic_people_nearby.png
62 | - assets/images/ic_quick_scan.png
63 | - assets/images/ic_quick_search.png
64 | - assets/images/ic_shake_phone.png
65 | - assets/images/ic_shopping.png
66 | - assets/images/ic_social_circle.png
67 | - assets/images/ic_wallet.png
68 | - assets/images/ic_album.png
69 | - assets/images/ic_collections.png
70 | - assets/images/ic_cards_wallet.png
71 | - assets/images/ic_emotions.png
72 | - assets/images/ic_settings.png
73 | - assets/images/ic_qrcode_preview_tiny.png
74 | - assets/images/default_nor_avatar.png
75 | fonts:
76 | - family: appIconFont
77 | fonts:
78 | - asset: assets/fonts/iconfont.ttf
79 |
80 |
81 | # To add assets to your application, add an assets section, like this:
82 | # assets:
83 | # - images/a_dot_burr.jpeg
84 | # - images/a_dot_ham.jpeg
85 |
86 | # An image asset can refer to one or more resolution-specific "variants", see
87 | # https://flutter.dev/assets-and-images/#resolution-aware.
88 |
89 | # For details regarding adding assets from package dependencies, see
90 | # https://flutter.dev/assets-and-images/#from-packages
91 |
92 | # To add custom fonts to your application, add a fonts section here,
93 | # in this "flutter" section. Each entry in this list should have a
94 | # "family" key with the font family name, and a "fonts" key with a
95 | # list giving the asset and other descriptors for the font. For
96 | # example:
97 | # fonts:
98 | # - family: Schyler
99 | # fonts:
100 | # - asset: fonts/Schyler-Regular.ttf
101 | # - asset: fonts/Schyler-Italic.ttf
102 | # style: italic
103 | # - family: Trajan Pro
104 | # fonts:
105 | # - asset: fonts/TrajanPro.ttf
106 | # - asset: fonts/TrajanPro_Bold.ttf
107 | # weight: 700
108 | #
109 | # For details regarding fonts from package dependencies,
110 | # see https://flutter.dev/custom-fonts/#from-packages
111 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:flutter_wechat_clone/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vvkeep/flutter_wechat_clone/4cf1af33572ccf5b4b3a23ff4d91747da828a0c4/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | flutter_wechat_clone
27 |
28 |
29 |
30 |
33 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "flutter_wechat_clone",
3 | "short_name": "flutter_wechat_clone",
4 | "start_url": ".",
5 | "display": "standalone",
6 | "background_color": "#0175C2",
7 | "theme_color": "#0175C2",
8 | "description": "A new Flutter project.",
9 | "orientation": "portrait-primary",
10 | "prefer_related_applications": false,
11 | "icons": [
12 | {
13 | "src": "icons/Icon-192.png",
14 | "sizes": "192x192",
15 | "type": "image/png"
16 | },
17 | {
18 | "src": "icons/Icon-512.png",
19 | "sizes": "512x512",
20 | "type": "image/png"
21 | }
22 | ]
23 | }
24 |
--------------------------------------------------------------------------------