├── .gitignore ├── .metadata ├── README.md ├── android ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── gesture_detector_360 │ │ │ │ └── MainActivity.java │ │ └── 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 ├── images ├── product001.png ├── product0010.png ├── product0011.png ├── product0012.png ├── product0013.png ├── product0014.png ├── product0015.png ├── product0016.png ├── product0017.png ├── product0018.png ├── product0019.png ├── product002.png ├── product0020.png ├── product0021.png ├── product0022.png ├── product0023.png ├── product0024.png ├── product0025.png ├── product0026.png ├── product0027.png ├── product0028.png ├── product0029.png ├── product003.png ├── product0030.png ├── product0031.png ├── product0032.png ├── product0033.png ├── product0034.png ├── product0035.png ├── product0036.png ├── product0037.png ├── product0038.png ├── product0039.png ├── product004.png ├── product0040.png ├── product0041.png ├── product0042.png ├── product0043.png ├── product0044.png ├── product0045.png ├── product0046.png ├── product0047.png ├── product0048.png ├── product0049.png ├── product005.png ├── product0050.png ├── product0051.png ├── product0052.png ├── product0053.png ├── product0054.png ├── product0055.png ├── product0056.png ├── product0057.png ├── product0058.png ├── product0059.png ├── product006.png ├── product0060.png ├── product0061.png ├── product0062.png ├── product0063.png ├── product0064.png ├── product0065.png ├── product0066.png ├── product0067.png ├── product0068.png ├── product0069.png ├── product007.png ├── product0070.png ├── product0071.png ├── product0072.png ├── product008.png └── product009.png ├── ios ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ └── contents.xcworkspacedata └── Runner │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── main.m ├── lib └── main.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/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /.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: b712a172f9694745f50505c93340883493b505e5 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter:使用手势识别做一个360旋转展物 2 | 3 | 最近在复习Flutter的GestureDetector相关知识时,想到了以前用Android实现的展物项目,这次完整的用Flutter实现了一下,真是感觉代码简洁了很多, 4 | 5 | ## 项目整体需求 6 | 1. 进入app时展物自动顺时针旋转 7 | 2. 触摸展物时停止旋转 8 | 3. 手势在展物上左右触摸滑动时展物跟随旋转 9 | 4. 离开触摸时记录触摸方向然后继续自动旋转 10 | 5. 可以顺时针,也可以逆时针旋转 11 | 12 | ## 旋转的原理 13 | 首先我们了解一下怎么让展物旋转起来,展物是一件在博物馆展示的文物,一共拍摄了72张,角度每5度进行一次拍摄,所以总体算起来就是72乘以5,一共就是360度正好是一圈,那么写到代码里面就是从第1张图开始计算,然后每90毫秒替换一张,不断累加到第72张,然后再从第一张开始,这样就正好转了一圈。 14 | 理解了实现思路之后,那么,转换成Flutter代码如下: 15 | 先设定第一张图片, 16 | ``` 17 | Image.asset( 18 | 'images/product00${index}.png', 19 | fit: BoxFit.cover, 20 | width: width, 21 | height: height, 22 | ), 23 | ``` 24 | 25 | 然后,我们通过Timer每100秒替换一下index改变图片的值,代码如下: 26 | ``` 27 | Timer.periodic(new Duration(milliseconds: 90), (timer) { 28 | setState(() {}); 29 | if (index < count) { 30 | index++; 31 | return; 32 | } 33 | // 重新回到第一张图 34 | index = 1; 35 | }); 36 | ``` 37 | 记得Timer在用完之后需要cancel掉,大家对state应该有所了解,这里就是通过修改 38 | index的值得替换图片的。 39 | 40 | 但是这样会有一个问题,就是图片替换太快,而每张图片大小在40K左右,替换过程中会有白屏闪烁的问题,这是因为图片需要载入到内存中然后通过Image.asset展示出来,幸好,有一个属性可以解决这样的问题,把gaplessPlayback设置为true即可, 修改后代码如下: 41 | ``` 42 | Image.asset( 43 | 'images/product00${index}.png', 44 | fit: BoxFit.cover, 45 | width: width, 46 | height: height, 47 | // 该属性防止图片快速切换时白屏发生,在新图出现前保持旧的图 48 | gaplessPlayback: true, 49 | excludeFromSemantics: true, 50 | ), 51 | ``` 52 | 53 | gaplessPlayback设置为true就能确保在新图出现之前呈现的还是旧图,这样就不会出现白屏闪烁问题。 54 | 55 | ## GestureDetector基本使用 56 | 接下来就是如何与手势结合起来了,通过一个例子,我们先来了解一下GestureDetector的基本用法,代码如下: 57 | ``` 58 | import 'package:flutter/material.dart'; 59 | 60 | class GestureDetectorPage extends StatefulWidget { 61 | @override 62 | _GestureDetectorState createState() => new _GestureDetectorState(); 63 | } 64 | 65 | class _GestureDetectorState extends State { 66 | String _opName = "未检测到操作"; 67 | 68 | @override 69 | Widget build(BuildContext context) { 70 | return Scaffold( 71 | appBar: AppBar( 72 | title: Text("GestureDetector手势识别"), 73 | ), 74 | body: Center( 75 | child: GestureDetector( 76 | child: Container( 77 | alignment: Alignment.center, 78 | color: Colors.blue, 79 | width: 240.0, 80 | height: 120.0, 81 | child: Text( 82 | _opName, 83 | style: TextStyle(color: Colors.white), 84 | ), 85 | ), 86 | onTap: () => _showEventText("Tap"), 87 | onTapUp: (e) => _showEventText("TapUp"), 88 | onTapDown: (e) => _showEventText("TapDown"), 89 | onTapCancel: () => _showEventText("TapCancel"), 90 | onDoubleTap: () => _showEventText("DoubleTap"), 91 | onLongPress: () => _showEventText("LongPress"), 92 | onVerticalDragDown: (e) => _showEventText("onVerticalDragDown"), 93 | onVerticalDragStart: (e) => _showEventText("onVerticalDragStart"), 94 | onVerticalDragUpdate: (e) => _showEventText("onVerticalDragUpdate"), 95 | onVerticalDragEnd: (e) => _showEventText("onVerticalDragEnd"), 96 | onVerticalDragCancel: () => _showEventText("onVerticalDragCancel"), 97 | onHorizontalDragDown: (e) => _showEventText("onHorizontalDragDown"), 98 | onHorizontalDragStart: (e) => _showEventText("onHorizontalDragStart"), 99 | onHorizontalDragUpdate: (e) => _showEventText("onHorizontalDragUpdate"), 100 | onHorizontalDragEnd: (e) => _showEventText("onHorizontalDragEnd"), 101 | onHorizontalDragCancel: () => _showEventText("onHorizontalDragCancel"), 102 | // onPanDown: (e) => _showEventText("onPanDown"), 103 | // onPanStart: (e) => _showEventText("onPanStart"), 104 | // onPanUpdate: (e) => _showEventText("onPanUpdate"), 105 | // onPanEnd: (e) => _showEventText("onPanEnd"), 106 | // onScaleStart: (e) => _showEventText("onScaleStart"), 107 | // onScaleUpdate: (e) => _showEventText("onScaleUpdate"), 108 | // onScaleEnd: (e) => _showEventText("onScaleEnd"), 109 | ), 110 | ), 111 | ); 112 | } 113 | 114 | void _showEventText(String text) { 115 | setState(() { 116 | _opName = text; 117 | }); 118 | print(_opName); 119 | } 120 | } 121 | ``` 122 | 123 | 通过这个例子,我们可以在屏幕上的Text区域记录并显示出经过GestureDetector手势事件,以便帮助我们理解。 124 | 125 | 在本例中,我们需要用到的就是onTap,onPanStart,onPanUpdate,onPanEnd这几个回调方法,经过实践并对代码加入手势事件之后,代码如下: 126 | ``` 127 | GestureDetector( 128 | onTap: () => _cancelTimer(), 129 | onPanStart: (e) => _cancelTimer(), 130 | onPanUpdate: (e) => _onTouchImage(e), 131 | // 在触屏结束之后,恢复自动旋转 132 | onPanEnd: (e) => _startTimer(), 133 | child: Image.asset( 134 | 'images/product00${index}.png', 135 | fit: BoxFit.cover, 136 | width: width, 137 | height: height, 138 | // 该属性防止图片快速切换时白屏发生,在新图出前时保持旧的图 139 | gaplessPlayback: true, 140 | excludeFromSemantics: true, 141 | ), 142 | ) 143 | ``` 144 | 145 | 其中onTap,onPanStart,onPanEnd这几个很好理解,主要是onPanUpdate,里面调用了一个自己实现的_onTouchImage(e)方法,代码如下: 146 | ``` 147 | void _onTouchImage(e) { 148 | setState(() { 149 | index -= e.delta.dx.toInt(); 150 | }); 151 | // 防止取到不存在的图片报错 152 | if (index < 1) index = 1; 153 | if (index > count) index = count; 154 | } 155 | ``` 156 | 157 | 上面的代码中,在触摸屏幕的同时转换成index值替换图片,这样就实现了图片替换跟随手势的功能,然后,在手指离开屏幕之后还能继续旋转,这时候我们可以在触摸时加入方向判断, 158 | ``` 159 | if (e.delta.dx < 0) { 160 | // 顺时针 161 | direction = DIRECTION_CLOCKWISE; 162 | } 163 | if (e.delta.dx > 0) { 164 | // 逆时针 165 | direction = DIRECTION_ANTICLOCKWISE; 166 | } 167 | ``` 168 | 169 | 这样,一个简单的360展物就实现了,你可以在屏幕上任意触摸控制展物,很神奇吧!看一下最终效果: 170 | 171 | ![](https://raw.githubusercontent.com/heruijun/chahu/master/wu.gif) 172 | 173 | github地址:[https://github.com/heruijun/flutter_360](https://github.com/heruijun/flutter_360) 174 | 175 | ## 新书推荐 176 | 《Flutter从0到1构建大前端应用》 177 | 178 | ![](https://img14.360buyimg.com/n1/jfs/t1/55763/28/4089/173115/5d1d7041E7d6bc656/d681b55e89bac6f6.jpg) 179 | 180 | 从Flutter基础开始讲解,结合实际案例,让读者逐步掌握Flutter的核心内容,实战项目篇又通过2个实战项目让读者除了掌握Flutter相关知识之外,对node、mongo,vue做了一些介绍,可以让更多的读者拥抱目前最火的大前端技术。 181 | 182 | 京东购买链接:[点击购买](https://item.jd.com/12546599.html) -------------------------------------------------------------------------------- /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 from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 28 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.gesture_detector_360" 37 | minSdkVersion 21 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /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/java/com/example/gesture_detector_360/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.gesture_detector_360; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 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 | -------------------------------------------------------------------------------- /images/product001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product001.png -------------------------------------------------------------------------------- /images/product0010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0010.png -------------------------------------------------------------------------------- /images/product0011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0011.png -------------------------------------------------------------------------------- /images/product0012.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0012.png -------------------------------------------------------------------------------- /images/product0013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0013.png -------------------------------------------------------------------------------- /images/product0014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0014.png -------------------------------------------------------------------------------- /images/product0015.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0015.png -------------------------------------------------------------------------------- /images/product0016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0016.png -------------------------------------------------------------------------------- /images/product0017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0017.png -------------------------------------------------------------------------------- /images/product0018.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0018.png -------------------------------------------------------------------------------- /images/product0019.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0019.png -------------------------------------------------------------------------------- /images/product002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product002.png -------------------------------------------------------------------------------- /images/product0020.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0020.png -------------------------------------------------------------------------------- /images/product0021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0021.png -------------------------------------------------------------------------------- /images/product0022.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0022.png -------------------------------------------------------------------------------- /images/product0023.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0023.png -------------------------------------------------------------------------------- /images/product0024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0024.png -------------------------------------------------------------------------------- /images/product0025.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0025.png -------------------------------------------------------------------------------- /images/product0026.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0026.png -------------------------------------------------------------------------------- /images/product0027.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0027.png -------------------------------------------------------------------------------- /images/product0028.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0028.png -------------------------------------------------------------------------------- /images/product0029.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0029.png -------------------------------------------------------------------------------- /images/product003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product003.png -------------------------------------------------------------------------------- /images/product0030.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0030.png -------------------------------------------------------------------------------- /images/product0031.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0031.png -------------------------------------------------------------------------------- /images/product0032.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0032.png -------------------------------------------------------------------------------- /images/product0033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0033.png -------------------------------------------------------------------------------- /images/product0034.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0034.png -------------------------------------------------------------------------------- /images/product0035.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0035.png -------------------------------------------------------------------------------- /images/product0036.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0036.png -------------------------------------------------------------------------------- /images/product0037.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0037.png -------------------------------------------------------------------------------- /images/product0038.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0038.png -------------------------------------------------------------------------------- /images/product0039.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0039.png -------------------------------------------------------------------------------- /images/product004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product004.png -------------------------------------------------------------------------------- /images/product0040.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0040.png -------------------------------------------------------------------------------- /images/product0041.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0041.png -------------------------------------------------------------------------------- /images/product0042.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0042.png -------------------------------------------------------------------------------- /images/product0043.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0043.png -------------------------------------------------------------------------------- /images/product0044.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0044.png -------------------------------------------------------------------------------- /images/product0045.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0045.png -------------------------------------------------------------------------------- /images/product0046.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0046.png -------------------------------------------------------------------------------- /images/product0047.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0047.png -------------------------------------------------------------------------------- /images/product0048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0048.png -------------------------------------------------------------------------------- /images/product0049.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0049.png -------------------------------------------------------------------------------- /images/product005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product005.png -------------------------------------------------------------------------------- /images/product0050.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0050.png -------------------------------------------------------------------------------- /images/product0051.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0051.png -------------------------------------------------------------------------------- /images/product0052.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0052.png -------------------------------------------------------------------------------- /images/product0053.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0053.png -------------------------------------------------------------------------------- /images/product0054.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0054.png -------------------------------------------------------------------------------- /images/product0055.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0055.png -------------------------------------------------------------------------------- /images/product0056.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0056.png -------------------------------------------------------------------------------- /images/product0057.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0057.png -------------------------------------------------------------------------------- /images/product0058.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0058.png -------------------------------------------------------------------------------- /images/product0059.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0059.png -------------------------------------------------------------------------------- /images/product006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product006.png -------------------------------------------------------------------------------- /images/product0060.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0060.png -------------------------------------------------------------------------------- /images/product0061.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0061.png -------------------------------------------------------------------------------- /images/product0062.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0062.png -------------------------------------------------------------------------------- /images/product0063.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0063.png -------------------------------------------------------------------------------- /images/product0064.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0064.png -------------------------------------------------------------------------------- /images/product0065.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0065.png -------------------------------------------------------------------------------- /images/product0066.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0066.png -------------------------------------------------------------------------------- /images/product0067.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0067.png -------------------------------------------------------------------------------- /images/product0068.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0068.png -------------------------------------------------------------------------------- /images/product0069.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0069.png -------------------------------------------------------------------------------- /images/product007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product007.png -------------------------------------------------------------------------------- /images/product0070.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0070.png -------------------------------------------------------------------------------- /images/product0071.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0071.png -------------------------------------------------------------------------------- /images/product0072.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product0072.png -------------------------------------------------------------------------------- /images/product008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product008.png -------------------------------------------------------------------------------- /images/product009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/images/product009.png -------------------------------------------------------------------------------- /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 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 37 | # referring to absolute paths on developers' machines. 38 | system('rm -rf .symlinks') 39 | system('mkdir -p .symlinks/plugins') 40 | 41 | # Flutter Pods 42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 43 | if generated_xcode_build_settings.empty? 44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first." 45 | end 46 | generated_xcode_build_settings.map { |p| 47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 48 | symlink = File.join('.symlinks', 'flutter') 49 | File.symlink(File.dirname(p[:path]), symlink) 50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 51 | end 52 | } 53 | 54 | # Plugin Pods 55 | plugin_pods = parse_KV_file('../.flutter-plugins') 56 | plugin_pods.map { |p| 57 | symlink = File.join('.symlinks', 'plugins', p[:name]) 58 | File.symlink(p[:path], symlink) 59 | pod p[:name], :path => File.join(symlink, 'ios') 60 | } 61 | end 62 | 63 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 64 | install! 'cocoapods', :disable_input_output_paths => true 65 | 66 | post_install do |installer| 67 | installer.pods_project.targets.each do |target| 68 | target.build_configurations.each do |config| 69 | config.build_settings['ENABLE_BITCODE'] = 'NO' 70 | end 71 | end 72 | end 73 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - camera (0.0.1): 3 | - Flutter 4 | - Flutter (1.0.0) 5 | 6 | DEPENDENCIES: 7 | - camera (from `.symlinks/plugins/camera/ios`) 8 | - Flutter (from `.symlinks/flutter/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | camera: 12 | :path: ".symlinks/plugins/camera/ios" 13 | Flutter: 14 | :path: ".symlinks/flutter/ios" 15 | 16 | SPEC CHECKSUMS: 17 | camera: d56ad165545ae5a0ffb892376033760a969c68c8 18 | Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a 19 | 20 | PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932 21 | 22 | COCOAPODS: 1.7.1 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 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 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 | F87EDBA480844D1F38F9F92C /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4173F987EF197DEB3692953E /* libPods-Runner.a */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 358E431E225BC11A4BA4256F /* 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 = ""; }; 44 | 3A6D7B7B86D7303160F2700E /* 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 = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 4173F987EF197DEB3692953E /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 50 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 51 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 52 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 53 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 54 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 57 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 58 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 59 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 60 | AE82CBE1B2B1BF89C8E5AE44 /* 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 = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 69 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 70 | F87EDBA480844D1F38F9F92C /* libPods-Runner.a in Frameworks */, 71 | ); 72 | runOnlyForDeploymentPostprocessing = 0; 73 | }; 74 | /* End PBXFrameworksBuildPhase section */ 75 | 76 | /* Begin PBXGroup section */ 77 | 373D7DA88B69A85D2A7DF471 /* Pods */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | AE82CBE1B2B1BF89C8E5AE44 /* Pods-Runner.debug.xcconfig */, 81 | 3A6D7B7B86D7303160F2700E /* Pods-Runner.release.xcconfig */, 82 | 358E431E225BC11A4BA4256F /* Pods-Runner.profile.xcconfig */, 83 | ); 84 | name = Pods; 85 | path = Pods; 86 | sourceTree = ""; 87 | }; 88 | 66B315B9391207D5E94CD1D4 /* Frameworks */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 4173F987EF197DEB3692953E /* libPods-Runner.a */, 92 | ); 93 | name = Frameworks; 94 | sourceTree = ""; 95 | }; 96 | 9740EEB11CF90186004384FC /* Flutter */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 3B80C3931E831B6300D905FE /* App.framework */, 100 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 101 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 102 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 103 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 104 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 105 | ); 106 | name = Flutter; 107 | sourceTree = ""; 108 | }; 109 | 97C146E51CF9000F007C117D = { 110 | isa = PBXGroup; 111 | children = ( 112 | 9740EEB11CF90186004384FC /* Flutter */, 113 | 97C146F01CF9000F007C117D /* Runner */, 114 | 97C146EF1CF9000F007C117D /* Products */, 115 | 373D7DA88B69A85D2A7DF471 /* Pods */, 116 | 66B315B9391207D5E94CD1D4 /* Frameworks */, 117 | ); 118 | sourceTree = ""; 119 | }; 120 | 97C146EF1CF9000F007C117D /* Products */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 97C146EE1CF9000F007C117D /* Runner.app */, 124 | ); 125 | name = Products; 126 | sourceTree = ""; 127 | }; 128 | 97C146F01CF9000F007C117D /* Runner */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 132 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 133 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 134 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 135 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 136 | 97C147021CF9000F007C117D /* Info.plist */, 137 | 97C146F11CF9000F007C117D /* Supporting Files */, 138 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 139 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 140 | ); 141 | path = Runner; 142 | sourceTree = ""; 143 | }; 144 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 145 | isa = PBXGroup; 146 | children = ( 147 | 97C146F21CF9000F007C117D /* main.m */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | /* End PBXGroup section */ 153 | 154 | /* Begin PBXNativeTarget section */ 155 | 97C146ED1CF9000F007C117D /* Runner */ = { 156 | isa = PBXNativeTarget; 157 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 158 | buildPhases = ( 159 | EF920C3F748F27B3037CE400 /* [CP] Check Pods Manifest.lock */, 160 | 9740EEB61CF901F6004384FC /* Run Script */, 161 | 97C146EA1CF9000F007C117D /* Sources */, 162 | 97C146EB1CF9000F007C117D /* Frameworks */, 163 | 97C146EC1CF9000F007C117D /* Resources */, 164 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 165 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 166 | 37324C74D001BD511E0B3BD7 /* [CP] Embed Pods Frameworks */, 167 | ); 168 | buildRules = ( 169 | ); 170 | dependencies = ( 171 | ); 172 | name = Runner; 173 | productName = Runner; 174 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 175 | productType = "com.apple.product-type.application"; 176 | }; 177 | /* End PBXNativeTarget section */ 178 | 179 | /* Begin PBXProject section */ 180 | 97C146E61CF9000F007C117D /* Project object */ = { 181 | isa = PBXProject; 182 | attributes = { 183 | LastUpgradeCheck = 1020; 184 | ORGANIZATIONNAME = "The Chromium Authors"; 185 | TargetAttributes = { 186 | 97C146ED1CF9000F007C117D = { 187 | CreatedOnToolsVersion = 7.3.1; 188 | }; 189 | }; 190 | }; 191 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 192 | compatibilityVersion = "Xcode 3.2"; 193 | developmentRegion = en; 194 | hasScannedForEncodings = 0; 195 | knownRegions = ( 196 | en, 197 | Base, 198 | ); 199 | mainGroup = 97C146E51CF9000F007C117D; 200 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 201 | projectDirPath = ""; 202 | projectRoot = ""; 203 | targets = ( 204 | 97C146ED1CF9000F007C117D /* Runner */, 205 | ); 206 | }; 207 | /* End PBXProject section */ 208 | 209 | /* Begin PBXResourcesBuildPhase section */ 210 | 97C146EC1CF9000F007C117D /* Resources */ = { 211 | isa = PBXResourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 215 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 216 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 37324C74D001BD511E0B3BD7 /* [CP] Embed Pods Frameworks */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | ); 230 | inputPaths = ( 231 | ); 232 | name = "[CP] Embed Pods Frameworks"; 233 | outputPaths = ( 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | shellPath = /bin/sh; 237 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 238 | showEnvVarsInLog = 0; 239 | }; 240 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 241 | isa = PBXShellScriptBuildPhase; 242 | buildActionMask = 2147483647; 243 | files = ( 244 | ); 245 | inputPaths = ( 246 | ); 247 | name = "Thin Binary"; 248 | outputPaths = ( 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | shellPath = /bin/sh; 252 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 253 | }; 254 | 9740EEB61CF901F6004384FC /* Run Script */ = { 255 | isa = PBXShellScriptBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | inputPaths = ( 260 | ); 261 | name = "Run Script"; 262 | outputPaths = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | shellPath = /bin/sh; 266 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 267 | }; 268 | EF920C3F748F27B3037CE400 /* [CP] Check Pods Manifest.lock */ = { 269 | isa = PBXShellScriptBuildPhase; 270 | buildActionMask = 2147483647; 271 | files = ( 272 | ); 273 | inputFileListPaths = ( 274 | ); 275 | inputPaths = ( 276 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 277 | "${PODS_ROOT}/Manifest.lock", 278 | ); 279 | name = "[CP] Check Pods Manifest.lock"; 280 | outputFileListPaths = ( 281 | ); 282 | outputPaths = ( 283 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | shellPath = /bin/sh; 287 | 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"; 288 | showEnvVarsInLog = 0; 289 | }; 290 | /* End PBXShellScriptBuildPhase section */ 291 | 292 | /* Begin PBXSourcesBuildPhase section */ 293 | 97C146EA1CF9000F007C117D /* Sources */ = { 294 | isa = PBXSourcesBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 298 | 97C146F31CF9000F007C117D /* main.m in Sources */, 299 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | }; 303 | /* End PBXSourcesBuildPhase section */ 304 | 305 | /* Begin PBXVariantGroup section */ 306 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 307 | isa = PBXVariantGroup; 308 | children = ( 309 | 97C146FB1CF9000F007C117D /* Base */, 310 | ); 311 | name = Main.storyboard; 312 | sourceTree = ""; 313 | }; 314 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 315 | isa = PBXVariantGroup; 316 | children = ( 317 | 97C147001CF9000F007C117D /* Base */, 318 | ); 319 | name = LaunchScreen.storyboard; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 326 | isa = XCBuildConfiguration; 327 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 328 | buildSettings = { 329 | ALWAYS_SEARCH_USER_PATHS = NO; 330 | CLANG_ANALYZER_NONNULL = YES; 331 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 332 | CLANG_CXX_LIBRARY = "libc++"; 333 | CLANG_ENABLE_MODULES = YES; 334 | CLANG_ENABLE_OBJC_ARC = YES; 335 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 336 | CLANG_WARN_BOOL_CONVERSION = YES; 337 | CLANG_WARN_COMMA = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 340 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 341 | CLANG_WARN_EMPTY_BODY = YES; 342 | CLANG_WARN_ENUM_CONVERSION = YES; 343 | CLANG_WARN_INFINITE_RECURSION = YES; 344 | CLANG_WARN_INT_CONVERSION = YES; 345 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 346 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 347 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 348 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 349 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 350 | CLANG_WARN_STRICT_PROTOTYPES = YES; 351 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 357 | ENABLE_NS_ASSERTIONS = NO; 358 | ENABLE_STRICT_OBJC_MSGSEND = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_NO_COMMON_BLOCKS = YES; 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | MTL_ENABLE_DEBUG_INFO = NO; 369 | SDKROOT = iphoneos; 370 | TARGETED_DEVICE_FAMILY = "1,2"; 371 | VALIDATE_PRODUCT = YES; 372 | }; 373 | name = Profile; 374 | }; 375 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 378 | buildSettings = { 379 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 380 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 381 | DEVELOPMENT_TEAM = S8QB4VV633; 382 | ENABLE_BITCODE = NO; 383 | FRAMEWORK_SEARCH_PATHS = ( 384 | "$(inherited)", 385 | "$(PROJECT_DIR)/Flutter", 386 | ); 387 | INFOPLIST_FILE = Runner/Info.plist; 388 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 389 | LIBRARY_SEARCH_PATHS = ( 390 | "$(inherited)", 391 | "$(PROJECT_DIR)/Flutter", 392 | ); 393 | PRODUCT_BUNDLE_IDENTIFIER = com.example.gestureDetector360; 394 | PRODUCT_NAME = "$(TARGET_NAME)"; 395 | VERSIONING_SYSTEM = "apple-generic"; 396 | }; 397 | name = Profile; 398 | }; 399 | 97C147031CF9000F007C117D /* Debug */ = { 400 | isa = XCBuildConfiguration; 401 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 402 | buildSettings = { 403 | ALWAYS_SEARCH_USER_PATHS = NO; 404 | CLANG_ANALYZER_NONNULL = YES; 405 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 406 | CLANG_CXX_LIBRARY = "libc++"; 407 | CLANG_ENABLE_MODULES = YES; 408 | CLANG_ENABLE_OBJC_ARC = YES; 409 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_COMMA = YES; 412 | CLANG_WARN_CONSTANT_CONVERSION = YES; 413 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 414 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 415 | CLANG_WARN_EMPTY_BODY = YES; 416 | CLANG_WARN_ENUM_CONVERSION = YES; 417 | CLANG_WARN_INFINITE_RECURSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 420 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 421 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 422 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 423 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 424 | CLANG_WARN_STRICT_PROTOTYPES = YES; 425 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 426 | CLANG_WARN_UNREACHABLE_CODE = YES; 427 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 428 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 429 | COPY_PHASE_STRIP = NO; 430 | DEBUG_INFORMATION_FORMAT = dwarf; 431 | ENABLE_STRICT_OBJC_MSGSEND = YES; 432 | ENABLE_TESTABILITY = YES; 433 | GCC_C_LANGUAGE_STANDARD = gnu99; 434 | GCC_DYNAMIC_NO_PIC = NO; 435 | GCC_NO_COMMON_BLOCKS = YES; 436 | GCC_OPTIMIZATION_LEVEL = 0; 437 | GCC_PREPROCESSOR_DEFINITIONS = ( 438 | "DEBUG=1", 439 | "$(inherited)", 440 | ); 441 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 442 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 443 | GCC_WARN_UNDECLARED_SELECTOR = YES; 444 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 445 | GCC_WARN_UNUSED_FUNCTION = YES; 446 | GCC_WARN_UNUSED_VARIABLE = YES; 447 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 448 | MTL_ENABLE_DEBUG_INFO = YES; 449 | ONLY_ACTIVE_ARCH = YES; 450 | SDKROOT = iphoneos; 451 | TARGETED_DEVICE_FAMILY = "1,2"; 452 | }; 453 | name = Debug; 454 | }; 455 | 97C147041CF9000F007C117D /* Release */ = { 456 | isa = XCBuildConfiguration; 457 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 458 | buildSettings = { 459 | ALWAYS_SEARCH_USER_PATHS = NO; 460 | CLANG_ANALYZER_NONNULL = YES; 461 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 462 | CLANG_CXX_LIBRARY = "libc++"; 463 | CLANG_ENABLE_MODULES = YES; 464 | CLANG_ENABLE_OBJC_ARC = YES; 465 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 466 | CLANG_WARN_BOOL_CONVERSION = YES; 467 | CLANG_WARN_COMMA = YES; 468 | CLANG_WARN_CONSTANT_CONVERSION = YES; 469 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 470 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 471 | CLANG_WARN_EMPTY_BODY = YES; 472 | CLANG_WARN_ENUM_CONVERSION = YES; 473 | CLANG_WARN_INFINITE_RECURSION = YES; 474 | CLANG_WARN_INT_CONVERSION = YES; 475 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 476 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 477 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 478 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 479 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 480 | CLANG_WARN_STRICT_PROTOTYPES = YES; 481 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 482 | CLANG_WARN_UNREACHABLE_CODE = YES; 483 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 484 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 485 | COPY_PHASE_STRIP = NO; 486 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 487 | ENABLE_NS_ASSERTIONS = NO; 488 | ENABLE_STRICT_OBJC_MSGSEND = YES; 489 | GCC_C_LANGUAGE_STANDARD = gnu99; 490 | GCC_NO_COMMON_BLOCKS = YES; 491 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 492 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 493 | GCC_WARN_UNDECLARED_SELECTOR = YES; 494 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 495 | GCC_WARN_UNUSED_FUNCTION = YES; 496 | GCC_WARN_UNUSED_VARIABLE = YES; 497 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 498 | MTL_ENABLE_DEBUG_INFO = NO; 499 | SDKROOT = iphoneos; 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 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 511 | ENABLE_BITCODE = NO; 512 | FRAMEWORK_SEARCH_PATHS = ( 513 | "$(inherited)", 514 | "$(PROJECT_DIR)/Flutter", 515 | ); 516 | INFOPLIST_FILE = Runner/Info.plist; 517 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 518 | LIBRARY_SEARCH_PATHS = ( 519 | "$(inherited)", 520 | "$(PROJECT_DIR)/Flutter", 521 | ); 522 | PRODUCT_BUNDLE_IDENTIFIER = com.example.gestureDetector360; 523 | PRODUCT_NAME = "$(TARGET_NAME)"; 524 | VERSIONING_SYSTEM = "apple-generic"; 525 | }; 526 | name = Debug; 527 | }; 528 | 97C147071CF9000F007C117D /* Release */ = { 529 | isa = XCBuildConfiguration; 530 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 531 | buildSettings = { 532 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 533 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 534 | ENABLE_BITCODE = NO; 535 | FRAMEWORK_SEARCH_PATHS = ( 536 | "$(inherited)", 537 | "$(PROJECT_DIR)/Flutter", 538 | ); 539 | INFOPLIST_FILE = Runner/Info.plist; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 541 | LIBRARY_SEARCH_PATHS = ( 542 | "$(inherited)", 543 | "$(PROJECT_DIR)/Flutter", 544 | ); 545 | PRODUCT_BUNDLE_IDENTIFIER = com.example.gestureDetector360; 546 | PRODUCT_NAME = "$(TARGET_NAME)"; 547 | VERSIONING_SYSTEM = "apple-generic"; 548 | }; 549 | name = Release; 550 | }; 551 | /* End XCBuildConfiguration section */ 552 | 553 | /* Begin XCConfigurationList section */ 554 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 555 | isa = XCConfigurationList; 556 | buildConfigurations = ( 557 | 97C147031CF9000F007C117D /* Debug */, 558 | 97C147041CF9000F007C117D /* Release */, 559 | 249021D3217E4FDB00AE95B9 /* Profile */, 560 | ); 561 | defaultConfigurationIsVisible = 0; 562 | defaultConfigurationName = Release; 563 | }; 564 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 565 | isa = XCConfigurationList; 566 | buildConfigurations = ( 567 | 97C147061CF9000F007C117D /* Debug */, 568 | 97C147071CF9000F007C117D /* Release */, 569 | 249021D4217E4FDB00AE95B9 /* Profile */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | /* End XCConfigurationList section */ 575 | }; 576 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 577 | } 578 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/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/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/heruijun/flutter_360/862bd4e398d62b18d7565b7f560cc113fb8e4d7d/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | gesture_detector_360 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/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | void main() => runApp(MyApp()); 6 | 7 | class MyApp extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | return MaterialApp( 11 | title: 'GestureDetector实现360展物', 12 | theme: ThemeData( 13 | primarySwatch: Colors.blue, 14 | ), 15 | home: GestureDetectorPage(title: 'GestureDetector实现360展物'), 16 | ); 17 | } 18 | } 19 | 20 | class GestureDetectorPage extends StatefulWidget { 21 | GestureDetectorPage({Key key, this.title}) : super(key: key); 22 | 23 | final String title; 24 | 25 | @override 26 | _GestureDetectorPageState createState() => _GestureDetectorPageState(); 27 | } 28 | 29 | class _GestureDetectorPageState extends State { 30 | int index = 1; // 第一张图片 31 | int count = 72; // 图片总数 32 | double initial = 0.0; 33 | final int DIRECTION_ANTICLOCKWISE = 1; // 逆时针 34 | final int DIRECTION_CLOCKWISE = -1; // 顺时针 35 | int direction; 36 | Timer _timer; 37 | 38 | @override 39 | void initState() { 40 | super.initState(); 41 | direction = DIRECTION_CLOCKWISE; 42 | _startTimer(); 43 | } 44 | 45 | _startTimer() { 46 | _timer = Timer.periodic(new Duration(milliseconds: 90), (timer) { 47 | setState(() {}); 48 | if (direction == DIRECTION_ANTICLOCKWISE) { 49 | if (index > 1) { 50 | index--; 51 | return; 52 | } 53 | // 重新回到第一张图 54 | index = count; 55 | } else if (direction == DIRECTION_CLOCKWISE) { 56 | if (index < count) { 57 | index++; 58 | return; 59 | } 60 | // 重新回到第一张图 61 | index = 1; 62 | } 63 | }); 64 | } 65 | 66 | @override 67 | Widget build(BuildContext context) { 68 | var width = MediaQuery.of(context).size.width; 69 | var height = width; 70 | 71 | return Scaffold( 72 | appBar: AppBar( 73 | title: Text(widget.title), 74 | ), 75 | body: Center( 76 | child: Column( 77 | mainAxisAlignment: MainAxisAlignment.center, 78 | children: [ 79 | GestureDetector( 80 | onTap: () => _cancelTimer(), 81 | onPanStart: (e) => _cancelTimer(), 82 | onPanUpdate: (e) => _onTouchImage(e), 83 | // 在触屏结束之后,恢复自动旋转 84 | onPanEnd: (e) => _startTimer(), 85 | child: Image.asset( 86 | 'images/product00${index}.png', 87 | fit: BoxFit.cover, 88 | width: width, 89 | height: height, 90 | // 该属性防止图片快速切换时白屏发生,在新图出前时保持旧的图 91 | gaplessPlayback: true, 92 | excludeFromSemantics: true, 93 | ), 94 | ) 95 | ], 96 | ), 97 | ), 98 | ); 99 | } 100 | 101 | void _onTouchImage(e) { 102 | if (e.delta.dx < 0) { 103 | direction = DIRECTION_CLOCKWISE; 104 | } 105 | if (e.delta.dx > 0) { 106 | direction = DIRECTION_ANTICLOCKWISE; 107 | } 108 | setState(() { 109 | index -= e.delta.dx.toInt(); 110 | }); 111 | // 防止取到不存在的图片报错 112 | if (index < 1) index = 1; 113 | if (index > count) index = count; 114 | } 115 | 116 | @override 117 | void dispose() { 118 | super.dispose(); 119 | _cancelTimer(); 120 | } 121 | 122 | void _cancelTimer() { 123 | _timer?.cancel(); 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.flutter-io.cn" 9 | source: hosted 10 | version: "2.2.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.flutter-io.cn" 16 | source: hosted 17 | version: "1.0.4" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.flutter-io.cn" 23 | source: hosted 24 | version: "1.1.2" 25 | collection: 26 | dependency: transitive 27 | description: 28 | name: collection 29 | url: "https://pub.flutter-io.cn" 30 | source: hosted 31 | version: "1.14.11" 32 | cupertino_icons: 33 | dependency: "direct main" 34 | description: 35 | name: cupertino_icons 36 | url: "https://pub.flutter-io.cn" 37 | source: hosted 38 | version: "0.1.2" 39 | flutter: 40 | dependency: "direct main" 41 | description: flutter 42 | source: sdk 43 | version: "0.0.0" 44 | flutter_test: 45 | dependency: "direct dev" 46 | description: flutter 47 | source: sdk 48 | version: "0.0.0" 49 | matcher: 50 | dependency: transitive 51 | description: 52 | name: matcher 53 | url: "https://pub.flutter-io.cn" 54 | source: hosted 55 | version: "0.12.5" 56 | meta: 57 | dependency: transitive 58 | description: 59 | name: meta 60 | url: "https://pub.flutter-io.cn" 61 | source: hosted 62 | version: "1.1.6" 63 | path: 64 | dependency: transitive 65 | description: 66 | name: path 67 | url: "https://pub.flutter-io.cn" 68 | source: hosted 69 | version: "1.6.2" 70 | pedantic: 71 | dependency: transitive 72 | description: 73 | name: pedantic 74 | url: "https://pub.flutter-io.cn" 75 | source: hosted 76 | version: "1.7.0" 77 | quiver: 78 | dependency: transitive 79 | description: 80 | name: quiver 81 | url: "https://pub.flutter-io.cn" 82 | source: hosted 83 | version: "2.0.3" 84 | sky_engine: 85 | dependency: transitive 86 | description: flutter 87 | source: sdk 88 | version: "0.0.99" 89 | source_span: 90 | dependency: transitive 91 | description: 92 | name: source_span 93 | url: "https://pub.flutter-io.cn" 94 | source: hosted 95 | version: "1.5.5" 96 | stack_trace: 97 | dependency: transitive 98 | description: 99 | name: stack_trace 100 | url: "https://pub.flutter-io.cn" 101 | source: hosted 102 | version: "1.9.3" 103 | stream_channel: 104 | dependency: transitive 105 | description: 106 | name: stream_channel 107 | url: "https://pub.flutter-io.cn" 108 | source: hosted 109 | version: "2.0.0" 110 | string_scanner: 111 | dependency: transitive 112 | description: 113 | name: string_scanner 114 | url: "https://pub.flutter-io.cn" 115 | source: hosted 116 | version: "1.0.4" 117 | term_glyph: 118 | dependency: transitive 119 | description: 120 | name: term_glyph 121 | url: "https://pub.flutter-io.cn" 122 | source: hosted 123 | version: "1.1.0" 124 | test_api: 125 | dependency: transitive 126 | description: 127 | name: test_api 128 | url: "https://pub.flutter-io.cn" 129 | source: hosted 130 | version: "0.2.5" 131 | typed_data: 132 | dependency: transitive 133 | description: 134 | name: typed_data 135 | url: "https://pub.flutter-io.cn" 136 | source: hosted 137 | version: "1.1.6" 138 | vector_math: 139 | dependency: transitive 140 | description: 141 | name: vector_math 142 | url: "https://pub.flutter-io.cn" 143 | source: hosted 144 | version: "2.0.8" 145 | sdks: 146 | dart: ">=2.2.2 <3.0.0" 147 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: gesture_detector_360 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.1.0 <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 | dev_dependencies: 28 | flutter_test: 29 | sdk: flutter 30 | 31 | 32 | # For information on the generic Dart part of this file, see the 33 | # following page: https://dart.dev/tools/pub/pubspec 34 | 35 | # The following section is specific to Flutter. 36 | flutter: 37 | 38 | # The following line ensures that the Material Icons font is 39 | # included with your application, so that you can use the icons in 40 | # the material Icons class. 41 | uses-material-design: true 42 | assets: 43 | - images/ 44 | 45 | # To add assets to your application, add an assets section, like this: 46 | # assets: 47 | # - images/a_dot_burr.jpeg 48 | # - images/a_dot_ham.jpeg 49 | 50 | # An image asset can refer to one or more resolution-specific "variants", see 51 | # https://flutter.dev/assets-and-images/#resolution-aware. 52 | 53 | # For details regarding adding assets from package dependencies, see 54 | # https://flutter.dev/assets-and-images/#from-packages 55 | 56 | # To add custom fonts to your application, add a fonts section here, 57 | # in this "flutter" section. Each entry in this list should have a 58 | # "family" key with the font family name, and a "fonts" key with a 59 | # list giving the asset and other descriptors for the font. For 60 | # example: 61 | # fonts: 62 | # - family: Schyler 63 | # fonts: 64 | # - asset: fonts/Schyler-Regular.ttf 65 | # - asset: fonts/Schyler-Italic.ttf 66 | # style: italic 67 | # - family: Trajan Pro 68 | # fonts: 69 | # - asset: fonts/TrajanPro.ttf 70 | # - asset: fonts/TrajanPro_Bold.ttf 71 | # weight: 700 72 | # 73 | # For details regarding fonts from package dependencies, 74 | # see https://flutter.dev/custom-fonts/#from-packages 75 | -------------------------------------------------------------------------------- /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:gesture_detector_360/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 | --------------------------------------------------------------------------------