├── .gitignore ├── .metadata ├── .vscode ├── launch.json └── settings.json ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_shitu │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── 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 │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── splash.jpg ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── 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 │ ├── Contents.json │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── README.md │ │ ├── ShiTu@1x.jpg │ │ ├── ShiTu@2x.jpg │ │ └── ShiTu@3x.jpg │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── jsons └── collections │ ├── collections.json │ ├── collectionsInfo.json │ └── collectionsList.json ├── lib ├── config │ └── application.dart ├── main.dart ├── mobx │ ├── collections │ │ ├── index.dart │ │ └── index.g.dart │ └── index.dart ├── models │ ├── collections │ │ ├── collections.dart │ │ ├── collections.g.dart │ │ ├── collectionsInfo.dart │ │ ├── collectionsInfo.g.dart │ │ ├── collectionsList.dart │ │ └── collectionsList.g.dart │ └── index.dart ├── pages │ ├── collections │ │ ├── collections_list.dart │ │ ├── index.dart │ │ └── widgets │ │ │ ├── image_item_dialog.dart │ │ │ ├── index.dart │ │ │ ├── item_overlayer.dart │ │ │ ├── items │ │ │ ├── image_item.dart │ │ │ ├── index.dart │ │ │ └── text_item.dart │ │ │ └── user_info.dart │ ├── launch │ │ └── launch.dart │ ├── mine │ │ └── mine.dart │ └── shitu │ │ └── shitu.dart ├── routers │ ├── router.dart │ ├── router_empty.dart │ ├── router_handler.dart │ └── router_tab.dart ├── stores │ ├── index.dart │ └── shitu │ │ ├── index.dart │ │ └── index.g.dart ├── utils │ ├── hex_color.dart │ ├── image_clipper.dart │ └── request.dart └── widgets │ ├── custom_dialog │ └── custom_dialog.dart │ ├── keep_alive │ └── index.dart │ └── overlayer │ └── overlayer_container.dart ├── pubspec.lock ├── pubspec.yaml └── test └── widget_test.dart /.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 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/Flutter/flutter_export_environment.sh 65 | **/ios/ServiceDefinitions.json 66 | **/ios/Runner/GeneratedPluginRegistrant.* 67 | 68 | # Exceptions to above rules. 69 | !**/ios/**/default.mode1v3 70 | !**/ios/**/default.mode2v3 71 | !**/ios/**/default.pbxuser 72 | !**/ios/**/default.perspectivev3 73 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 74 | -------------------------------------------------------------------------------- /.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: 2d2a1ffec95cc70a3218872a2cd3f8de4933c42f 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // 使用 IntelliSense 了解相关属性。 3 | // 悬停以查看现有属性的描述。 4 | // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "name": "Flutter", 9 | "request": "launch", 10 | "type": "dart" 11 | } 12 | ] 13 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "eggHelper.serverPort": 44205 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 项目介绍 2 | 3 | flutter版识兔,会还原react-native版拥有的功能。 4 | 5 | ## 更新日志 6 | 7 | 1. 实现tab页另类的懒加载 8 | 2. 实现首页动画效果 9 | 3. 实现请求数据序列化 10 | -------------------------------------------------------------------------------- /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 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.flutter_shitu" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | testImplementation 'junit:junit:4.12' 65 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 66 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 67 | } 68 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 13 | 20 | 24 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_shitu/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_shitu 2 | 3 | import android.os.Bundle 4 | 5 | import io.flutter.app.FlutterActivity 6 | import io.flutter.plugins.GeneratedPluginRegistrant 7 | 8 | class MainActivity: FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | super.onCreate(savedInstanceState) 11 | GeneratedPluginRegistrant.registerWith(this) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.2.71' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.2.1' 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 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | -------------------------------------------------------------------------------- /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-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /assets/splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/assets/splash.jpg -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 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 parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | 38 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 39 | # referring to absolute paths on developers' machines. 40 | system('rm -rf .symlinks') 41 | system('mkdir -p .symlinks/plugins') 42 | 43 | # Flutter Pods 44 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 45 | if generated_xcode_build_settings.empty? 46 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first." 47 | end 48 | generated_xcode_build_settings.map { |p| 49 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 50 | symlink = File.join('.symlinks', 'flutter') 51 | File.symlink(File.dirname(p[:path]), symlink) 52 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 53 | end 54 | } 55 | 56 | # Plugin Pods 57 | plugin_pods = parse_KV_file('../.flutter-plugins') 58 | plugin_pods.map { |p| 59 | symlink = File.join('.symlinks', 'plugins', p[:name]) 60 | File.symlink(p[:path], symlink) 61 | pod p[:name], :path => File.join(symlink, 'ios') 62 | } 63 | end 64 | 65 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 66 | install! 'cocoapods', :disable_input_output_paths => true 67 | 68 | post_install do |installer| 69 | installer.pods_project.targets.each do |target| 70 | target.build_configurations.each do |config| 71 | config.build_settings['ENABLE_BITCODE'] = 'NO' 72 | end 73 | end 74 | end 75 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - url_launcher (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `.symlinks/flutter/ios`) 8 | - url_launcher (from `.symlinks/plugins/url_launcher/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: ".symlinks/flutter/ios" 13 | url_launcher: 14 | :path: ".symlinks/plugins/url_launcher/ios" 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 18 | url_launcher: a1c0cc845906122c4784c542523d8cacbded5626 19 | 20 | PODFILE CHECKSUM: b6a0a141693093b304368d08511b46cf3d1d0ac5 21 | 22 | COCOAPODS: 1.7.5 23 | -------------------------------------------------------------------------------- /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 | 0413E581A7DD49B1401F1DCC /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D2FE2B27EFF270C67F92F173 /* Pods_Runner.framework */; }; 11 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 18 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 42 | 2E819FF30F2D56B029F43C3F /* 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 = ""; }; 43 | 2FA6E04C2254F1BA6DFD76EF /* 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 = ""; }; 44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 87E35D4419C59A4C24A89F04 /* 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 = ""; }; 50 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 51 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 52 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 53 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | D2FE2B27EFF270C67F92F173 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | /* End PBXFileReference section */ 60 | 61 | /* Begin PBXFrameworksBuildPhase section */ 62 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 67 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 68 | 0413E581A7DD49B1401F1DCC /* Pods_Runner.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 2FD51B687461CC7AEC0B0431 /* Pods */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 2FA6E04C2254F1BA6DFD76EF /* Pods-Runner.debug.xcconfig */, 79 | 2E819FF30F2D56B029F43C3F /* Pods-Runner.release.xcconfig */, 80 | 87E35D4419C59A4C24A89F04 /* Pods-Runner.profile.xcconfig */, 81 | ); 82 | name = Pods; 83 | path = Pods; 84 | sourceTree = ""; 85 | }; 86 | 9740EEB11CF90186004384FC /* Flutter */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 3B80C3931E831B6300D905FE /* App.framework */, 90 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 91 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 92 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 93 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 94 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 95 | ); 96 | name = Flutter; 97 | sourceTree = ""; 98 | }; 99 | 97C146E51CF9000F007C117D = { 100 | isa = PBXGroup; 101 | children = ( 102 | 9740EEB11CF90186004384FC /* Flutter */, 103 | 97C146F01CF9000F007C117D /* Runner */, 104 | 97C146EF1CF9000F007C117D /* Products */, 105 | 2FD51B687461CC7AEC0B0431 /* Pods */, 106 | EF925D919ADC6104C2DAF4CF /* Frameworks */, 107 | ); 108 | sourceTree = ""; 109 | }; 110 | 97C146EF1CF9000F007C117D /* Products */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 97C146EE1CF9000F007C117D /* Runner.app */, 114 | ); 115 | name = Products; 116 | sourceTree = ""; 117 | }; 118 | 97C146F01CF9000F007C117D /* Runner */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 122 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 123 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 124 | 97C147021CF9000F007C117D /* Info.plist */, 125 | 97C146F11CF9000F007C117D /* Supporting Files */, 126 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 127 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 128 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 129 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 130 | ); 131 | path = Runner; 132 | sourceTree = ""; 133 | }; 134 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | EF925D919ADC6104C2DAF4CF /* Frameworks */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | D2FE2B27EFF270C67F92F173 /* Pods_Runner.framework */, 145 | ); 146 | name = Frameworks; 147 | sourceTree = ""; 148 | }; 149 | /* End PBXGroup section */ 150 | 151 | /* Begin PBXNativeTarget section */ 152 | 97C146ED1CF9000F007C117D /* Runner */ = { 153 | isa = PBXNativeTarget; 154 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 155 | buildPhases = ( 156 | 2220F22C02DAB4D9A227EC1A /* [CP] Check Pods Manifest.lock */, 157 | 9740EEB61CF901F6004384FC /* Run Script */, 158 | 97C146EA1CF9000F007C117D /* Sources */, 159 | 97C146EB1CF9000F007C117D /* Frameworks */, 160 | 97C146EC1CF9000F007C117D /* Resources */, 161 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 162 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 163 | A30ACFBF9F00805DA4989F7F /* [CP] Embed Pods Frameworks */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | ); 169 | name = Runner; 170 | productName = Runner; 171 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 172 | productType = "com.apple.product-type.application"; 173 | }; 174 | /* End PBXNativeTarget section */ 175 | 176 | /* Begin PBXProject section */ 177 | 97C146E61CF9000F007C117D /* Project object */ = { 178 | isa = PBXProject; 179 | attributes = { 180 | LastUpgradeCheck = 1020; 181 | ORGANIZATIONNAME = "The Chromium Authors"; 182 | TargetAttributes = { 183 | 97C146ED1CF9000F007C117D = { 184 | CreatedOnToolsVersion = 7.3.1; 185 | LastSwiftMigration = 0910; 186 | }; 187 | }; 188 | }; 189 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 190 | compatibilityVersion = "Xcode 3.2"; 191 | developmentRegion = en; 192 | hasScannedForEncodings = 0; 193 | knownRegions = ( 194 | en, 195 | Base, 196 | ); 197 | mainGroup = 97C146E51CF9000F007C117D; 198 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 199 | projectDirPath = ""; 200 | projectRoot = ""; 201 | targets = ( 202 | 97C146ED1CF9000F007C117D /* Runner */, 203 | ); 204 | }; 205 | /* End PBXProject section */ 206 | 207 | /* Begin PBXResourcesBuildPhase section */ 208 | 97C146EC1CF9000F007C117D /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 213 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 214 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 215 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 216 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | }; 220 | /* End PBXResourcesBuildPhase section */ 221 | 222 | /* Begin PBXShellScriptBuildPhase section */ 223 | 2220F22C02DAB4D9A227EC1A /* [CP] Check Pods Manifest.lock */ = { 224 | isa = PBXShellScriptBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | inputFileListPaths = ( 229 | ); 230 | inputPaths = ( 231 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 232 | "${PODS_ROOT}/Manifest.lock", 233 | ); 234 | name = "[CP] Check Pods Manifest.lock"; 235 | outputFileListPaths = ( 236 | ); 237 | outputPaths = ( 238 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | shellPath = /bin/sh; 242 | 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"; 243 | showEnvVarsInLog = 0; 244 | }; 245 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 246 | isa = PBXShellScriptBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | ); 250 | inputPaths = ( 251 | ); 252 | name = "Thin Binary"; 253 | outputPaths = ( 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | shellPath = /bin/sh; 257 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 258 | }; 259 | 9740EEB61CF901F6004384FC /* Run Script */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | ); 266 | name = "Run Script"; 267 | outputPaths = ( 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | shellPath = /bin/sh; 271 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 272 | }; 273 | A30ACFBF9F00805DA4989F7F /* [CP] Embed Pods Frameworks */ = { 274 | isa = PBXShellScriptBuildPhase; 275 | buildActionMask = 2147483647; 276 | files = ( 277 | ); 278 | inputPaths = ( 279 | ); 280 | name = "[CP] Embed Pods Frameworks"; 281 | outputPaths = ( 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 286 | showEnvVarsInLog = 0; 287 | }; 288 | /* End PBXShellScriptBuildPhase section */ 289 | 290 | /* Begin PBXSourcesBuildPhase section */ 291 | 97C146EA1CF9000F007C117D /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 296 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 297 | ); 298 | runOnlyForDeploymentPostprocessing = 0; 299 | }; 300 | /* End PBXSourcesBuildPhase section */ 301 | 302 | /* Begin PBXVariantGroup section */ 303 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 304 | isa = PBXVariantGroup; 305 | children = ( 306 | 97C146FB1CF9000F007C117D /* Base */, 307 | ); 308 | name = Main.storyboard; 309 | sourceTree = ""; 310 | }; 311 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 312 | isa = PBXVariantGroup; 313 | children = ( 314 | 97C147001CF9000F007C117D /* Base */, 315 | ); 316 | name = LaunchScreen.storyboard; 317 | sourceTree = ""; 318 | }; 319 | /* End PBXVariantGroup section */ 320 | 321 | /* Begin XCBuildConfiguration section */ 322 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 323 | isa = XCBuildConfiguration; 324 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 325 | buildSettings = { 326 | ALWAYS_SEARCH_USER_PATHS = NO; 327 | CLANG_ANALYZER_NONNULL = YES; 328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 329 | CLANG_CXX_LIBRARY = "libc++"; 330 | CLANG_ENABLE_MODULES = YES; 331 | CLANG_ENABLE_OBJC_ARC = YES; 332 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_COMMA = YES; 335 | CLANG_WARN_CONSTANT_CONVERSION = YES; 336 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 337 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INFINITE_RECURSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 344 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 345 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 346 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 347 | CLANG_WARN_STRICT_PROTOTYPES = YES; 348 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 349 | CLANG_WARN_UNREACHABLE_CODE = YES; 350 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 351 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 352 | COPY_PHASE_STRIP = NO; 353 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 354 | ENABLE_NS_ASSERTIONS = NO; 355 | ENABLE_STRICT_OBJC_MSGSEND = YES; 356 | GCC_C_LANGUAGE_STANDARD = gnu99; 357 | GCC_NO_COMMON_BLOCKS = YES; 358 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 359 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 360 | GCC_WARN_UNDECLARED_SELECTOR = YES; 361 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 362 | GCC_WARN_UNUSED_FUNCTION = YES; 363 | GCC_WARN_UNUSED_VARIABLE = YES; 364 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 365 | MTL_ENABLE_DEBUG_INFO = NO; 366 | SDKROOT = iphoneos; 367 | TARGETED_DEVICE_FAMILY = "1,2"; 368 | VALIDATE_PRODUCT = YES; 369 | }; 370 | name = Profile; 371 | }; 372 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 373 | isa = XCBuildConfiguration; 374 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 375 | buildSettings = { 376 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 377 | CLANG_ENABLE_MODULES = YES; 378 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 379 | ENABLE_BITCODE = NO; 380 | FRAMEWORK_SEARCH_PATHS = ( 381 | "$(inherited)", 382 | "$(PROJECT_DIR)/Flutter", 383 | ); 384 | INFOPLIST_FILE = Runner/Info.plist; 385 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 386 | LIBRARY_SEARCH_PATHS = ( 387 | "$(inherited)", 388 | "$(PROJECT_DIR)/Flutter", 389 | ); 390 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterShitu; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 393 | SWIFT_VERSION = 4.0; 394 | VERSIONING_SYSTEM = "apple-generic"; 395 | }; 396 | name = Profile; 397 | }; 398 | 97C147031CF9000F007C117D /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 401 | buildSettings = { 402 | ALWAYS_SEARCH_USER_PATHS = NO; 403 | CLANG_ANALYZER_NONNULL = YES; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 405 | CLANG_CXX_LIBRARY = "libc++"; 406 | CLANG_ENABLE_MODULES = YES; 407 | CLANG_ENABLE_OBJC_ARC = YES; 408 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 409 | CLANG_WARN_BOOL_CONVERSION = YES; 410 | CLANG_WARN_COMMA = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 414 | CLANG_WARN_EMPTY_BODY = YES; 415 | CLANG_WARN_ENUM_CONVERSION = YES; 416 | CLANG_WARN_INFINITE_RECURSION = YES; 417 | CLANG_WARN_INT_CONVERSION = YES; 418 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 419 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 423 | CLANG_WARN_STRICT_PROTOTYPES = YES; 424 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 425 | CLANG_WARN_UNREACHABLE_CODE = YES; 426 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 427 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 428 | COPY_PHASE_STRIP = NO; 429 | DEBUG_INFORMATION_FORMAT = dwarf; 430 | ENABLE_STRICT_OBJC_MSGSEND = YES; 431 | ENABLE_TESTABILITY = YES; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_DYNAMIC_NO_PIC = NO; 434 | GCC_NO_COMMON_BLOCKS = YES; 435 | GCC_OPTIMIZATION_LEVEL = 0; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "DEBUG=1", 438 | "$(inherited)", 439 | ); 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | ONLY_ACTIVE_ARCH = YES; 449 | SDKROOT = iphoneos; 450 | TARGETED_DEVICE_FAMILY = "1,2"; 451 | }; 452 | name = Debug; 453 | }; 454 | 97C147041CF9000F007C117D /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 457 | buildSettings = { 458 | ALWAYS_SEARCH_USER_PATHS = NO; 459 | CLANG_ANALYZER_NONNULL = YES; 460 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 461 | CLANG_CXX_LIBRARY = "libc++"; 462 | CLANG_ENABLE_MODULES = YES; 463 | CLANG_ENABLE_OBJC_ARC = YES; 464 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 465 | CLANG_WARN_BOOL_CONVERSION = YES; 466 | CLANG_WARN_COMMA = YES; 467 | CLANG_WARN_CONSTANT_CONVERSION = YES; 468 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 469 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 470 | CLANG_WARN_EMPTY_BODY = YES; 471 | CLANG_WARN_ENUM_CONVERSION = YES; 472 | CLANG_WARN_INFINITE_RECURSION = YES; 473 | CLANG_WARN_INT_CONVERSION = YES; 474 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 475 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 476 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 477 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 478 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 479 | CLANG_WARN_STRICT_PROTOTYPES = YES; 480 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 481 | CLANG_WARN_UNREACHABLE_CODE = YES; 482 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 483 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 484 | COPY_PHASE_STRIP = NO; 485 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 486 | ENABLE_NS_ASSERTIONS = NO; 487 | ENABLE_STRICT_OBJC_MSGSEND = YES; 488 | GCC_C_LANGUAGE_STANDARD = gnu99; 489 | GCC_NO_COMMON_BLOCKS = YES; 490 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 491 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 492 | GCC_WARN_UNDECLARED_SELECTOR = YES; 493 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 494 | GCC_WARN_UNUSED_FUNCTION = YES; 495 | GCC_WARN_UNUSED_VARIABLE = YES; 496 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 497 | MTL_ENABLE_DEBUG_INFO = NO; 498 | SDKROOT = iphoneos; 499 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 500 | TARGETED_DEVICE_FAMILY = "1,2"; 501 | VALIDATE_PRODUCT = YES; 502 | }; 503 | name = Release; 504 | }; 505 | 97C147061CF9000F007C117D /* Debug */ = { 506 | isa = XCBuildConfiguration; 507 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 508 | buildSettings = { 509 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 510 | CLANG_ENABLE_MODULES = YES; 511 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 512 | ENABLE_BITCODE = NO; 513 | FRAMEWORK_SEARCH_PATHS = ( 514 | "$(inherited)", 515 | "$(PROJECT_DIR)/Flutter", 516 | ); 517 | INFOPLIST_FILE = Runner/Info.plist; 518 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 519 | LIBRARY_SEARCH_PATHS = ( 520 | "$(inherited)", 521 | "$(PROJECT_DIR)/Flutter", 522 | ); 523 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterShitu; 524 | PRODUCT_NAME = "$(TARGET_NAME)"; 525 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 526 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 527 | SWIFT_VERSION = 4.0; 528 | VERSIONING_SYSTEM = "apple-generic"; 529 | }; 530 | name = Debug; 531 | }; 532 | 97C147071CF9000F007C117D /* Release */ = { 533 | isa = XCBuildConfiguration; 534 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 535 | buildSettings = { 536 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 537 | CLANG_ENABLE_MODULES = YES; 538 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 539 | ENABLE_BITCODE = NO; 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(inherited)", 542 | "$(PROJECT_DIR)/Flutter", 543 | ); 544 | INFOPLIST_FILE = Runner/Info.plist; 545 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 546 | LIBRARY_SEARCH_PATHS = ( 547 | "$(inherited)", 548 | "$(PROJECT_DIR)/Flutter", 549 | ); 550 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterShitu; 551 | PRODUCT_NAME = "$(TARGET_NAME)"; 552 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 553 | SWIFT_VERSION = 4.0; 554 | VERSIONING_SYSTEM = "apple-generic"; 555 | }; 556 | name = Release; 557 | }; 558 | /* End XCBuildConfiguration section */ 559 | 560 | /* Begin XCConfigurationList section */ 561 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | 97C147031CF9000F007C117D /* Debug */, 565 | 97C147041CF9000F007C117D /* Release */, 566 | 249021D3217E4FDB00AE95B9 /* Profile */, 567 | ); 568 | defaultConfigurationIsVisible = 0; 569 | defaultConfigurationName = Release; 570 | }; 571 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 572 | isa = XCConfigurationList; 573 | buildConfigurations = ( 574 | 97C147061CF9000F007C117D /* Debug */, 575 | 97C147071CF9000F007C117D /* Release */, 576 | 249021D4217E4FDB00AE95B9 /* Profile */, 577 | ); 578 | defaultConfigurationIsVisible = 0; 579 | defaultConfigurationName = Release; 580 | }; 581 | /* End XCConfigurationList section */ 582 | }; 583 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 584 | } 585 | -------------------------------------------------------------------------------- /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/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/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/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/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "ShiTu@1x.jpg", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "ShiTu@2x.jpg", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "ShiTu@3x.jpg", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /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/Assets.xcassets/LaunchImage.imageset/ShiTu@1x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/ios/Runner/Assets.xcassets/LaunchImage.imageset/ShiTu@1x.jpg -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/ShiTu@2x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/ios/Runner/Assets.xcassets/LaunchImage.imageset/ShiTu@2x.jpg -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/ShiTu@3x.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeRabbitYu/flutter_shitu/710627662a8b1390743f4b5bd91d6b1c7ab13d9c/ios/Runner/Assets.xcassets/LaunchImage.imageset/ShiTu@3x.jpg -------------------------------------------------------------------------------- /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_shitu 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" -------------------------------------------------------------------------------- /jsons/collections/collections.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": "$collectionsInfo", 3 | "list": "$[]collectionsList" 4 | } 5 | -------------------------------------------------------------------------------- /jsons/collections/collectionsInfo.json: -------------------------------------------------------------------------------- 1 | { 2 | "vendor": "node94", 3 | "count": 2000, 4 | "page": 100, 5 | "maxid": "1571148481", 6 | "maxtime": "1571148481" 7 | } 8 | -------------------------------------------------------------------------------- /jsons/collections/collectionsList.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "29852239", 3 | "type": "10", 4 | "text": "我终于长大了。。。", 5 | "user_id": "23131348", 6 | "name": "思索", 7 | "screen_name": "思索", 8 | "profile_image": "http://wimg.spriteapp.cn/profile/large/2019/07/04/5d1d90455d31d_mini.jpg", 9 | "created_at": "2019-10-16 10:36:01", 10 | "create_time": "2019-10-15 10:30:15", 11 | "passtime": "2019-10-16 10:36:01", 12 | "love": "73", 13 | "hate": "6", 14 | "comment": "2", 15 | "repost": "0", 16 | "bookmark": "0", 17 | "bimageuri": "", 18 | "voiceuri": "", 19 | "voicetime": "0", 20 | "voicelength": "0", 21 | "status": "4", 22 | "theme_id": "58240", 23 | "theme_name": "搞笑图片", 24 | "theme_type": "1", 25 | "videouri": "", 26 | "videotime": "0", 27 | "original_pid": "0", 28 | "cache_version": 2, 29 | "cai": "6", 30 | "top_cmt": [], 31 | "weixin_url": "http://c.f.winapp111.com/share/29852239.html?wx.qq.com&appname=", 32 | "themes": [], 33 | "image0": "http://wimg.spriteapp.cn/ugc/2019/10/15/5da52f3777727_1.jpg", 34 | "image2": "http://wimg.spriteapp.cn/ugc/2019/10/15/5da52f3777727_1.jpg", 35 | "image1": "http://wimg.spriteapp.cn/ugc/2019/10/15/5da52f3777727_1.jpg", 36 | "cdn_img": "http://wimg.spriteapp.cn/ugc/2019/10/15/5da52f3777727_1.jpg", 37 | "is_gif": "0", 38 | "width": "690", 39 | "height": "441", 40 | "tag": "", 41 | "t": 1571193361, 42 | "ding": "73", 43 | "favourite": "0", 44 | "isLongImage": false 45 | } 46 | -------------------------------------------------------------------------------- /lib/config/application.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:fluro/fluro.dart'; 3 | 4 | enum ENV { 5 | PRODUCTION, 6 | DEV, 7 | } 8 | 9 | class Application { 10 | /// 通过Application设计环境变量 11 | static ENV env = ENV.DEV; 12 | 13 | static Router router; 14 | static TabController controller; 15 | static bool pageIsOpen = false; 16 | 17 | /// 所有获取配置的唯一入口 18 | Map get config { 19 | if (Application.env == ENV.PRODUCTION) { 20 | return {}; 21 | } 22 | if (Application.env == ENV.DEV) { 23 | return {}; 24 | } 25 | return {}; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:fluro/fluro.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_shitu/config/application.dart'; 4 | import 'package:flutter_shitu/pages/launch/launch.dart'; 5 | import 'package:flutter_shitu/pages/mine/mine.dart'; 6 | import 'package:flutter_shitu/pages/collections/index.dart'; 7 | import 'package:flutter_shitu/pages/shitu/shitu.dart'; 8 | import 'package:flutter_shitu/routers/router.dart'; 9 | import 'package:flutter_shitu/stores/shitu/index.dart'; 10 | 11 | import 'package:provider/provider.dart'; 12 | 13 | class MyApp extends StatefulWidget { 14 | MyApp() { 15 | final router = new Router(); 16 | Routes.configureRoutes(router); 17 | Application.router = router; 18 | } 19 | 20 | _MyAppState createState() => _MyAppState(); 21 | } 22 | 23 | class _MyAppState extends State { 24 | @override 25 | Widget build(BuildContext context) => MultiProvider( 26 | providers: [ 27 | Provider( 28 | builder: (_) => ShiTuStore(), 29 | ), 30 | ], 31 | child: MaterialApp( 32 | theme: ThemeData(backgroundColor: Colors.white), 33 | home: Scaffold( 34 | resizeToAvoidBottomPadding: false, 35 | body: Collections(), 36 | ), 37 | onGenerateRoute: Application.router.generator, 38 | ), 39 | ); 40 | } 41 | 42 | void main() => runApp(MyApp()); 43 | -------------------------------------------------------------------------------- /lib/mobx/collections/index.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_shitu/models/index.dart'; 4 | import 'package:flutter_shitu/utils/image_clipper.dart'; 5 | import 'package:flutter_shitu/utils/request.dart'; 6 | 7 | import 'package:flutter_shitu/models/collections/collections.dart'; 8 | 9 | import 'package:mobx/mobx.dart'; 10 | 11 | import 'dart:ui' as ui; 12 | import 'dart:async'; 13 | 14 | part 'index.g.dart'; 15 | 16 | class CollectionsMobx = _CollectionsMobx with _$CollectionsMobx; 17 | 18 | /// 先使用回调的方式来更新页面,之后会集成redux或者mobx来做数据管理 19 | abstract class _CollectionsMobx with Store { 20 | @observable 21 | CollectionsModel collectionsData; 22 | 23 | @observable 24 | List collectionsList; 25 | 26 | @observable 27 | List clippers = []; 28 | 29 | @observable 30 | String maxtime = '123'; 31 | 32 | Future loadCollectionsData(num type, [String value = '']) async { 33 | final collections = await request.get( 34 | 'http://api.budejie.com/api/api_open.php?a=list&c=data&type=$type&maxtime=$value'); 35 | 36 | // 'http://api.budejie.com/api/api_open.php?a=list&c=data&type=${type}&maxtime=${maxtime}'; 37 | 38 | debugPrint('maxtime: $maxtime'); 39 | 40 | final collectionsData = CollectionsModel.fromJson(collections.data); 41 | 42 | if (value == null || value == '') { 43 | collectionsList = collectionsData.list; 44 | maxtime = collectionsData.info.maxtime; 45 | } else { 46 | collectionsList.addAll(collectionsData.list); 47 | maxtime = collectionsData.info.maxtime; 48 | } 49 | 50 | Size physicalSize = ui.window.physicalSize / ui.window.devicePixelRatio; 51 | var isLongImage = false; 52 | for (var news in collectionsData.list) { 53 | if (double.parse(news.height) > physicalSize.height && 54 | news.is_gif == 0.toString()) { 55 | var img = await handleImage(news.cdn_img); 56 | var clipperImage = ImageClipper(img); 57 | isLongImage = true; 58 | clippers.add(clipperImage); 59 | // collectionsList.add(isLongImage); 60 | } else { 61 | isLongImage = false; 62 | clippers.add(null); 63 | } 64 | } 65 | 66 | // debugPrint('_collectionsData: ${collectionsList.length}'); 67 | 68 | debugPrint( 69 | 'CollectionData: ${collectionsData.list[0].text} type: $type length: ${collectionsList.length} XXX: $maxtime'); 70 | 71 | return collectionsData; 72 | } 73 | 74 | Future handleImage(pic) async { 75 | ImageStream imageStream = NetworkImage(pic).resolve(ImageConfiguration()); 76 | Completer completer = Completer(); 77 | 78 | void imageListener(ImageInfo info, bool synchronousCall) { 79 | ui.Image image = info.image; 80 | // print('info.image ---- ${info.image}'); 81 | completer.complete(image); 82 | imageStream.removeListener(ImageStreamListener(imageListener)); 83 | } 84 | 85 | imageStream.addListener(ImageStreamListener(imageListener)); 86 | return completer.future; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /lib/mobx/collections/index.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'index.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$CollectionsMobx on _CollectionsMobx, Store { 12 | final _$collectionsDataAtom = Atom(name: '_CollectionsMobx.collectionsData'); 13 | 14 | @override 15 | CollectionsModel get collectionsData { 16 | _$collectionsDataAtom.context.enforceReadPolicy(_$collectionsDataAtom); 17 | _$collectionsDataAtom.reportObserved(); 18 | return super.collectionsData; 19 | } 20 | 21 | @override 22 | set collectionsData(CollectionsModel value) { 23 | _$collectionsDataAtom.context.conditionallyRunInAction(() { 24 | super.collectionsData = value; 25 | _$collectionsDataAtom.reportChanged(); 26 | }, _$collectionsDataAtom, name: '${_$collectionsDataAtom.name}_set'); 27 | } 28 | 29 | final _$collectionsListAtom = Atom(name: '_CollectionsMobx.collectionsList'); 30 | 31 | @override 32 | List get collectionsList { 33 | _$collectionsListAtom.context.enforceReadPolicy(_$collectionsListAtom); 34 | _$collectionsListAtom.reportObserved(); 35 | return super.collectionsList; 36 | } 37 | 38 | @override 39 | set collectionsList(List value) { 40 | _$collectionsListAtom.context.conditionallyRunInAction(() { 41 | super.collectionsList = value; 42 | _$collectionsListAtom.reportChanged(); 43 | }, _$collectionsListAtom, name: '${_$collectionsListAtom.name}_set'); 44 | } 45 | 46 | final _$clippersAtom = Atom(name: '_CollectionsMobx.clippers'); 47 | 48 | @override 49 | List get clippers { 50 | _$clippersAtom.context.enforceReadPolicy(_$clippersAtom); 51 | _$clippersAtom.reportObserved(); 52 | return super.clippers; 53 | } 54 | 55 | @override 56 | set clippers(List value) { 57 | _$clippersAtom.context.conditionallyRunInAction(() { 58 | super.clippers = value; 59 | _$clippersAtom.reportChanged(); 60 | }, _$clippersAtom, name: '${_$clippersAtom.name}_set'); 61 | } 62 | 63 | final _$maxtimeAtom = Atom(name: '_CollectionsMobx.maxtime'); 64 | 65 | @override 66 | String get maxtime { 67 | _$maxtimeAtom.context.enforceReadPolicy(_$maxtimeAtom); 68 | _$maxtimeAtom.reportObserved(); 69 | return super.maxtime; 70 | } 71 | 72 | @override 73 | set maxtime(String value) { 74 | _$maxtimeAtom.context.conditionallyRunInAction(() { 75 | super.maxtime = value; 76 | _$maxtimeAtom.reportChanged(); 77 | }, _$maxtimeAtom, name: '${_$maxtimeAtom.name}_set'); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /lib/mobx/index.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/27. 3 | /// 4 | /// flutter packages pub run json_model 5 | /// flutter packages pub run build_runner build 6 | 7 | export 'package:flutter_shitu/mobx/collections/index.dart'; 8 | -------------------------------------------------------------------------------- /lib/models/collections/collections.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | import "collectionsInfo.dart"; 3 | import "collectionsList.dart"; 4 | part 'collections.g.dart'; 5 | 6 | @JsonSerializable() 7 | class CollectionsModel { 8 | CollectionsModel(); 9 | 10 | CollectionsInfo info; 11 | List list; 12 | 13 | factory CollectionsModel.fromJson(Map json) => 14 | _$CollectionsModelFromJson(json); 15 | Map toJson() => _$CollectionsModelToJson(this); 16 | } 17 | -------------------------------------------------------------------------------- /lib/models/collections/collections.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'collections.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | Collections _$CollectionsFromJson(Map json) { 10 | return Collections() 11 | ..info = json['info'] == null 12 | ? null 13 | : CollectionsInfo.fromJson(json['info'] as Map) 14 | ..list = (json['list'] as List) 15 | ?.map((e) => e == null 16 | ? null 17 | : CollectionsList.fromJson(e as Map)) 18 | ?.toList(); 19 | } 20 | 21 | Map _$CollectionsToJson(Collections instance) => 22 | {'info': instance.info, 'list': instance.list}; 23 | -------------------------------------------------------------------------------- /lib/models/collections/collectionsInfo.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'collectionsInfo.g.dart'; 4 | 5 | @JsonSerializable() 6 | class CollectionsInfo { 7 | CollectionsInfo(); 8 | 9 | String vendor; 10 | num count; 11 | num page; 12 | String maxid; 13 | String maxtime; 14 | 15 | factory CollectionsInfo.fromJson(Map json) => _$CollectionsInfoFromJson(json); 16 | Map toJson() => _$CollectionsInfoToJson(this); 17 | } 18 | -------------------------------------------------------------------------------- /lib/models/collections/collectionsInfo.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'collectionsInfo.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | CollectionsInfo _$CollectionsInfoFromJson(Map json) { 10 | return CollectionsInfo() 11 | ..vendor = json['vendor'] as String 12 | ..count = json['count'] as num 13 | ..page = json['page'] as num 14 | ..maxid = json['maxid'] as String 15 | ..maxtime = json['maxtime'] as String; 16 | } 17 | 18 | Map _$CollectionsInfoToJson(CollectionsInfo instance) => 19 | { 20 | 'vendor': instance.vendor, 21 | 'count': instance.count, 22 | 'page': instance.page, 23 | 'maxid': instance.maxid, 24 | 'maxtime': instance.maxtime 25 | }; 26 | -------------------------------------------------------------------------------- /lib/models/collections/collectionsList.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | 3 | part 'collectionsList.g.dart'; 4 | 5 | @JsonSerializable() 6 | class CollectionsList { 7 | CollectionsList(); 8 | 9 | String id; 10 | String type; 11 | String text; 12 | String user_id; 13 | String name; 14 | String screen_name; 15 | String profile_image; 16 | String created_at; 17 | String create_time; 18 | String passtime; 19 | String love; 20 | String hate; 21 | String comment; 22 | String repost; 23 | String bookmark; 24 | String bimageuri; 25 | String voiceuri; 26 | String voicetime; 27 | String voicelength; 28 | String status; 29 | String theme_id; 30 | String theme_name; 31 | String theme_type; 32 | String videouri; 33 | String videotime; 34 | String original_pid; 35 | num cache_version; 36 | String cai; 37 | List top_cmt; 38 | String weixin_url; 39 | List themes; 40 | String image0; 41 | String image2; 42 | String image1; 43 | String cdn_img; 44 | String is_gif; 45 | String width; 46 | String height; 47 | String tag; 48 | num t; 49 | String ding; 50 | String favourite; 51 | bool isLongImage; 52 | 53 | factory CollectionsList.fromJson(Map json) => _$CollectionsListFromJson(json); 54 | Map toJson() => _$CollectionsListToJson(this); 55 | } 56 | -------------------------------------------------------------------------------- /lib/models/collections/collectionsList.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'collectionsList.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | CollectionsList _$CollectionsListFromJson(Map json) { 10 | return CollectionsList() 11 | ..id = json['id'] as String 12 | ..type = json['type'] as String 13 | ..text = json['text'] as String 14 | ..user_id = json['user_id'] as String 15 | ..name = json['name'] as String 16 | ..screen_name = json['screen_name'] as String 17 | ..profile_image = json['profile_image'] as String 18 | ..created_at = json['created_at'] as String 19 | ..create_time = json['create_time'] as String 20 | ..passtime = json['passtime'] as String 21 | ..love = json['love'] as String 22 | ..hate = json['hate'] as String 23 | ..comment = json['comment'] as String 24 | ..repost = json['repost'] as String 25 | ..bookmark = json['bookmark'] as String 26 | ..bimageuri = json['bimageuri'] as String 27 | ..voiceuri = json['voiceuri'] as String 28 | ..voicetime = json['voicetime'] as String 29 | ..voicelength = json['voicelength'] as String 30 | ..status = json['status'] as String 31 | ..theme_id = json['theme_id'] as String 32 | ..theme_name = json['theme_name'] as String 33 | ..theme_type = json['theme_type'] as String 34 | ..videouri = json['videouri'] as String 35 | ..videotime = json['videotime'] as String 36 | ..original_pid = json['original_pid'] as String 37 | ..cache_version = json['cache_version'] as num 38 | ..cai = json['cai'] as String 39 | ..top_cmt = json['top_cmt'] as List 40 | ..weixin_url = json['weixin_url'] as String 41 | ..themes = json['themes'] as List 42 | ..image0 = json['image0'] as String 43 | ..image2 = json['image2'] as String 44 | ..image1 = json['image1'] as String 45 | ..cdn_img = json['cdn_img'] as String 46 | ..is_gif = json['is_gif'] as String 47 | ..width = json['width'] as String 48 | ..height = json['height'] as String 49 | ..tag = json['tag'] as String 50 | ..t = json['t'] as num 51 | ..ding = json['ding'] as String 52 | ..favourite = json['favourite'] as String 53 | ..isLongImage = json['isLongImage'] as bool; 54 | } 55 | 56 | Map _$CollectionsListToJson(CollectionsList instance) => 57 | { 58 | 'id': instance.id, 59 | 'type': instance.type, 60 | 'text': instance.text, 61 | 'user_id': instance.user_id, 62 | 'name': instance.name, 63 | 'screen_name': instance.screen_name, 64 | 'profile_image': instance.profile_image, 65 | 'created_at': instance.created_at, 66 | 'create_time': instance.create_time, 67 | 'passtime': instance.passtime, 68 | 'love': instance.love, 69 | 'hate': instance.hate, 70 | 'comment': instance.comment, 71 | 'repost': instance.repost, 72 | 'bookmark': instance.bookmark, 73 | 'bimageuri': instance.bimageuri, 74 | 'voiceuri': instance.voiceuri, 75 | 'voicetime': instance.voicetime, 76 | 'voicelength': instance.voicelength, 77 | 'status': instance.status, 78 | 'theme_id': instance.theme_id, 79 | 'theme_name': instance.theme_name, 80 | 'theme_type': instance.theme_type, 81 | 'videouri': instance.videouri, 82 | 'videotime': instance.videotime, 83 | 'original_pid': instance.original_pid, 84 | 'cache_version': instance.cache_version, 85 | 'cai': instance.cai, 86 | 'top_cmt': instance.top_cmt, 87 | 'weixin_url': instance.weixin_url, 88 | 'themes': instance.themes, 89 | 'image0': instance.image0, 90 | 'image2': instance.image2, 91 | 'image1': instance.image1, 92 | 'cdn_img': instance.cdn_img, 93 | 'is_gif': instance.is_gif, 94 | 'width': instance.width, 95 | 'height': instance.height, 96 | 'tag': instance.tag, 97 | 't': instance.t, 98 | 'ding': instance.ding, 99 | 'favourite': instance.favourite, 100 | 'isLongImage': instance.isLongImage 101 | }; 102 | -------------------------------------------------------------------------------- /lib/models/index.dart: -------------------------------------------------------------------------------- 1 | export 'collections/collections.dart' ; 2 | export 'collections/collectionsInfo.dart' ; 3 | export 'collections/collectionsList.dart' ; 4 | -------------------------------------------------------------------------------- /lib/pages/collections/collections_list.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/28. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter/cupertino.dart'; 7 | import 'package:flutter_mobx/flutter_mobx.dart'; 8 | 9 | import 'package:flutter_shitu/mobx/index.dart'; 10 | import 'package:flutter_shitu/models/index.dart'; 11 | import 'package:flutter_shitu/pages/collections/index.dart'; 12 | import 'package:flutter_shitu/pages/collections/widgets/index.dart'; 13 | import 'package:flutter_shitu/utils/hex_color.dart'; 14 | import 'package:pull_to_refresh/pull_to_refresh.dart'; 15 | import 'package:flutter_shitu/pages/collections/widgets/image_item_dialog.dart'; 16 | import 'package:flutter_shitu/widgets/custom_dialog/custom_dialog.dart'; 17 | 18 | class CollectionsList extends StatefulWidget { 19 | final num type; 20 | CollectionsList({Key key, this.type}) : super(key: key); 21 | 22 | @override 23 | _CollectionsListState createState() => _CollectionsListState(); 24 | } 25 | 26 | class _CollectionsListState extends State { 27 | CollectionsMobx collectionsMobx; 28 | RefreshController _refreshController = 29 | RefreshController(initialRefresh: false); 30 | var _future; 31 | @override 32 | void initState() { 33 | super.initState(); 34 | collectionsMobx = CollectionsMobx(); 35 | _future = collectionsMobx.loadCollectionsData(widget.type, null); 36 | 37 | print(widget.type); 38 | } 39 | 40 | _onRefresh() async { 41 | // await newsMobx.loadNewsData(); 42 | await collectionsMobx.loadCollectionsData(widget.type, null); 43 | 44 | // if failed,use refreshFailed() 45 | _refreshController.refreshCompleted(); 46 | } 47 | 48 | void _onLoading() async { 49 | // monitor network fetch 50 | // await Future.delayed(Duration(milliseconds: 1000)); 51 | // if failed,use loadFailed(),if no data return,use LoadNodata() 52 | // _newsList.add((_newsList.length + 1) ====.toString()); 53 | // if (mounted) setState(() {}); 54 | // _refreshController.loadComplete(); 55 | String maxtime = collectionsMobx.maxtime; 56 | debugPrint('-------- $maxtime'); 57 | await collectionsMobx.loadCollectionsData(widget.type, maxtime); 58 | _refreshController.loadComplete(); 59 | } 60 | 61 | // 弹出对话框 62 | Future showItemDialog(collection) async { 63 | final size = MediaQuery.of(context).size; 64 | final width = size.width; 65 | final height = size.height; 66 | await showCustomDialog( 67 | context: context, 68 | builder: (BuildContext context) { 69 | var child = ImageItemDialog( 70 | item: collection, onTap: () => Navigator.of(context).pop()); 71 | 72 | // return Dialog(child: child); 73 | return UnconstrainedBox( 74 | constrainedAxis: Axis.vertical, 75 | child: ConstrainedBox( 76 | constraints: BoxConstraints(maxWidth: width, minHeight: height), 77 | child: Material( 78 | child: child, 79 | type: MaterialType.card, 80 | ), 81 | ), 82 | ); 83 | }, 84 | ); 85 | } 86 | 87 | @override 88 | Widget build(BuildContext context) { 89 | return FutureBuilder( 90 | builder: _buildFuture, 91 | future: _future, 92 | ); 93 | } 94 | 95 | ///snapshot就是_calculation在时间轴上执行过程的状态快照 96 | Widget _buildFuture(BuildContext context, AsyncSnapshot snapshot) => 97 | Observer(builder: (_) { 98 | // print('-----$context ++++++ $snapshot'); 99 | 100 | switch (snapshot.connectionState) { 101 | case ConnectionState.none: 102 | print('还没有开始网络请求'); 103 | return Text('还没有开始网络请求'); 104 | case ConnectionState.active: 105 | print('active'); 106 | return Text('ConnectionState.active'); 107 | case ConnectionState.waiting: 108 | print('waiting'); 109 | return Center( 110 | child: CircularProgressIndicator(), 111 | ); 112 | case ConnectionState.done: 113 | print('done'); 114 | if (snapshot.hasError) return Text('Error: ${snapshot.error}'); 115 | 116 | List _collectionsList = collectionsMobx.collectionsList; 117 | List clipperImages = collectionsMobx.clippers; 118 | String maxtime = collectionsMobx.maxtime; 119 | 120 | debugPrint( 121 | '_collectionsList---- ${_collectionsList.length} maxtime: $maxtime'); 122 | 123 | return SmartRefresher( 124 | enablePullDown: true, 125 | enablePullUp: true, 126 | header: ClassicHeader(), 127 | footer: CustomFooter( 128 | builder: (BuildContext context, LoadStatus mode) { 129 | Widget body; 130 | if (mode == LoadStatus.idle) { 131 | body = Text("pull up load"); 132 | } else if (mode == LoadStatus.loading) { 133 | body = CupertinoActivityIndicator(); 134 | } else if (mode == LoadStatus.failed) { 135 | body = Text("Load Failed!Click retry!"); 136 | } else if (mode == LoadStatus.canLoading) { 137 | body = Text("release to load more"); 138 | } else { 139 | body = Text("No more Data"); 140 | } 141 | return Container( 142 | height: 55.0, 143 | child: Center(child: body), 144 | ); 145 | }, 146 | ), 147 | controller: _refreshController, 148 | onRefresh: _onRefresh, 149 | onLoading: _onLoading, 150 | child: ListView.separated( 151 | separatorBuilder: (BuildContext context, int index) { 152 | return Divider( 153 | thickness: 10, 154 | ); 155 | }, 156 | // padding: EdgeInsets.only(top) 157 | itemBuilder: (context, index) { 158 | final collection = _collectionsList[index]; 159 | return NewsItem( 160 | item: collection, 161 | clipperImage: clipperImages[index], 162 | itemTap: () { 163 | print('ItemTap'); 164 | print('collection.profile' + collection.profile_image); 165 | this.showItemDialog(collection); 166 | }, 167 | ); 168 | }, 169 | 170 | itemCount: _collectionsList.length, 171 | ), 172 | ); 173 | default: 174 | return null; 175 | } 176 | }); 177 | } 178 | -------------------------------------------------------------------------------- /lib/pages/collections/index.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/gestures.dart'; 2 | import 'package:flutter_shitu/widgets/overlayer/overlayer_container.dart'; 3 | 4 | /// 5 | /// Create by Rabbit on 2019/09/29. 6 | /// 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_shitu/pages/collections/collections_list.dart'; 10 | 11 | import 'package:flutter_shitu/routers/router_empty.dart'; 12 | import 'package:flutter_shitu/widgets/keep_alive/index.dart'; 13 | // import 'package:flutter_shitu/models/news/new_json.dart'; 14 | // import 'package:flutter_shitu/models/index.dart';import 'dart:core'; 15 | 16 | class TopTabBar { 17 | const TopTabBar({this.title, this.icon, this.type}); 18 | final String title; 19 | final IconData icon; 20 | final num type; 21 | } 22 | 23 | enum DropdownPosition { 24 | BELOW, 25 | RIGHT, 26 | } 27 | 28 | const List _topTabBar = const [ 29 | const TopTabBar(title: '全部', icon: Icons.directions_car, type: 1), 30 | const TopTabBar(title: '视频', icon: Icons.directions_bike, type: 41), 31 | const TopTabBar(title: '图片', icon: Icons.directions_boat, type: 10), 32 | const TopTabBar(title: '笑话', icon: Icons.directions_boat, type: 29), 33 | ]; 34 | 35 | class Collections extends StatefulWidget { 36 | final DropdownPosition position; 37 | 38 | Collections({ 39 | Key key, 40 | this.position = DropdownPosition.RIGHT, 41 | }) : super(key: key); 42 | 43 | _CollectionsState createState() => _CollectionsState(); 44 | } 45 | 46 | class _CollectionsState extends State { 47 | String title = '百思不得姐'; 48 | bool _isShow = false; 49 | 50 | @override 51 | void initState() { 52 | super.initState(); 53 | } 54 | 55 | @override 56 | Widget build(BuildContext context) { 57 | return MaterialApp( 58 | home: DefaultTabController( 59 | length: _topTabBar.length, 60 | child: Scaffold( 61 | backgroundColor: Colors.white, 62 | appBar: AppBar( 63 | title: Text(title), 64 | bottom: TabBar( 65 | isScrollable: false, 66 | // indicatorColor: Colors.red, 67 | indicatorSize: TabBarIndicatorSize.label, 68 | // indicatorPadding: EdgeInsets.only(left: 40), 69 | labelStyle: TextStyle(fontSize: 18), 70 | tabs: _topTabBar.map( 71 | (TopTabBar tabBar) { 72 | return Tab( 73 | text: tabBar.title, 74 | // icon: Icon(tabBar.icon), 75 | ); 76 | }, 77 | ).toList(), 78 | ), 79 | ), 80 | body: Stack( 81 | children: [ 82 | TabBarView( 83 | children: _topTabBar.map( 84 | (TopTabBar tabbar) { 85 | return KeepAliveWidget(CollectionsList( 86 | type: tabbar.type, 87 | )); 88 | }, 89 | ).toList(), 90 | ), 91 | ], 92 | ), 93 | floatingActionButton: FloatingActionButton( 94 | child: Text('更新'), 95 | onPressed: () async { 96 | // await showDeleteConfirmDialog1('111'); 97 | // this.setState(() { 98 | // title = title + '1'; 99 | // }); 100 | // setState(() { 101 | // _isShow = !_isShow; 102 | // }); 103 | }, 104 | ), 105 | ), 106 | ), 107 | ); 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/image_item_dialog.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/12/10. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_shitu/models/index.dart'; 7 | 8 | class ImageItemDialog extends StatelessWidget { 9 | const ImageItemDialog({Key key, this.item, this.onTap}) : super(key: key); 10 | final CollectionsList item; 11 | final onTap; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return GestureDetector( 16 | child: Scrollbar( 17 | child: SingleChildScrollView( 18 | child: Image.network( 19 | item.cdn_img, 20 | fit: BoxFit.fitWidth, 21 | ), 22 | ), 23 | ), 24 | onTap: onTap, 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/index.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | /// 4 | /// Create by Rabbit on 2019/10/17. 5 | /// 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'package:flutter_shitu/models/index.dart'; 9 | import 'package:flutter_shitu/pages/collections/widgets/items/index.dart'; 10 | import 'package:flutter_shitu/pages/collections/widgets/user_info.dart'; 11 | 12 | class NewsItem extends StatelessWidget { 13 | const NewsItem({Key key, this.item, this.clipperImage, this.itemTap}) 14 | : super(key: key); 15 | 16 | final CollectionsList item; 17 | final clipperImage; 18 | final itemTap; 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Container( 23 | color: Colors.white, 24 | padding: EdgeInsets.only(bottom: 10), 25 | child: Column( 26 | children: [ 27 | UserInfo( 28 | profileImage: item.profile_image, 29 | name: item.name, 30 | userInfoTap: () { 31 | print('UserInfoTap --- '); 32 | }), 33 | ContentItem(item: item, clipperImage: clipperImage, itemTap: itemTap), 34 | ], 35 | ), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/item_overlayer.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/12/09. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/items/image_item.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui' as prefix0; 2 | 3 | /// 4 | /// Create by Rabbit on 2019/10/20. 5 | /// 6 | 7 | import 'package:flutter/material.dart'; 8 | import 'dart:ui'; 9 | 10 | class ImageItem extends StatelessWidget { 11 | const ImageItem( 12 | {Key key, 13 | this.image, 14 | this.imageHeight, 15 | this.imageWidth, 16 | this.clipperImage}) 17 | : super(key: key); 18 | final String image; 19 | final double imageHeight; 20 | final double imageWidth; 21 | final clipperImage; 22 | 23 | @override 24 | Widget build(BuildContext context) { 25 | // print('clipperImage ----- $clipperImage ----- $image'); 26 | final size = MediaQuery.of(context).size; 27 | Size physicalSize = window.physicalSize / window.devicePixelRatio; 28 | 29 | // print('-------- ${imageWidth / physicalSize.width}'); 30 | 31 | if (clipperImage != null) { 32 | return Container( 33 | alignment: Alignment.topLeft, 34 | child: Stack( 35 | overflow: Overflow.visible, 36 | children: [ 37 | CustomPaint( 38 | painter: clipperImage, 39 | size: Size(physicalSize.width * 0.6, physicalSize.height * 0.6), 40 | ), 41 | Positioned( 42 | bottom: 0.0, 43 | right: 0, 44 | child: Container( 45 | padding: EdgeInsets.fromLTRB(5, 1, 5, 1), 46 | child: Text( 47 | '长图', 48 | style: TextStyle(color: Colors.white, fontSize: 14), 49 | ), 50 | decoration: BoxDecoration( 51 | color: Color.fromRGBO(0, 0, 0, 0.5), 52 | borderRadius: BorderRadius.only( 53 | topLeft: Radius.circular(5.0), 54 | ), 55 | ), 56 | ), 57 | ), 58 | ], 59 | ), 60 | ); 61 | } 62 | if (image != null) { 63 | return Container( 64 | alignment: Alignment.topLeft, 65 | child: Image.network( 66 | image, 67 | // height: 1000, 68 | // width: size.width * 0.88, 69 | fit: BoxFit.fill, 70 | ), 71 | ); 72 | } 73 | return Container(); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/items/index.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/20. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_shitu/models/index.dart'; 7 | import 'package:flutter_shitu/pages/collections/widgets/items/image_item.dart'; 8 | import 'package:flutter_shitu/pages/collections/widgets/items/text_item.dart'; 9 | 10 | class ContentItem extends StatelessWidget { 11 | const ContentItem({Key key, this.item, this.clipperImage, this.itemTap}) 12 | : super(key: key); 13 | 14 | final CollectionsList item; 15 | final clipperImage; 16 | final itemTap; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Container( 21 | alignment: Alignment.topLeft, 22 | padding: EdgeInsets.fromLTRB(15, 0, 15, 0), 23 | child: InkWell( 24 | child: Column( 25 | mainAxisAlignment: MainAxisAlignment.start, 26 | crossAxisAlignment: CrossAxisAlignment.start, 27 | children: [ 28 | TextItem(text: item.text), 29 | ImageItem( 30 | image: item.cdn_img, 31 | imageHeight: double.parse(item.height), 32 | imageWidth: double.parse(item.width), 33 | clipperImage: clipperImage, 34 | ), 35 | ], 36 | ), 37 | onTap: () { 38 | itemTap(); 39 | }, 40 | ), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/items/text_item.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/20. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | 7 | class TextItem extends StatelessWidget { 8 | const TextItem({Key key, this.text}) : super(key: key); 9 | 10 | final String text; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Container( 15 | child: Text( 16 | text, 17 | style: TextStyle(fontSize: 16), 18 | ), 19 | padding: EdgeInsets.fromLTRB(0, 10, 0, 10), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/pages/collections/widgets/user_info.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/17. 3 | /// 4 | import 'package:flutter/material.dart'; 5 | 6 | class UserInfo extends StatelessWidget { 7 | const UserInfo({ 8 | Key key, 9 | this.profileImage, 10 | this.name, 11 | this.userInfoTap, 12 | }) : super(key: key); 13 | 14 | final String profileImage; 15 | final String name; 16 | final GestureTapCallback userInfoTap; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return GestureDetector( 21 | onTap: () { 22 | userInfoTap(); 23 | }, 24 | child: ListTile( 25 | leading: CircleAvatar( 26 | backgroundImage: NetworkImage(profileImage), 27 | ), 28 | title: Text(name), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/pages/launch/launch.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_shitu/config/application.dart'; 3 | import 'package:flutter_shitu/routers/router.dart'; 4 | 5 | class Launch extends StatefulWidget { 6 | Launch({Key key}) : super(key: key); 7 | 8 | _LaunchState createState() => _LaunchState(); 9 | } 10 | 11 | class _LaunchState extends State { 12 | @override 13 | void initState() { 14 | super.initState(); 15 | print('initState --------- Launch'); 16 | } 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | final size = MediaQuery.of(context).size; 21 | return Container( 22 | child: Stack( 23 | children: [ 24 | Container( 25 | height: size.height, 26 | child: Image.asset( 27 | 'assets/splash.jpg', 28 | fit: BoxFit.cover, 29 | ), 30 | ), 31 | SafeArea( 32 | child: Container( 33 | // padding: EdgeInsets.only(bottom: 150), 34 | child: Image.network( 35 | 'https://ws1.sinaimg.cn/large/0065oQSqly1g0ajj4h6ndj30sg11xdmj.jpg', 36 | // fit: BoxFit. 37 | fit: BoxFit.cover, 38 | ), 39 | height: size.height * 0.7, 40 | width: size.width, 41 | ), 42 | ), 43 | Container( 44 | padding: EdgeInsets.fromLTRB(size.width - 100, 80, 0, 0), 45 | // color: Colors.grey, 46 | child: FlatButton( 47 | color: Colors.blueAccent, 48 | padding: EdgeInsets.fromLTRB(0, 0, 0, 0), 49 | child: Text( 50 | '点我跳转', 51 | style: TextStyle(color: Colors.white), 52 | ), 53 | onPressed: () { 54 | Application.router.navigateTo(context, Routes.root); 55 | }, 56 | ), 57 | ), 58 | ], 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/pages/mine/mine.dart: -------------------------------------------------------------------------------- 1 | /** 2 | * @flow 3 | * Created by Rabbit on 2019/09/27. 4 | */ 5 | 6 | import 'package:flutter/material.dart'; 7 | 8 | import 'package:flutter_mobx/flutter_mobx.dart'; 9 | import 'package:provider/provider.dart'; 10 | 11 | import 'package:flutter_shitu/stores/shitu/index.dart'; 12 | 13 | class Mine extends StatefulWidget { 14 | Mine({Key key}) : super(key: key); 15 | 16 | @override 17 | _MineState createState() => _MineState(); 18 | } 19 | 20 | class _MineState extends State { 21 | @override 22 | Widget build(BuildContext context) { 23 | final store = Provider.of(context); 24 | 25 | print('build --------- Mine'); 26 | 27 | return MaterialApp( 28 | home: Scaffold( 29 | appBar: AppBar(title: Text('我的')), 30 | body: Container( 31 | alignment: Alignment.center, 32 | child: Column( 33 | mainAxisAlignment: MainAxisAlignment.center, 34 | children: [ 35 | RaisedButton( 36 | child: Text('点击更改'), 37 | onPressed: () { 38 | store.setImageUrl( 39 | 'https://ws1.sinaimg.cn/large/0065oQSqly1g0ajj4h6ndj30sg11xdmj.jpg'); 40 | }, 41 | ) 42 | ], 43 | ), 44 | )), 45 | ); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /lib/pages/shitu/shitu.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | import 'dart:math'; 3 | 4 | import 'package:flutter/widgets.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:flutter_mobx/flutter_mobx.dart'; 7 | import 'package:provider/provider.dart'; 8 | import 'package:simple_animations/simple_animations.dart'; 9 | 10 | import 'package:flutter_shitu/stores/shitu/index.dart'; 11 | 12 | class ShiTu extends StatefulWidget { 13 | ShiTu({Key key}) : super(key: key); 14 | @override 15 | _ShiTuState createState() => _ShiTuState(); 16 | } 17 | 18 | class _ShiTuState extends State { 19 | @override 20 | void initState() { 21 | super.initState(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | print('build --------- ShiTu'); 27 | 28 | ShiTuStore store = Provider.of(context); 29 | 30 | // print('shitu_store ---- $store ++++++ ${store.imageUrl}'); 31 | 32 | final size = MediaQuery.of(context).size; 33 | final width = size.width; 34 | final height = size.height; 35 | final tween = MultiTrackTween([ 36 | Track("size").add(Duration(seconds: 4), Tween(begin: 0.0, end: 150.0)), 37 | Track("color") 38 | .add(Duration(seconds: 2), 39 | ColorTween(begin: Colors.red, end: Colors.blue), 40 | curve: Curves.easeIn) 41 | .add(Duration(seconds: 2), 42 | ColorTween(begin: Colors.blue, end: Colors.green), 43 | curve: Curves.easeOut), 44 | Track("rotation").add(Duration(seconds: 1), ConstantTween(0.0)).add( 45 | Duration(seconds: 3), Tween(begin: 0.0, end: pi / 2), 46 | curve: Curves.easeOutSine), 47 | Track('padding').add( 48 | Duration(milliseconds: 500), 49 | Tween( 50 | begin: EdgeInsets.only(left: 0), 51 | end: EdgeInsets.only(left: width / 2 - 50)), 52 | curve: Curves.fastOutSlowIn), 53 | ]); 54 | 55 | return Observer( 56 | builder: (_) => MaterialApp( 57 | home: Scaffold( 58 | appBar: AppBar( 59 | title: Text('识兔'), 60 | ), 61 | body: Stack( 62 | alignment: Alignment.centerLeft, 63 | children: [ 64 | Image.network( 65 | store.imageUrl, 66 | fit: BoxFit.fitHeight, 67 | // alignment: Alignment.topCenter, 68 | height: height, 69 | // width: width, 70 | ), 71 | BackdropFilter( 72 | filter: ImageFilter.blur( 73 | sigmaX: 5, 74 | sigmaY: 5, 75 | ), 76 | child: Container( 77 | color: Colors.white.withOpacity(0.1), 78 | ), 79 | ), 80 | ControlledAnimation( 81 | playback: Playback.PLAY_FORWARD, 82 | duration: tween.duration, 83 | // duration: Duration(milliseconds: 500), 84 | tween: tween, 85 | curve: Curves.bounceOut, 86 | 87 | builder: (context, animation) { 88 | return Container( 89 | margin: animation['padding'], 90 | width: 100, 91 | height: 44, 92 | // color: animation["color"], 93 | child: RaisedButton( 94 | child: Text( 95 | '点我搜索', 96 | style: TextStyle(color: Colors.white), 97 | ), 98 | onPressed: () async { 99 | // await showDeleteConfirmDialog1('222222'); 100 | }, 101 | color: Colors.lightBlue, 102 | shape: StadiumBorder(), 103 | ), 104 | decoration: BoxDecoration( 105 | color: Colors.lightBlue, 106 | borderRadius: BorderRadius.all( 107 | Radius.circular(30.0), 108 | ), 109 | ), 110 | ); 111 | }, 112 | ), 113 | ], 114 | ), 115 | ), 116 | ), 117 | ); 118 | } 119 | 120 | // 弹出对话框 121 | Future showDeleteConfirmDialog1(text) { 122 | return showDialog( 123 | context: context, 124 | builder: (context) { 125 | return AlertDialog( 126 | title: Text('$text'), 127 | content: Text("您确定要删除当前文件吗?"), 128 | actions: [ 129 | FlatButton( 130 | child: Text("取消"), 131 | onPressed: () => Navigator.of(context).pop(), // 关闭对话框 132 | ), 133 | FlatButton( 134 | child: Text("删除"), 135 | onPressed: () { 136 | //关闭对话框并返回true 137 | Navigator.of(context).pop(true); 138 | }, 139 | ), 140 | ], 141 | ); 142 | }, 143 | ); 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /lib/routers/router.dart: -------------------------------------------------------------------------------- 1 | import 'package:fluro/fluro.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'router_tab.dart'; 5 | 6 | import 'package:flutter_shitu/routers/router_handler.dart'; 7 | 8 | class Routes { 9 | // static String root = "/"; 10 | 11 | static String root = '/'; 12 | 13 | static void configureRoutes(Router router) { 14 | router.notFoundHandler = new Handler( 15 | handlerFunc: (BuildContext context, Map> params) { 16 | print("没有找到当前路由 !!!"); 17 | return; 18 | }); 19 | // router.define(root, handler: shituHandler); 20 | router.define(root, handler: tabHandler); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/routers/router_empty.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Empty extends StatelessWidget { 4 | const Empty({Key key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | print('build --------- Empty'); 9 | return Container( 10 | child: Center( 11 | child: Text('111'), 12 | ), 13 | ); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /lib/routers/router_handler.dart: -------------------------------------------------------------------------------- 1 | import 'package:fluro/fluro.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | import 'package:flutter_shitu/pages/mine/mine.dart'; 4 | import 'package:flutter_shitu/pages/shitu/shitu.dart'; 5 | import 'package:flutter_shitu/pages/launch/launch.dart'; 6 | import 'package:flutter_shitu/routers/router_tab.dart'; 7 | 8 | var tabHandler = new Handler( 9 | handlerFunc: (BuildContext context, Map> params) { 10 | return new AppTab(); 11 | }, 12 | ); 13 | 14 | var launchHandler = new Handler( 15 | handlerFunc: (BuildContext context, Map> params) { 16 | return new Launch(); 17 | }, 18 | ); 19 | 20 | var shituHandler = new Handler( 21 | handlerFunc: (BuildContext context, Map> params) { 22 | return new ShiTu(); 23 | }, 24 | ); 25 | 26 | var mainHandler = new Handler( 27 | handlerFunc: (BuildContext context, Map> params) { 28 | return new Mine(); 29 | }, 30 | ); 31 | -------------------------------------------------------------------------------- /lib/routers/router_tab.dart: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Rabbit on 2019/09/27. 3 | */ 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_shitu/pages/mine/mine.dart'; 6 | import 'package:flutter_shitu/pages/collections/index.dart'; 7 | import 'router_empty.dart'; 8 | 9 | import 'package:flutter_shitu/pages/shitu/shitu.dart'; 10 | 11 | class AppTab extends StatefulWidget { 12 | AppTab({Key key}) : super(key: key); 13 | 14 | _AppTabState createState() => _AppTabState(); 15 | } 16 | 17 | class _Item { 18 | String title; 19 | Icon icon; 20 | 21 | _Item(this.title, this.icon); 22 | } 23 | 24 | class _AppTabState extends State { 25 | List _tabPages = List(); 26 | List tabPages = []; 27 | 28 | int _currentIndex = 0; 29 | List tabData = [ 30 | {'text': '识兔', 'icon': Icon(Icons.extension)}, 31 | {'text': '关于手册', 'icon': Icon(Icons.import_contacts)}, 32 | {'text': '个人中心', 'icon': Icon(Icons.account_circle)}, 33 | //https://flutter-go.pub/api/isInfoOpen 34 | ]; 35 | 36 | final itemNames = [ 37 | _Item('首页', Icon(Icons.extension)), 38 | _Item('书影音', Icon(Icons.import_contacts)), 39 | _Item('我的', Icon(Icons.import_contacts)) 40 | ]; 41 | 42 | List _myTabs = []; 43 | List itemList; 44 | 45 | @override 46 | void initState() { 47 | super.initState(); 48 | 49 | for (int i = 0; i < tabData.length; i++) { 50 | _myTabs.add(BottomNavigationBarItem( 51 | icon: tabData[i]['icon'], 52 | title: Text( 53 | '', 54 | ), 55 | )); 56 | } 57 | // if (itemList == null) { 58 | // itemList = itemNames.map( 59 | // (item) => BottomNavigationBarItem( 60 | // icon: item.icon, 61 | // title: Text( 62 | // item.title, 63 | // style: TextStyle(fontSize: 10.0), 64 | // ), 65 | // ), 66 | // ); 67 | // } 68 | 69 | _tabPages..add(ShiTu())..add(Empty())..add(Empty()); 70 | // _tabPages.addAll([ShiTu(), Empty(), Empty()]); 71 | } 72 | 73 | //Stack(层叠布局)+Offstage组合,解决状态被重置的问题 74 | Widget _getPagesWidget(int index) { 75 | return Offstage( 76 | offstage: _currentIndex != index, 77 | child: TickerMode( 78 | enabled: _currentIndex == index, 79 | child: _tabPages[index], 80 | ), 81 | ); 82 | } 83 | 84 | @override 85 | void didUpdateWidget(AppTab oldWidget) { 86 | // TODO: implement didUpdateWidget 87 | super.didUpdateWidget(oldWidget); 88 | } 89 | 90 | @override 91 | Widget build(BuildContext context) { 92 | return new Scaffold( 93 | // appBar: renderAppBar(context, widget, _currentIndex), 94 | body: IndexedStack( 95 | index: _currentIndex, 96 | children: [ 97 | _getPagesWidget(0), 98 | _getPagesWidget(1), 99 | _getPagesWidget(2), 100 | ], 101 | ), 102 | bottomNavigationBar: BottomNavigationBar( 103 | items: _myTabs, 104 | //高亮 被点击高亮 105 | currentIndex: _currentIndex, 106 | //修改 页面 107 | onTap: _itemTapped, 108 | //shifting :按钮点击移动效果 109 | // fixed:固定 110 | // type: BottomNavigationBarType.fixed, 111 | 112 | fixedColor: Theme.of(context).primaryColor, 113 | showSelectedLabels: false, 114 | iconSize: 33, 115 | ), 116 | ); 117 | } 118 | 119 | void _itemTapped(int index) { 120 | setState(() { 121 | _currentIndex = index; 122 | }); 123 | if (index == 1 || index == 2) { 124 | var page = index == 1 ? Collections() : Mine(); 125 | 126 | // print(_tabPages.contains(Collections())); 127 | // print(_tabPages); 128 | 129 | if (_tabPages[index] is ShiTu || 130 | _tabPages[index] is Collections || 131 | _tabPages[index] is Mine) return; 132 | 133 | _tabPages 134 | ..removeAt(index) 135 | ..insert(index, page); 136 | } 137 | 138 | // debugPrint('index ------ $index ---- $_tabPages'); 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /lib/stores/index.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/25. 3 | /// 4 | /// flutter packages pub run build_runner build 5 | /// flutter packages pub run json_model 6 | 7 | // export 'shitu/shitu_store.dart'; 8 | -------------------------------------------------------------------------------- /lib/stores/shitu/index.dart: -------------------------------------------------------------------------------- 1 | import 'package:mobx/mobx.dart'; 2 | 3 | part 'index.g.dart'; 4 | 5 | class ShiTuStore = _ShiTuStore with _$ShiTuStore; 6 | 7 | abstract class _ShiTuStore with Store { 8 | @observable 9 | String imageUrl = 10 | 'http://ww1.sinaimg.cn/large/0065oQSqly1g2pquqlp0nj30n00yiq8u.jpg'; 11 | 12 | @action 13 | setImageUrl(String url) { 14 | imageUrl = url; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/stores/shitu/index.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'index.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars, avoid_as, avoid_annotating_with_dynamic 10 | 11 | mixin _$ShiTuStore on _ShiTuStore, Store { 12 | final _$imageUrlAtom = Atom(name: '_ShiTuStore.imageUrl'); 13 | 14 | @override 15 | String get imageUrl { 16 | _$imageUrlAtom.context.enforceReadPolicy(_$imageUrlAtom); 17 | _$imageUrlAtom.reportObserved(); 18 | return super.imageUrl; 19 | } 20 | 21 | @override 22 | set imageUrl(String value) { 23 | _$imageUrlAtom.context.conditionallyRunInAction(() { 24 | super.imageUrl = value; 25 | _$imageUrlAtom.reportChanged(); 26 | }, _$imageUrlAtom, name: '${_$imageUrlAtom.name}_set'); 27 | } 28 | 29 | final _$_ShiTuStoreActionController = ActionController(name: '_ShiTuStore'); 30 | 31 | @override 32 | dynamic setImageUrl(String url) { 33 | final _$actionInfo = _$_ShiTuStoreActionController.startAction(); 34 | try { 35 | return super.setImageUrl(url); 36 | } finally { 37 | _$_ShiTuStoreActionController.endAction(_$actionInfo); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/utils/hex_color.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/29. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | 7 | class HexColor extends Color { 8 | static int _getColorFromHex(String hexColor) { 9 | hexColor = hexColor.toUpperCase().replaceAll("#", ""); 10 | if (hexColor.length == 6) { 11 | hexColor = "FF" + hexColor; 12 | } else if (hexColor.length == 3) { 13 | hexColor = 'FF' + hexColor * 2; 14 | } 15 | return int.parse(hexColor, radix: 16); 16 | } 17 | 18 | HexColor(final String hexColor) : super(_getColorFromHex(hexColor)); 19 | } 20 | -------------------------------------------------------------------------------- /lib/utils/image_clipper.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:ui' as ui; 3 | 4 | /// 图片裁剪 5 | class ImageClipper extends CustomPainter { 6 | final ui.Image image; 7 | final double left; 8 | final double top; 9 | final double right; 10 | final double bottom; 11 | 12 | ImageClipper(this.image, 13 | {this.left = 0, this.top = 0, this.right = 1.0, this.bottom = 0.6}); 14 | @override 15 | void paint(Canvas canvas, Size size) { 16 | // print('physicalSize ---- ${ui.window.physicalSize}'); 17 | 18 | // print('$image ---- $left ---- $top ---- $right ---- $bottom'); 19 | // print('image ---- $image ---- ${image.width} ---- ${image.height}'); 20 | 21 | Size physicalSize = ui.window.physicalSize; 22 | 23 | // print( 24 | // 'physicalSize ---- ${physicalSize.width} ---- ${physicalSize.height}'); 25 | 26 | num image_item_width = 27 | physicalSize.height / image.height * (physicalSize.width * 0.6); 28 | 29 | num widthToHeight = image.width / physicalSize.height; 30 | 31 | // print('$size ---- ${size.width} ---- ${size.width}'); 32 | 33 | // print('image_item_width ===== $widthToHeight'); 34 | 35 | // TODO: implement paint 36 | Paint paint = Paint(); 37 | canvas.drawImageRect( 38 | image, 39 | Rect.fromLTRB(image.width * left, image.height * top, image.width * 1.0, 40 | image.width * 0.6 / 0.273), 41 | // Rect.fromLTRB(0, 0, 0, image.height *) 42 | Rect.fromLTWH(0, 0, size.width, size.height), 43 | paint); 44 | } 45 | 46 | @override 47 | bool shouldRepaint(CustomPainter oldDelegate) { 48 | // TODO: implement shouldRepaint 49 | return false; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/utils/request.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/09/29. 3 | /// 4 | import 'package:dio/dio.dart'; 5 | 6 | var baseOptions = new BaseOptions( 7 | connectTimeout: 5000, 8 | receiveTimeout: 3000, 9 | headers: {"content-type": "application/json"}); 10 | 11 | var request = Dio(); 12 | -------------------------------------------------------------------------------- /lib/widgets/custom_dialog/custom_dialog.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by 3 | /// on 2019/12/10. 4 | /// 5 | 6 | import 'package:flutter/material.dart'; 7 | 8 | Future showCustomDialog({ 9 | @required BuildContext context, 10 | bool barrierDismissible = true, 11 | WidgetBuilder builder, 12 | }) { 13 | final ThemeData theme = Theme.of(context, shadowThemeOnly: true); 14 | return showGeneralDialog( 15 | context: context, 16 | pageBuilder: (BuildContext buildContext, Animation animation, 17 | Animation secondaryAnimation) { 18 | final Widget pageChild = Builder(builder: builder); 19 | return SafeArea( 20 | child: Builder(builder: (BuildContext context) { 21 | return theme != null 22 | ? Theme(data: theme, child: pageChild) 23 | : pageChild; 24 | }), 25 | ); 26 | }, 27 | barrierDismissible: barrierDismissible, 28 | barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel, 29 | barrierColor: Colors.black87, // 自定义遮罩颜色 30 | transitionDuration: const Duration(milliseconds: 150), 31 | transitionBuilder: _buildMaterialDialogTransitions, 32 | ); 33 | } 34 | 35 | Widget _buildMaterialDialogTransitions( 36 | BuildContext context, 37 | Animation animation, 38 | Animation secondaryAnimation, 39 | Widget child) { 40 | return FadeTransition( 41 | opacity: CurvedAnimation( 42 | parent: animation, 43 | curve: Curves.easeIn, 44 | ), 45 | child: child); 46 | // // 使用缩放动画 47 | // return ScaleTransition( 48 | // scale: CurvedAnimation( 49 | // parent: animation, 50 | // curve: Curves.linear, 51 | // ), 52 | // child: child, 53 | // ); 54 | } 55 | -------------------------------------------------------------------------------- /lib/widgets/keep_alive/index.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/10/29. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | 7 | class KeepAliveWidget extends StatefulWidget { 8 | final Widget child; 9 | 10 | const KeepAliveWidget(this.child); 11 | 12 | @override 13 | State createState() => KeepAliveState(); 14 | } 15 | 16 | class KeepAliveState extends State 17 | with AutomaticKeepAliveClientMixin { 18 | @override 19 | bool get wantKeepAlive => true; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | super.build(context); 24 | return widget.child; 25 | } 26 | } 27 | 28 | Widget keepAliveWrapper(Widget child) { 29 | return KeepAliveWidget(child); 30 | } 31 | -------------------------------------------------------------------------------- /lib/widgets/overlayer/overlayer_container.dart: -------------------------------------------------------------------------------- 1 | /// 2 | /// Create by Rabbit on 2019/12/09. 3 | /// 4 | 5 | import 'package:flutter/material.dart'; 6 | 7 | class OverlayContainer extends StatefulWidget { 8 | /// The child to render inside the container. 9 | final Widget child; 10 | 11 | /// By default, the child will be rendered right below (if the parent is `Column`) 12 | /// the widget which is defined alongside the OverlayContainer. 13 | /// It would appear as though the Overlay is inside its parent 14 | /// but in reality it would be outside and above 15 | /// the original widget hierarchy. 16 | /// It's position can be altered and the overlay can 17 | /// be moved to any part of the screen by supplying a `position` 18 | /// argument. 19 | final OverlayContainerPosition position; 20 | 21 | /// Controlling whether the overlay is current showing or not. 22 | final bool show; 23 | 24 | /// Whether the overlay is wide as its enclosing parent. 25 | final bool asWideAsParent; 26 | 27 | OverlayContainer({ 28 | Key key, 29 | @required this.show, 30 | @required this.child, 31 | this.asWideAsParent = false, 32 | this.position = const OverlayContainerPosition(0.0, 0.0), 33 | }) : super(key: key); 34 | 35 | @override 36 | _OverlayContainerState createState() => _OverlayContainerState(); 37 | } 38 | 39 | class _OverlayContainerState extends State 40 | with WidgetsBindingObserver { 41 | OverlayEntry _overlayEntry; 42 | bool _opened = false; 43 | 44 | @override 45 | void initState() { 46 | super.initState(); 47 | if (widget.show) { 48 | _show(); 49 | } 50 | WidgetsBinding.instance.addObserver(this); 51 | } 52 | 53 | @override 54 | void didChangeMetrics() { 55 | // We would want to re render the overlay if any metrics 56 | // ever change. 57 | if (widget.show) { 58 | _show(); 59 | } else { 60 | _hide(); 61 | } 62 | } 63 | 64 | @override 65 | void didChangeDependencies() { 66 | super.didChangeDependencies(); 67 | // We would want to re render the overlay if any of the dependencies 68 | // ever change. 69 | if (widget.show) { 70 | _show(); 71 | } else { 72 | _hide(); 73 | } 74 | } 75 | 76 | @override 77 | void didUpdateWidget(OverlayContainer oldWidget) { 78 | super.didUpdateWidget(oldWidget); 79 | if (widget.show) { 80 | _show(); 81 | } else { 82 | _hide(); 83 | } 84 | } 85 | 86 | @override 87 | void dispose() { 88 | if (widget.show) { 89 | _hide(); 90 | } 91 | WidgetsBinding.instance.removeObserver(this); 92 | super.dispose(); 93 | } 94 | 95 | void _show() { 96 | WidgetsBinding.instance.addPostFrameCallback((_) async { 97 | await Future.delayed(Duration(milliseconds: 280)); 98 | if (_opened) { 99 | _overlayEntry.remove(); 100 | } 101 | _overlayEntry = _buildOverlayEntry(); 102 | Overlay.of(context).insert(_overlayEntry); 103 | _opened = true; 104 | }); 105 | } 106 | 107 | void _hide() { 108 | if (_opened) { 109 | WidgetsBinding.instance.addPostFrameCallback((_) { 110 | _overlayEntry.remove(); 111 | _opened = false; 112 | }); 113 | } 114 | } 115 | 116 | @override 117 | Widget build(BuildContext context) { 118 | // Listen to changes in media query such as when a device orientation changes 119 | // or when the keyboard is toggled. 120 | MediaQuery.of(context); 121 | return Container(); 122 | } 123 | 124 | OverlayEntry _buildOverlayEntry() { 125 | RenderBox renderBox = context.findRenderObject(); 126 | final size = renderBox.size; 127 | final offset = renderBox.localToGlobal(Offset.zero); 128 | return OverlayEntry( 129 | builder: (context) { 130 | return Positioned( 131 | left: offset.dx + widget.position.left, 132 | top: offset.dy - widget.position.bottom, 133 | width: widget.asWideAsParent ? size.width : null, 134 | child: Material( 135 | child: widget.child, 136 | ), 137 | ); 138 | }, 139 | ); 140 | } 141 | } 142 | 143 | /// Class to help position the overlay on the screen. 144 | /// By default it will be rendered right below (if the parent is `Column`) 145 | /// the widget which is alongside the OverlayContainer. 146 | /// The Overlay can however be moved around by giving a left value 147 | /// and a bottom value just like in the case of a `Positioned` widget. 148 | /// The default values for `left` and `bottom` are 0 and 0 respectively. 149 | class OverlayContainerPosition { 150 | final double left; 151 | final double bottom; 152 | 153 | const OverlayContainerPosition(this.left, this.bottom); 154 | } 155 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | analyzer: 5 | dependency: transitive 6 | description: 7 | name: analyzer 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "0.36.4" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.flutter-io.cn" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "2.3.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.0.5" 32 | build: 33 | dependency: transitive 34 | description: 35 | name: build 36 | url: "https://pub.flutter-io.cn" 37 | source: hosted 38 | version: "1.1.6" 39 | build_config: 40 | dependency: transitive 41 | description: 42 | name: build_config 43 | url: "https://pub.flutter-io.cn" 44 | source: hosted 45 | version: "0.4.1+1" 46 | build_daemon: 47 | dependency: transitive 48 | description: 49 | name: build_daemon 50 | url: "https://pub.flutter-io.cn" 51 | source: hosted 52 | version: "2.1.0" 53 | build_resolvers: 54 | dependency: transitive 55 | description: 56 | name: build_resolvers 57 | url: "https://pub.flutter-io.cn" 58 | source: hosted 59 | version: "1.2.1" 60 | build_runner: 61 | dependency: "direct dev" 62 | description: 63 | name: build_runner 64 | url: "https://pub.flutter-io.cn" 65 | source: hosted 66 | version: "1.6.9" 67 | build_runner_core: 68 | dependency: transitive 69 | description: 70 | name: build_runner_core 71 | url: "https://pub.flutter-io.cn" 72 | source: hosted 73 | version: "3.1.1" 74 | built_collection: 75 | dependency: transitive 76 | description: 77 | name: built_collection 78 | url: "https://pub.flutter-io.cn" 79 | source: hosted 80 | version: "4.2.2" 81 | built_value: 82 | dependency: transitive 83 | description: 84 | name: built_value 85 | url: "https://pub.flutter-io.cn" 86 | source: hosted 87 | version: "6.7.1" 88 | charcode: 89 | dependency: transitive 90 | description: 91 | name: charcode 92 | url: "https://pub.flutter-io.cn" 93 | source: hosted 94 | version: "1.1.2" 95 | checked_yaml: 96 | dependency: transitive 97 | description: 98 | name: checked_yaml 99 | url: "https://pub.flutter-io.cn" 100 | source: hosted 101 | version: "1.0.2" 102 | code_builder: 103 | dependency: transitive 104 | description: 105 | name: code_builder 106 | url: "https://pub.flutter-io.cn" 107 | source: hosted 108 | version: "3.2.0" 109 | collection: 110 | dependency: transitive 111 | description: 112 | name: collection 113 | url: "https://pub.flutter-io.cn" 114 | source: hosted 115 | version: "1.14.11" 116 | convert: 117 | dependency: transitive 118 | description: 119 | name: convert 120 | url: "https://pub.flutter-io.cn" 121 | source: hosted 122 | version: "2.1.1" 123 | crypto: 124 | dependency: transitive 125 | description: 126 | name: crypto 127 | url: "https://pub.flutter-io.cn" 128 | source: hosted 129 | version: "2.1.3" 130 | csslib: 131 | dependency: transitive 132 | description: 133 | name: csslib 134 | url: "https://pub.flutter-io.cn" 135 | source: hosted 136 | version: "0.16.1" 137 | cupertino_icons: 138 | dependency: "direct main" 139 | description: 140 | name: cupertino_icons 141 | url: "https://pub.flutter-io.cn" 142 | source: hosted 143 | version: "0.1.2" 144 | dart_style: 145 | dependency: transitive 146 | description: 147 | name: dart_style 148 | url: "https://pub.flutter-io.cn" 149 | source: hosted 150 | version: "1.2.9" 151 | dio: 152 | dependency: "direct main" 153 | description: 154 | name: dio 155 | url: "https://pub.flutter-io.cn" 156 | source: hosted 157 | version: "3.0.3" 158 | fixnum: 159 | dependency: transitive 160 | description: 161 | name: fixnum 162 | url: "https://pub.flutter-io.cn" 163 | source: hosted 164 | version: "0.10.9" 165 | fluro: 166 | dependency: "direct main" 167 | description: 168 | path: "." 169 | ref: HEAD 170 | resolved-ref: "15363723607d3be9e03e04d8c50d058f78fa647c" 171 | url: "git://github.com/theyakka/fluro.git" 172 | source: git 173 | version: "1.5.1" 174 | flutter: 175 | dependency: "direct main" 176 | description: flutter 177 | source: sdk 178 | version: "0.0.0" 179 | flutter_mobx: 180 | dependency: "direct main" 181 | description: 182 | name: flutter_mobx 183 | url: "https://pub.flutter-io.cn" 184 | source: hosted 185 | version: "0.3.3+1" 186 | flutter_test: 187 | dependency: "direct dev" 188 | description: flutter 189 | source: sdk 190 | version: "0.0.0" 191 | front_end: 192 | dependency: transitive 193 | description: 194 | name: front_end 195 | url: "https://pub.flutter-io.cn" 196 | source: hosted 197 | version: "0.1.19" 198 | glob: 199 | dependency: transitive 200 | description: 201 | name: glob 202 | url: "https://pub.flutter-io.cn" 203 | source: hosted 204 | version: "1.1.7" 205 | graphs: 206 | dependency: transitive 207 | description: 208 | name: graphs 209 | url: "https://pub.flutter-io.cn" 210 | source: hosted 211 | version: "0.2.0" 212 | hnpwa_client: 213 | dependency: "direct main" 214 | description: 215 | name: hnpwa_client 216 | url: "https://pub.flutter-io.cn" 217 | source: hosted 218 | version: "2.0.0" 219 | html: 220 | dependency: transitive 221 | description: 222 | name: html 223 | url: "https://pub.flutter-io.cn" 224 | source: hosted 225 | version: "0.14.0+3" 226 | http: 227 | dependency: transitive 228 | description: 229 | name: http 230 | url: "https://pub.flutter-io.cn" 231 | source: hosted 232 | version: "0.12.0+2" 233 | http_multi_server: 234 | dependency: transitive 235 | description: 236 | name: http_multi_server 237 | url: "https://pub.flutter-io.cn" 238 | source: hosted 239 | version: "2.1.0" 240 | http_parser: 241 | dependency: transitive 242 | description: 243 | name: http_parser 244 | url: "https://pub.flutter-io.cn" 245 | source: hosted 246 | version: "3.1.3" 247 | io: 248 | dependency: transitive 249 | description: 250 | name: io 251 | url: "https://pub.flutter-io.cn" 252 | source: hosted 253 | version: "0.3.3" 254 | js: 255 | dependency: transitive 256 | description: 257 | name: js 258 | url: "https://pub.flutter-io.cn" 259 | source: hosted 260 | version: "0.6.1+1" 261 | json_annotation: 262 | dependency: transitive 263 | description: 264 | name: json_annotation 265 | url: "https://pub.flutter-io.cn" 266 | source: hosted 267 | version: "2.3.0" 268 | json_model: 269 | dependency: "direct dev" 270 | description: 271 | name: json_model 272 | url: "https://pub.flutter-io.cn" 273 | source: hosted 274 | version: "0.0.2" 275 | json_serializable: 276 | dependency: "direct dev" 277 | description: 278 | name: json_serializable 279 | url: "https://pub.flutter-io.cn" 280 | source: hosted 281 | version: "2.3.0" 282 | kernel: 283 | dependency: transitive 284 | description: 285 | name: kernel 286 | url: "https://pub.flutter-io.cn" 287 | source: hosted 288 | version: "0.3.19" 289 | logging: 290 | dependency: transitive 291 | description: 292 | name: logging 293 | url: "https://pub.flutter-io.cn" 294 | source: hosted 295 | version: "0.11.3+2" 296 | matcher: 297 | dependency: transitive 298 | description: 299 | name: matcher 300 | url: "https://pub.flutter-io.cn" 301 | source: hosted 302 | version: "0.12.5" 303 | meta: 304 | dependency: transitive 305 | description: 306 | name: meta 307 | url: "https://pub.flutter-io.cn" 308 | source: hosted 309 | version: "1.1.7" 310 | mime: 311 | dependency: transitive 312 | description: 313 | name: mime 314 | url: "https://pub.flutter-io.cn" 315 | source: hosted 316 | version: "0.9.6+3" 317 | mobx: 318 | dependency: "direct main" 319 | description: 320 | name: mobx 321 | url: "https://pub.flutter-io.cn" 322 | source: hosted 323 | version: "0.3.8+1" 324 | mobx_codegen: 325 | dependency: "direct main" 326 | description: 327 | name: mobx_codegen 328 | url: "https://pub.flutter-io.cn" 329 | source: hosted 330 | version: "0.3.9+1" 331 | package_config: 332 | dependency: transitive 333 | description: 334 | name: package_config 335 | url: "https://pub.flutter-io.cn" 336 | source: hosted 337 | version: "1.1.0" 338 | package_resolver: 339 | dependency: transitive 340 | description: 341 | name: package_resolver 342 | url: "https://pub.flutter-io.cn" 343 | source: hosted 344 | version: "1.0.10" 345 | path: 346 | dependency: transitive 347 | description: 348 | name: path 349 | url: "https://pub.flutter-io.cn" 350 | source: hosted 351 | version: "1.6.4" 352 | pedantic: 353 | dependency: transitive 354 | description: 355 | name: pedantic 356 | url: "https://pub.flutter-io.cn" 357 | source: hosted 358 | version: "1.8.0+1" 359 | pool: 360 | dependency: transitive 361 | description: 362 | name: pool 363 | url: "https://pub.flutter-io.cn" 364 | source: hosted 365 | version: "1.4.0" 366 | provider: 367 | dependency: "direct main" 368 | description: 369 | name: provider 370 | url: "https://pub.flutter-io.cn" 371 | source: hosted 372 | version: "3.1.0+1" 373 | pub_semver: 374 | dependency: transitive 375 | description: 376 | name: pub_semver 377 | url: "https://pub.flutter-io.cn" 378 | source: hosted 379 | version: "1.4.2" 380 | pubspec_parse: 381 | dependency: transitive 382 | description: 383 | name: pubspec_parse 384 | url: "https://pub.flutter-io.cn" 385 | source: hosted 386 | version: "0.1.5" 387 | pull_to_refresh: 388 | dependency: "direct main" 389 | description: 390 | name: pull_to_refresh 391 | url: "https://pub.flutter-io.cn" 392 | source: hosted 393 | version: "1.5.7" 394 | quiver: 395 | dependency: transitive 396 | description: 397 | name: quiver 398 | url: "https://pub.flutter-io.cn" 399 | source: hosted 400 | version: "2.0.5" 401 | shelf: 402 | dependency: transitive 403 | description: 404 | name: shelf 405 | url: "https://pub.flutter-io.cn" 406 | source: hosted 407 | version: "0.7.5" 408 | shelf_web_socket: 409 | dependency: transitive 410 | description: 411 | name: shelf_web_socket 412 | url: "https://pub.flutter-io.cn" 413 | source: hosted 414 | version: "0.2.3" 415 | simple_animations: 416 | dependency: "direct main" 417 | description: 418 | name: simple_animations 419 | url: "https://pub.flutter-io.cn" 420 | source: hosted 421 | version: "1.3.3" 422 | sky_engine: 423 | dependency: transitive 424 | description: flutter 425 | source: sdk 426 | version: "0.0.99" 427 | source_gen: 428 | dependency: transitive 429 | description: 430 | name: source_gen 431 | url: "https://pub.flutter-io.cn" 432 | source: hosted 433 | version: "0.9.4+4" 434 | source_span: 435 | dependency: transitive 436 | description: 437 | name: source_span 438 | url: "https://pub.flutter-io.cn" 439 | source: hosted 440 | version: "1.5.5" 441 | stack_trace: 442 | dependency: transitive 443 | description: 444 | name: stack_trace 445 | url: "https://pub.flutter-io.cn" 446 | source: hosted 447 | version: "1.9.3" 448 | stream_channel: 449 | dependency: transitive 450 | description: 451 | name: stream_channel 452 | url: "https://pub.flutter-io.cn" 453 | source: hosted 454 | version: "2.0.0" 455 | stream_transform: 456 | dependency: transitive 457 | description: 458 | name: stream_transform 459 | url: "https://pub.flutter-io.cn" 460 | source: hosted 461 | version: "0.0.19" 462 | string_scanner: 463 | dependency: transitive 464 | description: 465 | name: string_scanner 466 | url: "https://pub.flutter-io.cn" 467 | source: hosted 468 | version: "1.0.5" 469 | term_glyph: 470 | dependency: transitive 471 | description: 472 | name: term_glyph 473 | url: "https://pub.flutter-io.cn" 474 | source: hosted 475 | version: "1.1.0" 476 | test_api: 477 | dependency: transitive 478 | description: 479 | name: test_api 480 | url: "https://pub.flutter-io.cn" 481 | source: hosted 482 | version: "0.2.5" 483 | timing: 484 | dependency: transitive 485 | description: 486 | name: timing 487 | url: "https://pub.flutter-io.cn" 488 | source: hosted 489 | version: "0.1.1+2" 490 | typed_data: 491 | dependency: transitive 492 | description: 493 | name: typed_data 494 | url: "https://pub.flutter-io.cn" 495 | source: hosted 496 | version: "1.1.6" 497 | url_launcher: 498 | dependency: "direct main" 499 | description: 500 | name: url_launcher 501 | url: "https://pub.flutter-io.cn" 502 | source: hosted 503 | version: "5.2.3" 504 | vector_math: 505 | dependency: transitive 506 | description: 507 | name: vector_math 508 | url: "https://pub.flutter-io.cn" 509 | source: hosted 510 | version: "2.0.8" 511 | watcher: 512 | dependency: transitive 513 | description: 514 | name: watcher 515 | url: "https://pub.flutter-io.cn" 516 | source: hosted 517 | version: "0.9.7+12" 518 | web_socket_channel: 519 | dependency: transitive 520 | description: 521 | name: web_socket_channel 522 | url: "https://pub.flutter-io.cn" 523 | source: hosted 524 | version: "1.1.0" 525 | yaml: 526 | dependency: transitive 527 | description: 528 | name: yaml 529 | url: "https://pub.flutter-io.cn" 530 | source: hosted 531 | version: "2.2.0" 532 | sdks: 533 | dart: ">2.4.0 <3.0.0" 534 | flutter: ">=1.9.1+hotfix.4 <2.0.0" 535 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_shitu 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # In Android, build-name is used as versionName while build-number used as versionCode. 10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 12 | # Read more about iOS versioning at 13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 14 | version: 1.0.0+1 15 | 16 | environment: 17 | sdk: ">=2.2.2 <3.0.0" 18 | 19 | dependencies: 20 | flutter: 21 | sdk: flutter 22 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | 27 | simple_animations: ^1.3.3 28 | 29 | fluro: 30 | git: git://github.com/theyakka/fluro.git 31 | 32 | dio: ^3.0.2 #latest version 33 | 34 | pull_to_refresh: ^1.5.7 35 | 36 | mobx: 0.3.8+1 37 | flutter_mobx: 0.3.3+1 38 | mobx_codegen: 0.3.9+1 39 | 40 | provider: 3.1.0+1 41 | 42 | hnpwa_client: any 43 | url_launcher: any 44 | 45 | dev_dependencies: 46 | flutter_test: 47 | sdk: flutter 48 | 49 | json_model: ^0.0.2 50 | build_runner: ^1.0.0 51 | json_serializable: ^2.0.0 52 | 53 | # For information on the generic Dart part of this file, see the 54 | # following page: https://dart.dev/tools/pub/pubspec 55 | 56 | # The following section is specific to Flutter. 57 | flutter: 58 | # The following line ensures that the Material Icons font is 59 | # included with your application, so that you can use the icons in 60 | # the material Icons class. 61 | uses-material-design: true 62 | # To add assets to your application, add an assets section, like this: 63 | assets: 64 | - assets/splash.jpg 65 | # An image asset can refer to one or more resolution-specific "variants", see 66 | # https://flutter.dev/assets-and-images/#resolution-aware. 67 | # For details regarding adding assets from package dependencies, see 68 | # https://flutter.dev/assets-and-images/#from-packages 69 | # To add custom fonts to your application, add a fonts section here, 70 | # in this "flutter" section. Each entry in this list should have a 71 | # "family" key with the font family name, and a "fonts" key with a 72 | # list giving the asset and other descriptors for the font. For 73 | # example: 74 | # fonts: 75 | # - family: Schyler 76 | # fonts: 77 | # - asset: fonts/Schyler-Regular.ttf 78 | # - asset: fonts/Schyler-Italic.ttf 79 | # style: italic 80 | # - family: Trajan Pro 81 | # fonts: 82 | # - asset: fonts/TrajanPro.ttf 83 | # - asset: fonts/TrajanPro_Bold.ttf 84 | # weight: 700 85 | # 86 | # For details regarding fonts from package dependencies, 87 | # see https://flutter.dev/custom-fonts/#from-packages 88 | -------------------------------------------------------------------------------- /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_shitu/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 | --------------------------------------------------------------------------------