├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── 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-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile.lock └── Podfile ├── screenshots └── animation.gif ├── android ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── 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 │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── hack20 │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── .metadata ├── lib ├── main.dart ├── theme.dart ├── typer_texts.dart ├── selection_panel.dart ├── metro_line.dart ├── metro_map.dart ├── cyber_shape.dart └── metro_page.dart ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── pubspec.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /screenshots/animation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/screenshots/animation.gif -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/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/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/davidmartos96/flutter_city/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/hack20/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.fluttercity 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.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: 1ad9baa8b99a2897c20f9e6e54d3b9b359ade314 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'package:fluttercity/metro_page.dart'; 4 | import 'package:fluttercity/theme.dart'; 5 | 6 | void main() { 7 | runApp(MyApp()); 8 | } 9 | 10 | class MyApp extends StatelessWidget { 11 | @override 12 | Widget build(BuildContext context) { 13 | return MaterialApp( 14 | debugShowCheckedModeBanner: false, 15 | theme: createTheme(), 16 | home: MetroPage(), // MyHomePage(), 17 | ); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter City 2 | 3 | A Flutter project for the Hackathon 2020. 4 | 5 | ![](screenshots/animation.gif) 6 | 7 | ## Pitch 8 | 9 | Metro animation for the Flutter City. Dive into the colorful city watching the busy trains come and go. 10 | 11 | ## Description 12 | 13 | We wanted to experiment with the combination of dynamically generated widgets and canvas shapes, all animated in real time. The project was created using a mix of a Stack with randomly spawned widgets and a Custom Painter which handles the painting of all the metro lines, stops and trains. The painting logic involves some math to calculate the train rotations and positions each frame. We created a custom shape called Cyber. We used google_fonts, flutter_spinkit and animated_text_kit. Enjoy! 14 | -------------------------------------------------------------------------------- /.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 | .flutter-plugins-dependencies 28 | .packages 29 | .pub-cache/ 30 | .pub/ 31 | /build/ 32 | 33 | # Web related 34 | lib/generated_plugin_registrant.dart 35 | 36 | # Symbolication related 37 | app.*.symbols 38 | 39 | # Obfuscation related 40 | app.*.map.json 41 | 42 | # Exceptions to above rules. 43 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 44 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | ThemeData createTheme() { 5 | final TextTheme textTheme = GoogleFonts.shareTechTextTheme( 6 | ThemeData.dark().textTheme, 7 | ); 8 | 9 | ColorScheme colorScheme = ColorScheme.dark( 10 | primary: Color(0xFF292a2e), 11 | surface: Color(0xFF212629), 12 | secondary: Color(0xFFef1c71), //Color(0xFFeb004a), 13 | onSecondary: Colors.white, 14 | background: Color(0xFF111214), 15 | ); 16 | 17 | final themeData = ThemeData.from( 18 | colorScheme: colorScheme, 19 | textTheme: textTheme, 20 | ).copyWith( 21 | accentTextTheme: textTheme, 22 | primaryTextTheme: textTheme, 23 | cursorColor: colorScheme.secondary, 24 | textSelectionHandleColor: colorScheme.secondary); 25 | 26 | return themeData.copyWith( 27 | appBarTheme: AppBarTheme(elevation: 0, color: colorScheme.background), 28 | ); 29 | } -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - path_provider (0.0.1): 4 | - Flutter 5 | - path_provider_linux (0.0.1): 6 | - Flutter 7 | - path_provider_macos (0.0.1): 8 | - Flutter 9 | 10 | DEPENDENCIES: 11 | - Flutter (from `Flutter`) 12 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 13 | - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`) 14 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`) 15 | 16 | EXTERNAL SOURCES: 17 | Flutter: 18 | :path: Flutter 19 | path_provider: 20 | :path: ".symlinks/plugins/path_provider/ios" 21 | path_provider_linux: 22 | :path: ".symlinks/plugins/path_provider_linux/ios" 23 | path_provider_macos: 24 | :path: ".symlinks/plugins/path_provider_macos/ios" 25 | 26 | SPEC CHECKSUMS: 27 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 28 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 29 | path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4 30 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0 31 | 32 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a 33 | 34 | COCOAPODS: 1.9.1 35 | -------------------------------------------------------------------------------- /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:fluttercity/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 | -------------------------------------------------------------------------------- /lib/typer_texts.dart: -------------------------------------------------------------------------------- 1 | import 'package:animated_text_kit/animated_text_kit.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:google_fonts/google_fonts.dart'; 4 | 5 | class FlutterCityTitle extends StatelessWidget { 6 | const FlutterCityTitle({ 7 | Key key, 8 | }) : super(key: key); 9 | 10 | @override 11 | Widget build(BuildContext context) { 12 | return ColorizeAnimatedTextKit( 13 | text: ["FLUTTER CITY"], 14 | pause: Duration(milliseconds: 3000), 15 | textStyle: GoogleFonts.audiowide( 16 | fontWeight: FontWeight.bold, fontSize: 24), 17 | repeatForever: true, 18 | colors: [ 19 | Color(0xffff19de), 20 | Color(0xff00e7fb), 21 | Color(0xff6b38e7), 22 | ], 23 | ); 24 | } 25 | } 26 | 27 | class TyperText extends StatelessWidget { 28 | const TyperText( 29 | this.text, { 30 | this.style, 31 | this.pause = const Duration(days: 1), 32 | Key key, 33 | }) : super(key: key); 34 | 35 | final String text; 36 | final TextStyle style; 37 | final Duration pause; 38 | 39 | @override 40 | Widget build(BuildContext context) { 41 | return TyperAnimatedTextKit( 42 | speed: Duration(milliseconds: 100), 43 | pause: pause, 44 | text: [ 45 | text, 46 | ], 47 | textStyle: style, 48 | textAlign: TextAlign.start, 49 | alignment: AlignmentDirectional.topStart, 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /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 | fluttercity 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 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.fluttercity" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 9 | 10 | 11 | 15 | 22 | 26 | 30 | 35 | 39 | 40 | 41 | 42 | 43 | 44 | 46 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: fluttercity 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | 27 | google_fonts: ^1.1.0 28 | flutter_icons: ^1.1.0 29 | flutter_spinkit: ^4.1.2+1 30 | animated_text_kit: ^2.2.0 31 | 32 | 33 | # The following adds the Cupertino Icons font to your application. 34 | # Use with the CupertinoIcons class for iOS style icons. 35 | cupertino_icons: ^0.1.3 36 | 37 | dev_dependencies: 38 | flutter_test: 39 | sdk: flutter 40 | 41 | # For information on the generic Dart part of this file, see the 42 | # following page: https://dart.dev/tools/pub/pubspec 43 | 44 | # The following section is specific to Flutter. 45 | flutter: 46 | 47 | # The following line ensures that the Material Icons font is 48 | # included with your application, so that you can use the icons in 49 | # the material Icons class. 50 | uses-material-design: true 51 | 52 | # To add assets to your application, add an assets section, like this: 53 | # assets: 54 | # - images/a_dot_burr.jpeg 55 | # - images/a_dot_ham.jpeg 56 | 57 | # An image asset can refer to one or more resolution-specific "variants", see 58 | # https://flutter.dev/assets-and-images/#resolution-aware. 59 | 60 | # For details regarding adding assets from package dependencies, see 61 | # https://flutter.dev/assets-and-images/#from-packages 62 | 63 | # To add custom fonts to your application, add a fonts section here, 64 | # in this "flutter" section. Each entry in this list should have a 65 | # "family" key with the font family name, and a "fonts" key with a 66 | # list giving the asset and other descriptors for the font. For 67 | # example: 68 | # fonts: 69 | # - family: Schyler 70 | # fonts: 71 | # - asset: fonts/Schyler-Regular.ttf 72 | # - asset: fonts/Schyler-Italic.ttf 73 | # style: italic 74 | # - family: Trajan Pro 75 | # fonts: 76 | # - asset: fonts/TrajanPro.ttf 77 | # - asset: fonts/TrajanPro_Bold.ttf 78 | # weight: 700 79 | # 80 | # For details regarding fonts from package dependencies, 81 | # see https://flutter.dev/custom-fonts/#from-packages 82 | -------------------------------------------------------------------------------- /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 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |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 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | post_install do |installer| 82 | installer.pods_project.targets.each do |target| 83 | target.build_configurations.each do |config| 84 | config.build_settings['ENABLE_BITCODE'] = 'NO' 85 | end 86 | end 87 | end 88 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/selection_panel.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:math'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 6 | import 'package:fluttercity/cyber_shape.dart'; 7 | import 'package:fluttercity/metro_line.dart'; 8 | import 'package:fluttercity/typer_texts.dart'; 9 | 10 | class SelectionPanel extends StatelessWidget { 11 | const SelectionPanel(this.metroLine, this.stopIndex, {Key key}) 12 | : super(key: key); 13 | 14 | final MetroLine metroLine; 15 | final int stopIndex; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | StopInfo stopInfo = metroLine.stopInfos[stopIndex]; 20 | String stopName = stopInfo.name; 21 | Color stopColor = metroLine.color; 22 | 23 | Widget child = Container( 24 | margin: EdgeInsets.only(left: 20, bottom: 10, right: 20), 25 | padding: EdgeInsets.symmetric( 26 | vertical: 8.0, 27 | horizontal: 20.0, 28 | ), 29 | width: double.infinity, 30 | decoration: ShapeDecoration( 31 | shape: buildCyberBorderOutline(radius: 20), 32 | color: Theme.of(context).primaryColor), 33 | child: Row( 34 | children: [ 35 | Expanded( 36 | child: Column( 37 | crossAxisAlignment: CrossAxisAlignment.start, 38 | mainAxisSize: MainAxisSize.min, 39 | children: [ 40 | Text( 41 | "Station", 42 | style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold), 43 | ), 44 | SizedBox(height: 3), 45 | Row( 46 | children: [ 47 | StopColorIndicator(stopColor), 48 | SizedBox( 49 | width: 5, 50 | ), 51 | Text( 52 | stopName, 53 | style: TextStyle(fontSize: 16), 54 | ), 55 | ], 56 | ), 57 | SizedBox(height: 15), 58 | NextTrainDetails(), 59 | ], 60 | ), 61 | ), 62 | SpinKitWave( 63 | color: Colors.white, 64 | size: 40.0, 65 | ), 66 | ], 67 | ), 68 | ); 69 | 70 | return TweenAnimationBuilder( 71 | tween: Tween(begin: Offset(0, 1), end: Offset.zero), 72 | duration: Duration(milliseconds: 400), 73 | builder: (context, Offset offset, child) { 74 | return FractionalTranslation( 75 | translation: offset, 76 | child: child, 77 | ); 78 | }, 79 | child: child, 80 | ); 81 | } 82 | } 83 | 84 | class StopColorIndicator extends StatelessWidget { 85 | const StopColorIndicator(this.color, {Key key}) : super(key: key); 86 | 87 | final Color color; 88 | 89 | @override 90 | Widget build(BuildContext context) { 91 | return Container( 92 | width: 15, 93 | height: 15, 94 | decoration: ShapeDecoration( 95 | shape: BeveledRectangleBorder(borderRadius: BorderRadius.circular(100)), 96 | color: color, 97 | ), 98 | ); 99 | } 100 | } 101 | 102 | class NextTrainDetails extends StatefulWidget { 103 | const NextTrainDetails({Key key}) : super(key: key); 104 | 105 | @override 106 | _NextTrainDetailsState createState() => _NextTrainDetailsState(); 107 | } 108 | 109 | class _NextTrainDetailsState extends State { 110 | Timer timer; 111 | 112 | int secondsRemaining; 113 | int trainId; 114 | 115 | @override 116 | void initState() { 117 | super.initState(); 118 | Random r = Random(); 119 | trainId = 1000 + r.nextInt(9000); 120 | secondsRemaining = 5 + r.nextInt(5); 121 | timer = Timer.periodic(Duration(milliseconds: 1000), (timer) { 122 | setState(() { 123 | secondsRemaining -= 1; 124 | }); 125 | }); 126 | } 127 | 128 | @override 129 | void dispose() { 130 | timer.cancel(); 131 | super.dispose(); 132 | } 133 | 134 | @override 135 | Widget build(BuildContext context) { 136 | return Row( 137 | children: [ 138 | if (secondsRemaining >= 0) ...[ 139 | Text("Train $trainId arriving in "), 140 | TyperText( 141 | "$secondsRemaining", 142 | key: ValueKey(secondsRemaining), 143 | ), 144 | Text(" seconds") 145 | ] else 146 | TyperText( 147 | "Train $trainId is leaving...", 148 | ), 149 | ], 150 | ); 151 | } 152 | } 153 | -------------------------------------------------------------------------------- /lib/metro_line.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | List allMetroLines = [ 4 | lineA, 5 | lineB, 6 | lineC, 7 | lineD, 8 | lineE, 9 | ]; 10 | 11 | MetroLine lineA = MetroLineBuilder(Color(0xffccf041), Offset(0.1, 0.1), [ 12 | StopInfo("Mobile"), 13 | StopInfo("Web", nameOffset: Offset(-12, -35)), 14 | StopInfo("Desktop", nameOffset: Offset(20, -7)), 15 | StopInfo("The Unknown", nameOffset: Offset(20, -7)), 16 | ]).addTrack( 17 | [ 18 | Offset(0.1, 0.25), 19 | Offset(0.25, 0.25), 20 | Offset(0.38, 0.3), 21 | ], 22 | ).addTrack( 23 | [ 24 | Offset(0.4, 0.4), 25 | Offset(0.4, 0.6), 26 | Offset(0.75, 0.7), 27 | Offset(0.75, 0.8), 28 | ], 29 | ).addTrack( 30 | [Offset(0.75, 0.95)], 31 | ).build(); 32 | 33 | MetroLine lineB = MetroLineBuilder(Color(0xff00fcfc), Offset(0.2, 0.6), [ 34 | StopInfo("Provider", nameOffset: Offset(-25, 20)), 35 | StopInfo("Sqflite", nameOffset: Offset(-55, -7)), 36 | StopInfo("Bloc", nameOffset: Offset(-15, -35)), 37 | StopInfo("Firebase", nameOffset: Offset(-35, 20)), 38 | ]).addTrack( 39 | [ 40 | Offset(0.2, 0.3), 41 | ], 42 | ).addTrack( 43 | [ 44 | Offset(0.2, 0.15), 45 | Offset(0.3, 0.15), 46 | ], 47 | ).addTrack( 48 | [Offset(0.95, 0.35)], 49 | ).build(); 50 | 51 | MetroLine lineC = MetroLineBuilder(Color(0xffed00fa), Offset(0.25, 0.9), [ 52 | StopInfo("Row", nameOffset: Offset(-17, 20)), 53 | StopInfo("Column", nameOffset: Offset(20, -10)), 54 | StopInfo("Stack", nameOffset: Offset(-15, -35)), 55 | ]).addTrack( 56 | [ 57 | Offset(0.25, 0.8), 58 | Offset(0.33, 0.77), 59 | Offset(0.33, 0.7), 60 | ], 61 | ).addTrack( 62 | [ 63 | Offset(0.33, 0.5), 64 | Offset(0.55, 0.35), 65 | Offset(0.6, 0.15), 66 | ], 67 | ).build(); 68 | 69 | MetroLine lineD = MetroLineBuilder(Color(0xffff5a83), Offset(0.12, 0.5), [ 70 | StopInfo("Design", nameOffset: Offset(-40, 20)), 71 | StopInfo("Test", nameOffset: Offset(-12, -35)), 72 | StopInfo("Develop", nameOffset: Offset(-5, 20)), 73 | StopInfo("Release"), 74 | ]).addTrack( 75 | [ 76 | Offset(0.12, 0.4), 77 | Offset(0.29, 0.4), 78 | ], 79 | ).addTrack( 80 | [ 81 | Offset(0.65, 0.4), 82 | Offset(0.65, 0.35), 83 | Offset(0.7, 0.32), 84 | ], 85 | ).addTrack( 86 | [ 87 | Offset(0.9, 0.24), 88 | Offset(0.90, 0.17), 89 | ], 90 | ).build(); 91 | 92 | MetroLine lineE = MetroLineBuilder(Color(0xFF1ad7a3), Offset(0.94, 0.6), [ 93 | StopInfo("Widget"), 94 | StopInfo("Element"), 95 | StopInfo("Render Object", nameOffset: Offset(-35, 20)), 96 | ]).addTrack( 97 | [ 98 | Offset(0.71, 0.55), 99 | ], 100 | ).addTrack( 101 | [ 102 | Offset(0.57, 0.55), 103 | Offset(0.51, 0.8), 104 | ], 105 | ).build(); 106 | 107 | class MetroLine { 108 | final Color color; 109 | final List tracks; 110 | final List stops; 111 | final List stopInfos; 112 | 113 | MetroLine(this.color, this.tracks, this.stops, this.stopInfos); 114 | 115 | List getPoints() { 116 | List points = [tracks.first.points.first]; 117 | for (var segment in tracks) { 118 | points.addAll(segment.points.skip(1)); 119 | } 120 | return points; 121 | } 122 | } 123 | 124 | class MetroTrack { 125 | final List points; 126 | Map trainsMap = {}; 127 | 128 | MetroTrack(this.points); 129 | 130 | double distance() { 131 | return getDistances().reduce((a, b) => a + b); 132 | } 133 | 134 | List getDistances() { 135 | List distances = []; 136 | for (var i = 0; i < points.length - 1; i++) { 137 | Offset o1 = points[i]; 138 | Offset o2 = points[i + 1]; 139 | distances.add((o1 - o2).distance); 140 | } 141 | return distances; 142 | } 143 | } 144 | 145 | class MetroLineBuilder { 146 | final Color color; 147 | List _stops = []; 148 | List _tracks = []; 149 | MetroTrack _currentTrack; 150 | final List stopInfos; 151 | 152 | MetroLineBuilder(this.color, Offset start, this.stopInfos) { 153 | _stops.add(start); 154 | _currentTrack = MetroTrack([start]); 155 | } 156 | 157 | MetroLineBuilder addTrack(List offsets) { 158 | _currentTrack.points.addAll(offsets); 159 | _tracks.add(_currentTrack); 160 | 161 | Offset last = offsets.last; 162 | _stops.add(last); 163 | 164 | _currentTrack = MetroTrack([last]); 165 | 166 | return this; 167 | } 168 | 169 | MetroLine build() { 170 | return MetroLine(color, _tracks, _stops, stopInfos); 171 | } 172 | } 173 | 174 | class StopInfo { 175 | final String name; 176 | final Offset nameOffset; 177 | 178 | StopInfo(this.name, {this.nameOffset}); 179 | } 180 | -------------------------------------------------------------------------------- /lib/metro_map.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:fluttercity/metro_line.dart'; 4 | import 'dart:math'; 5 | 6 | double stopRadius = 15; 7 | double lineStroke = 8; 8 | 9 | class MetroMapPainter extends CustomPainter { 10 | final List metroLines; 11 | final MetroLine selectedMetroLine; 12 | final int selectedMetroStopIndex; 13 | 14 | /// Keeps track of the Flutter Sity start animation 15 | final double initializationAnimValue; 16 | 17 | /// Keeps track of the selected stop animation 18 | final double selectionAnimValue; 19 | 20 | MetroMapPainter( 21 | this.metroLines, 22 | this.selectedMetroLine, 23 | this.selectedMetroStopIndex, 24 | this.initializationAnimValue, 25 | this.selectionAnimValue); 26 | 27 | Color lineColorBasedOnStatus(MetroLine line) { 28 | double luminance = line.color.computeLuminance(); 29 | int gray = (luminance * 255).round(); 30 | Color grayColor = Color.fromRGBO(gray, gray, gray, 1.0); 31 | 32 | return Color.lerp(grayColor, line.color, initializationAnimValue); 33 | } 34 | 35 | @override 36 | void paint(Canvas canvas, Size size) { 37 | for (var metroLine in metroLines) { 38 | paintMetroLine(canvas, size, metroLine); 39 | } 40 | } 41 | 42 | void paintMetroLine(Canvas canvas, Size size, MetroLine metroLine) { 43 | var paint = Paint() 44 | ..color = lineColorBasedOnStatus(metroLine).withOpacity(metroLine == selectedMetroLine ? 1.0 : 0.75) 45 | ..strokeWidth = lineStroke 46 | ..strokeCap = StrokeCap.round 47 | ..style = PaintingStyle.stroke; 48 | 49 | Path path = Path(); 50 | final points = metroLine.getPoints(); 51 | 52 | path.moveTo(points.first.dx * size.width, points.first.dy * size.height); 53 | for (var point in points.skip(1)) { 54 | path.lineTo(point.dx * size.width, point.dy * size.height); 55 | } 56 | 57 | canvas.drawPath(path, paint); 58 | 59 | for (var track in metroLine.tracks) { 60 | if (track.trainsMap.isNotEmpty) { 61 | paintTrains(canvas, size, metroLine, track); 62 | } 63 | } 64 | 65 | paintStops(canvas, size, metroLine); 66 | } 67 | 68 | void paintStops(Canvas canvas, Size size, MetroLine metroLine) { 69 | var paint = Paint() 70 | ..strokeWidth = lineStroke 71 | ..strokeCap = StrokeCap.round 72 | ..style = PaintingStyle.fill; 73 | Color metroLineColor = lineColorBasedOnStatus(metroLine); 74 | for (var i = 0; i < metroLine.stops.length; i++) { 75 | var stop = metroLine.stops[i]; 76 | bool selected = 77 | metroLine == selectedMetroLine && i == selectedMetroStopIndex; 78 | 79 | double radius = stopRadius; 80 | if (selected) { 81 | radius = radius + selectionAnimValue * 3; 82 | } 83 | 84 | paint.color = selected ? Colors.white : metroLineColor; 85 | canvas.drawCircle( 86 | Offset(stop.dx * size.width, stop.dy * size.height), 87 | radius, 88 | paint, 89 | ); 90 | 91 | Color tmpColor = paint.color; 92 | paint.color = selected ? metroLineColor : Colors.white; 93 | canvas.drawCircle( 94 | Offset(stop.dx * size.width, stop.dy * size.height), 95 | radius / (selected ? 1.5 : 3), 96 | paint, 97 | ); 98 | paint.color = tmpColor; 99 | } 100 | } 101 | 102 | void paintTrains( 103 | Canvas canvas, Size size, MetroLine metroLine, MetroTrack track) { 104 | var paint = Paint() 105 | ..color = metroLine.color 106 | ..strokeWidth = 15 107 | ..strokeCap = StrokeCap.round 108 | ..style = PaintingStyle.fill; 109 | 110 | final double trackDistance = track.distance(); 111 | final List segmentDistances = track.getDistances(); 112 | 113 | for (var entry in track.trainsMap.entries) { 114 | final totalTrackPercent = entry.value; 115 | final int segmentIndex = 116 | getSegmentIndex(segmentDistances, trackDistance, totalTrackPercent); 117 | 118 | final double prevDistancePercent = (segmentIndex == 0 119 | ? 0 120 | : segmentDistances.sublist(0, segmentIndex).reduce((a, b) => a + b) / 121 | trackDistance); 122 | 123 | final double a1 = prevDistancePercent; 124 | final double a2 = a1 + segmentDistances[segmentIndex] / trackDistance; 125 | final double localPercent = mapRange(totalTrackPercent, a1, a2, 0, 1); 126 | 127 | final Offset start = track.points[segmentIndex]; 128 | final Offset end = track.points[segmentIndex + 1]; 129 | 130 | final Offset dif = (end - start); 131 | 132 | final Offset normDif = dif / dif.distance; 133 | 134 | final double traveledDistance = 135 | localPercent * segmentDistances[segmentIndex]; 136 | final offsetRel = (start + normDif * traveledDistance); 137 | final offset = offsetRel.scale(size.width, size.height); 138 | 139 | const fullTrainWidth = 35.0; 140 | double trainWidth = fullTrainWidth; 141 | if (segmentIndex == segmentDistances.length - 1) { 142 | double distanceToEnd = (end - offsetRel) 143 | .scale(size.width, size.height) 144 | .distance; 145 | trainWidth = min(trainWidth, distanceToEnd); 146 | } 147 | 148 | var rect = offset & Size(trainWidth, 20); 149 | rect = rect.shift(Offset(-rect.width / 2, -rect.height / 2)); 150 | 151 | Offset diff = (end - start).scale(size.width, size.height); 152 | 153 | final angle = atan2(diff.dy, diff.dx); 154 | canvas.save(); 155 | canvas.translate(rect.center.dx, rect.center.dy); 156 | canvas.rotate(angle); 157 | canvas.translate(-rect.center.dx, -rect.center.dy); 158 | 159 | canvas.drawRect(rect, paint); 160 | canvas.restore(); 161 | } 162 | } 163 | 164 | double mapRange( 165 | double valueToMap, double a1, double a2, double b1, double b2) { 166 | return b1 + (((valueToMap - a1) * (b2 - b1)) / (a2 - a1)); 167 | } 168 | 169 | int getSegmentIndex(List distances, double trackDistance, 170 | double traveledDistancePercent) { 171 | double traveled = traveledDistancePercent; 172 | 173 | for (var i = 0; i < distances.length; i++) { 174 | final segmentDistance = distances[i]; 175 | final percent = segmentDistance / trackDistance; 176 | 177 | traveled -= percent; 178 | 179 | if (traveled <= 0) { 180 | return i; 181 | } 182 | } 183 | 184 | return distances.length - 1; 185 | } 186 | 187 | @override 188 | bool shouldRepaint(CustomPainter oldDelegate) { 189 | return true; 190 | } 191 | } 192 | -------------------------------------------------------------------------------- /lib/cyber_shape.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'dart:math' as math; 3 | 4 | enum BorderType { 5 | rounded, 6 | beveled, 7 | } 8 | 9 | ShapeBorder buildCyberBorderOutline({ 10 | Color color = Colors.white, 11 | double radius = 10, 12 | double thickness = 1.2, 13 | }) { 14 | return CyberBorder( 15 | borderRadius: BorderRadius.only( 16 | topLeft: Radius.circular(radius), 17 | bottomLeft: Radius.circular(radius), 18 | bottomRight: Radius.circular(radius), 19 | ), 20 | //borderRadius: BorderRadius.circular(11), 21 | bottomLeft: BorderType.rounded, 22 | side: BorderSide( 23 | color: color, 24 | width: thickness, 25 | ), 26 | ); 27 | } 28 | 29 | ShapeBorder buildCyberBorder({ 30 | double radius = 10, 31 | }) { 32 | return CyberBorder( 33 | borderRadius: BorderRadius.only( 34 | topLeft: Radius.circular(radius), 35 | bottomLeft: Radius.circular(radius), 36 | bottomRight: Radius.circular(radius), 37 | ), 38 | bottomLeft: BorderType.rounded, 39 | ); 40 | } 41 | 42 | class CyberBorder extends ShapeBorder { 43 | /// Creates a rounded rectangle border. 44 | /// 45 | /// The arguments must not be null. 46 | const CyberBorder({ 47 | this.side = BorderSide.none, 48 | this.borderRadius = BorderRadius.zero, 49 | this.topLeft, 50 | this.topRight, 51 | this.bottomLeft, 52 | this.bottomRight, 53 | }) : assert(side != null), 54 | assert(borderRadius != null); 55 | 56 | final BorderSide side; 57 | 58 | /// The radii for each corner. 59 | final BorderRadiusGeometry borderRadius; 60 | 61 | final BorderType topLeft; 62 | final BorderType topRight; 63 | final BorderType bottomLeft; 64 | final BorderType bottomRight; 65 | 66 | @override 67 | EdgeInsetsGeometry get dimensions { 68 | return EdgeInsets.all(side.width); 69 | } 70 | 71 | @override 72 | ShapeBorder scale(double t) { 73 | return CyberBorder( 74 | side: side.scale(t), 75 | borderRadius: borderRadius * t, 76 | topLeft: topLeft, 77 | topRight: topRight, 78 | bottomLeft: bottomLeft, 79 | bottomRight: bottomRight, 80 | ); 81 | } 82 | 83 | @override 84 | Path getInnerPath(Rect rect, {TextDirection textDirection}) { 85 | return getCyberPath( 86 | borderRadius.resolve(textDirection).toRRect(rect).deflate(side.width), 87 | bottomLeft: bottomLeft, 88 | bottomRight: bottomRight, 89 | topLeft: topLeft, 90 | topRight: topRight, 91 | ); 92 | } 93 | 94 | @override 95 | Path getOuterPath(Rect rect, {TextDirection textDirection}) { 96 | return getCyberPath( 97 | borderRadius.resolve(textDirection).toRRect(rect), 98 | bottomLeft: bottomLeft, 99 | bottomRight: bottomRight, 100 | topLeft: topLeft, 101 | topRight: topRight, 102 | ); 103 | } 104 | 105 | @override 106 | void paint(Canvas canvas, Rect rect, {TextDirection textDirection}) { 107 | if (rect.isEmpty) return; 108 | switch (side.style) { 109 | case BorderStyle.none: 110 | break; 111 | case BorderStyle.solid: 112 | final Path path = getOuterPath(rect, textDirection: textDirection) 113 | ..addPath( 114 | getInnerPath(rect, textDirection: textDirection), Offset.zero); 115 | canvas.drawPath(path, side.toPaint()); 116 | break; 117 | } 118 | return; 119 | } 120 | 121 | @override 122 | bool operator ==(Object other) { 123 | if (other.runtimeType != runtimeType) return false; 124 | return other is CyberBorder && 125 | other.side == side && 126 | other.borderRadius == borderRadius && 127 | other.topLeft == topLeft && 128 | other.topRight == topRight && 129 | other.bottomLeft == bottomLeft && 130 | other.bottomRight == bottomRight; 131 | } 132 | 133 | @override 134 | int get hashCode => hashValues(side, borderRadius); 135 | } 136 | 137 | Path getCyberPath( 138 | RRect rrect, { 139 | BorderType topLeft, 140 | BorderType topRight, 141 | BorderType bottomLeft, 142 | BorderType bottomRight, 143 | }) { 144 | final Offset centerLeft = Offset(rrect.left, rrect.center.dy); 145 | final Offset centerRight = Offset(rrect.right, rrect.center.dy); 146 | final Offset centerTop = Offset(rrect.center.dx, rrect.top); 147 | final Offset centerBottom = Offset(rrect.center.dx, rrect.bottom); 148 | 149 | Path path = Path(); 150 | for (var i = 0; i < 4; i++) { 151 | Offset o1, o2; 152 | if (i == 0) { 153 | // top left 154 | final double tlRadiusX = math.max(0.0, rrect.tlRadiusX); 155 | final double tlRadiusY = math.max(0.0, rrect.tlRadiusY); 156 | o1 = Offset(rrect.left, math.min(centerLeft.dy, rrect.top + tlRadiusY)); 157 | o2 = Offset(math.min(centerTop.dx, rrect.left + tlRadiusX), rrect.top); 158 | } else if (i == 1) { 159 | // top right 160 | final double trRadiusX = math.max(0.0, rrect.trRadiusX); 161 | final double trRadiusY = math.max(0.0, rrect.trRadiusY); 162 | o1 = Offset(math.max(centerTop.dx, rrect.right - trRadiusX), rrect.top); 163 | o2 = Offset(rrect.right, math.min(centerRight.dy, rrect.top + trRadiusY)); 164 | } else if (i == 2) { 165 | // bottom right 166 | final double brRadiusX = math.max(0.0, rrect.brRadiusX); 167 | final double brRadiusY = math.max(0.0, rrect.brRadiusY); 168 | o1 = Offset( 169 | rrect.right, math.max(centerRight.dy, rrect.bottom - brRadiusY)); 170 | o2 = Offset( 171 | math.max(centerBottom.dx, rrect.right - brRadiusX), rrect.bottom); 172 | } else { 173 | // bottom left 174 | final double blRadiusX = math.max(0.0, rrect.blRadiusX); 175 | final double blRadiusY = math.max(0.0, rrect.blRadiusY); 176 | o1 = Offset( 177 | math.min(centerBottom.dx, rrect.left + blRadiusX), rrect.bottom); 178 | o2 = 179 | Offset(rrect.left, math.max(centerLeft.dy, rrect.bottom - blRadiusY)); 180 | } 181 | 182 | if (i == 0) { 183 | path.moveTo(o1.dx, o1.dy); 184 | } else { 185 | path.lineTo(o1.dx, o1.dy); 186 | } 187 | 188 | Radius radius; 189 | BorderType borderType; 190 | if (i == 0) { 191 | radius = rrect.tlRadius; 192 | borderType = topLeft; 193 | } else if (i == 1) { 194 | radius = rrect.trRadius; 195 | borderType = topRight; 196 | } else if (i == 2) { 197 | radius = rrect.brRadius; 198 | borderType = bottomRight; 199 | } else { 200 | radius = rrect.blRadius; 201 | borderType = bottomLeft; 202 | } 203 | 204 | if (borderType == BorderType.rounded) { 205 | path.arcToPoint(o2, radius: radius); 206 | } else { 207 | path.lineTo(o2.dx, o2.dy); 208 | } 209 | } 210 | path.close(); 211 | return path; 212 | } 213 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | animated_text_kit: 5 | dependency: "direct main" 6 | description: 7 | name: animated_text_kit 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.2.0" 11 | archive: 12 | dependency: transitive 13 | description: 14 | name: archive 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.0.13" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.4.1" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.0.0" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.3" 46 | collection: 47 | dependency: transitive 48 | description: 49 | name: collection 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.14.12" 53 | convert: 54 | dependency: transitive 55 | description: 56 | name: convert 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.1" 60 | crypto: 61 | dependency: transitive 62 | description: 63 | name: crypto 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.4" 67 | cupertino_icons: 68 | dependency: "direct main" 69 | description: 70 | name: cupertino_icons 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "0.1.3" 74 | file: 75 | dependency: transitive 76 | description: 77 | name: file 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "5.2.1" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_icons: 87 | dependency: "direct main" 88 | description: 89 | name: flutter_icons 90 | url: "https://pub.dartlang.org" 91 | source: hosted 92 | version: "1.1.0" 93 | flutter_spinkit: 94 | dependency: "direct main" 95 | description: 96 | name: flutter_spinkit 97 | url: "https://pub.dartlang.org" 98 | source: hosted 99 | version: "4.1.2+1" 100 | flutter_test: 101 | dependency: "direct dev" 102 | description: flutter 103 | source: sdk 104 | version: "0.0.0" 105 | google_fonts: 106 | dependency: "direct main" 107 | description: 108 | name: google_fonts 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.1.0" 112 | http: 113 | dependency: transitive 114 | description: 115 | name: http 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.12.1" 119 | http_parser: 120 | dependency: transitive 121 | description: 122 | name: http_parser 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "3.1.4" 126 | image: 127 | dependency: transitive 128 | description: 129 | name: image 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "2.1.12" 133 | intl: 134 | dependency: transitive 135 | description: 136 | name: intl 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "0.16.1" 140 | matcher: 141 | dependency: transitive 142 | description: 143 | name: matcher 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.12.6" 147 | meta: 148 | dependency: transitive 149 | description: 150 | name: meta 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "1.1.8" 154 | path: 155 | dependency: transitive 156 | description: 157 | name: path 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "1.6.4" 161 | path_provider: 162 | dependency: transitive 163 | description: 164 | name: path_provider 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "1.6.11" 168 | path_provider_linux: 169 | dependency: transitive 170 | description: 171 | name: path_provider_linux 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "0.0.1+1" 175 | path_provider_macos: 176 | dependency: transitive 177 | description: 178 | name: path_provider_macos 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "0.0.4+3" 182 | path_provider_platform_interface: 183 | dependency: transitive 184 | description: 185 | name: path_provider_platform_interface 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "1.0.2" 189 | pedantic: 190 | dependency: transitive 191 | description: 192 | name: pedantic 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.9.0" 196 | petitparser: 197 | dependency: transitive 198 | description: 199 | name: petitparser 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "2.4.0" 203 | platform: 204 | dependency: transitive 205 | description: 206 | name: platform 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "2.2.1" 210 | plugin_platform_interface: 211 | dependency: transitive 212 | description: 213 | name: plugin_platform_interface 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "1.0.2" 217 | process: 218 | dependency: transitive 219 | description: 220 | name: process 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "3.0.13" 224 | quiver: 225 | dependency: transitive 226 | description: 227 | name: quiver 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "2.1.3" 231 | sky_engine: 232 | dependency: transitive 233 | description: flutter 234 | source: sdk 235 | version: "0.0.99" 236 | source_span: 237 | dependency: transitive 238 | description: 239 | name: source_span 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "1.7.0" 243 | stack_trace: 244 | dependency: transitive 245 | description: 246 | name: stack_trace 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.9.3" 250 | stream_channel: 251 | dependency: transitive 252 | description: 253 | name: stream_channel 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.0.0" 257 | string_scanner: 258 | dependency: transitive 259 | description: 260 | name: string_scanner 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.0.5" 264 | term_glyph: 265 | dependency: transitive 266 | description: 267 | name: term_glyph 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "1.1.0" 271 | test_api: 272 | dependency: transitive 273 | description: 274 | name: test_api 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "0.2.15" 278 | typed_data: 279 | dependency: transitive 280 | description: 281 | name: typed_data 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "1.1.6" 285 | vector_math: 286 | dependency: transitive 287 | description: 288 | name: vector_math 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "2.0.8" 292 | xdg_directories: 293 | dependency: transitive 294 | description: 295 | name: xdg_directories 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "0.1.0" 299 | xml: 300 | dependency: transitive 301 | description: 302 | name: xml 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "3.6.1" 306 | sdks: 307 | dart: ">=2.7.0 <3.0.0" 308 | flutter: ">=1.17.0 <2.0.0" 309 | -------------------------------------------------------------------------------- /lib/metro_page.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'dart:math'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter_spinkit/flutter_spinkit.dart'; 6 | import 'package:google_fonts/google_fonts.dart'; 7 | import 'package:fluttercity/cyber_shape.dart'; 8 | import 'package:fluttercity/metro_line.dart'; 9 | import 'package:fluttercity/metro_map.dart'; 10 | import 'package:fluttercity/selection_panel.dart'; 11 | import 'package:fluttercity/typer_texts.dart'; 12 | 13 | class MetroPage extends StatelessWidget { 14 | const MetroPage({Key key}) : super(key: key); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | appBar: AppBar( 20 | title: FlutterCityTitle(), 21 | centerTitle: true, 22 | ), 23 | body: MetroCanvas(), 24 | ); 25 | } 26 | } 27 | 28 | class MetroCanvas extends StatefulWidget { 29 | const MetroCanvas({Key key}) : super(key: key); 30 | 31 | @override 32 | _MetroCanvasState createState() => _MetroCanvasState(); 33 | } 34 | 35 | class _MetroCanvasState extends State 36 | with TickerProviderStateMixin { 37 | int _globalTrainId = 0; 38 | 39 | MetroLine selectedMetroLine; 40 | int selectedMetroStopIndex; 41 | 42 | AnimationController initAnimController, selectedStopAnimController; 43 | List trainAnimControllers = []; 44 | Timer spawnerTimer; 45 | 46 | List overlays = []; 47 | 48 | GlobalKey canvasKey = GlobalKey(); 49 | 50 | @override 51 | void initState() { 52 | super.initState(); 53 | // Controller for the metro initialization 54 | initAnimController = AnimationController( 55 | vsync: this, 56 | duration: Duration(milliseconds: 2500), 57 | ); 58 | initAnimController.addListener(() { 59 | setState(() {}); 60 | }); 61 | 62 | // Controller for the metro stop selection 63 | selectedStopAnimController = AnimationController( 64 | vsync: this, 65 | duration: Duration(milliseconds: 700), 66 | ); 67 | selectedStopAnimController.addListener(() { 68 | setState(() {}); 69 | }); 70 | } 71 | 72 | void startMetroStation() { 73 | // Get canvas size in the next frame 74 | final box = canvasKey.currentContext.findRenderObject() as RenderBox; 75 | 76 | initializeOverlays(allMetroLines, box.size.width, box.size.height); 77 | initializeSpawner(box.size); 78 | } 79 | 80 | @override 81 | void dispose() { 82 | initAnimController.dispose(); 83 | selectedStopAnimController.dispose(); 84 | spawnerTimer?.cancel(); 85 | trainAnimControllers.forEach((c) { 86 | c.dispose(); 87 | }); 88 | super.dispose(); 89 | } 90 | 91 | @override 92 | Widget build(BuildContext context) { 93 | const double bottomPanelHeight = 105; 94 | 95 | return Stack( 96 | children: [ 97 | BackgroundGrid(), 98 | Padding( 99 | padding: const EdgeInsets.only(bottom: bottomPanelHeight), 100 | child: Stack( 101 | key: canvasKey, 102 | children: [ 103 | CustomPaint( 104 | painter: MetroMapPainter( 105 | allMetroLines, 106 | selectedMetroLine, 107 | selectedMetroStopIndex, 108 | initAnimController.value, 109 | selectedStopAnimController.value, 110 | ), 111 | child: Container(), 112 | ), 113 | ...overlays, 114 | ], 115 | ), 116 | ), 117 | Align( 118 | alignment: Alignment.bottomCenter, 119 | child: Container( 120 | height: bottomPanelHeight, 121 | child: (selectedMetroStopIndex != null) 122 | ? KeyedSubtree( 123 | key: ValueKey( 124 | "${selectedMetroLine.hashCode} $selectedMetroStopIndex"), 125 | child: SelectionPanel( 126 | selectedMetroLine, 127 | selectedMetroStopIndex, 128 | ), 129 | ) 130 | : null, 131 | ), 132 | ), 133 | Align( 134 | alignment: Alignment.bottomCenter, 135 | child: Container( 136 | height: bottomPanelHeight, 137 | child: Center( 138 | child: buildStartButton(), 139 | ), 140 | ), 141 | ), 142 | ], 143 | ); 144 | } 145 | 146 | void initializeSpawner(Size size) { 147 | Random r = Random(); 148 | // Spawn trains at the beginning 149 | trySpawnTrains(r, 0.8); 150 | 151 | // Periodically try to spawn certain objects with different probabilities 152 | spawnerTimer = Timer.periodic(Duration(milliseconds: 300), (timer) { 153 | trySpawnTrains(r, 0.3); 154 | 155 | // Spawn event 156 | if (r.nextDouble() < 0.13) { 157 | const eventDuration = Duration(milliseconds: 3000); 158 | 159 | final int tick = timer.tick; 160 | Widget eventOverlay = Positioned( 161 | key: ValueKey(tick), 162 | left: r.nextDouble() * size.width, 163 | top: r.nextDouble() * size.height, 164 | child: buildEventRipple(eventDuration), 165 | ); 166 | overlays.add(eventOverlay); 167 | 168 | Timer(eventDuration, () { 169 | overlays.removeWhere((w) => w.key == ValueKey(tick)); 170 | }); 171 | } 172 | 173 | setState(() {}); 174 | }); 175 | } 176 | 177 | void trySpawnTrains(Random r, double chance) { 178 | for (var metroLine in allMetroLines) { 179 | if (r.nextDouble() < chance) { 180 | int trackIndex = r.nextInt(metroLine.tracks.length); 181 | int millis = 1000 + r.nextInt(3000); 182 | addTrain(metroLine.tracks[trackIndex], Duration(milliseconds: millis)); 183 | } 184 | } 185 | } 186 | 187 | void addTrain(MetroTrack track, Duration duration) { 188 | // Each train needs an animation controller 189 | final controller = AnimationController(vsync: this, duration: duration); 190 | 191 | final currentTrainId = _globalTrainId; 192 | _globalTrainId++; 193 | 194 | track.trainsMap[currentTrainId] = 0; 195 | controller.addListener(() { 196 | final t = controller.value; 197 | 198 | if (t == 1.0) { 199 | // Dispose the controller once the animation finishes 200 | track.trainsMap.remove(currentTrainId); 201 | controller.dispose(); 202 | } else { 203 | // Update the train animation value 204 | track.trainsMap[currentTrainId] = t; 205 | } 206 | 207 | setState(() {}); 208 | }); 209 | 210 | controller.forward(); 211 | 212 | trainAnimControllers.add(controller); 213 | } 214 | 215 | void initializeOverlays( 216 | List metroLines, double width, double height) async { 217 | Random r = Random(); 218 | for (var metroLine in metroLines..shuffle()) { 219 | // Add stop labels at different points in time, so that they are not in sync 220 | await Future.delayed(Duration(milliseconds: 500)); 221 | 222 | for (int i = 0; i < metroLine.stops.length; i++) { 223 | StopInfo info = metroLine.stopInfos[i]; 224 | Offset stopPosRel = metroLine.stops[i]; 225 | Offset stopPos = stopPosRel.scale(width, height); 226 | 227 | Offset stopNamePos = stopPos; 228 | if (info.nameOffset != null) { 229 | stopNamePos += info.nameOffset; 230 | } else { 231 | // Default offset 232 | stopNamePos += Offset(-20, -39); 233 | } 234 | 235 | // Stop name 236 | overlays.add( 237 | Positioned( 238 | top: stopNamePos.dy, 239 | left: stopNamePos.dx, 240 | child: TyperText( 241 | info.name, 242 | pause: Duration(milliseconds: 2000 + r.nextInt(2000)), 243 | ), 244 | ), 245 | ); 246 | 247 | // Gesture detector 248 | const size = 36.0; 249 | overlays.add( 250 | Positioned( 251 | top: stopPos.dy - size / 2, 252 | left: stopPos.dx - size / 2, 253 | child: GestureDetector( 254 | onTap: () { 255 | setState(() { 256 | selectedMetroLine = metroLine; 257 | selectedMetroStopIndex = i; 258 | }); 259 | selectedStopAnimController.repeat(reverse: true); 260 | }, 261 | child: Container( 262 | height: size, 263 | width: size, 264 | color: Colors.transparent, 265 | ), 266 | ), 267 | ), 268 | ); 269 | } 270 | setState(() {}); 271 | } 272 | } 273 | 274 | Widget buildStartButton() { 275 | return Opacity( 276 | opacity: 1 - initAnimController.value, 277 | child: FlatButton( 278 | padding: EdgeInsets.symmetric( 279 | vertical: 20.0, 280 | horizontal: 40.0, 281 | ), 282 | shape: buildCyberBorder(radius: 25), 283 | child: Text( 284 | "START", 285 | style: GoogleFonts.audiowide( 286 | fontWeight: FontWeight.bold, 287 | fontSize: 26, 288 | color: Colors.black, 289 | ), 290 | ), 291 | color: Colors.white, 292 | onPressed: initAnimController.isAnimating 293 | ? () {} 294 | : () { 295 | initAnimController 296 | .forward() 297 | .then((value) => startMetroStation()); 298 | }, 299 | ), 300 | ); 301 | } 302 | 303 | Widget buildEventRipple(Duration eventDuration) { 304 | return SpinKitRipple( 305 | color: Theme.of(context).accentColor, 306 | size: 80.0, 307 | borderWidth: 10, 308 | duration: 309 | Duration(milliseconds: (eventDuration.inMilliseconds / 2).round()), 310 | ); 311 | } 312 | } 313 | 314 | class BackgroundGrid extends StatelessWidget { 315 | const BackgroundGrid({Key key}) : super(key: key); 316 | 317 | @override 318 | Widget build(BuildContext context) { 319 | return GridPaper( 320 | interval: 70, 321 | divisions: 4, 322 | subdivisions: 1, 323 | color: Colors.white24, 324 | child: Container(), 325 | ); 326 | } 327 | } 328 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | B32C104144D6B96EE19E5A9B /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7D3D4F27517D1CB6B405F36 /* Pods_Runner.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 43AF0C48256F66C98680C811 /* 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 = ""; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 85358DBF2A921409D2F675B0 /* 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 = ""; }; 41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | B7D3D4F27517D1CB6B405F36 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | BBF456A1CD06EF9D390F8CB1 /* 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 = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | B32C104144D6B96EE19E5A9B /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 51B14274C6E41D6C0274AEB8 /* Pods */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 85358DBF2A921409D2F675B0 /* Pods-Runner.debug.xcconfig */, 68 | BBF456A1CD06EF9D390F8CB1 /* Pods-Runner.release.xcconfig */, 69 | 43AF0C48256F66C98680C811 /* Pods-Runner.profile.xcconfig */, 70 | ); 71 | name = Pods; 72 | path = Pods; 73 | sourceTree = ""; 74 | }; 75 | 9740EEB11CF90186004384FC /* Flutter */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 80 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 81 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 82 | ); 83 | name = Flutter; 84 | sourceTree = ""; 85 | }; 86 | 97C146E51CF9000F007C117D = { 87 | isa = PBXGroup; 88 | children = ( 89 | 9740EEB11CF90186004384FC /* Flutter */, 90 | 97C146F01CF9000F007C117D /* Runner */, 91 | 97C146EF1CF9000F007C117D /* Products */, 92 | 51B14274C6E41D6C0274AEB8 /* Pods */, 93 | BE749D982FB741BF2A89E6BD /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 109 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 110 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 111 | 97C147021CF9000F007C117D /* Info.plist */, 112 | 97C146F11CF9000F007C117D /* Supporting Files */, 113 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 114 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 115 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 116 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | ); 125 | name = "Supporting Files"; 126 | sourceTree = ""; 127 | }; 128 | BE749D982FB741BF2A89E6BD /* Frameworks */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | B7D3D4F27517D1CB6B405F36 /* Pods_Runner.framework */, 132 | ); 133 | name = Frameworks; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 97C146ED1CF9000F007C117D /* Runner */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 142 | buildPhases = ( 143 | C0AC65CB1EE752FDC78C783E /* [CP] Check Pods Manifest.lock */, 144 | 9740EEB61CF901F6004384FC /* Run Script */, 145 | 97C146EA1CF9000F007C117D /* Sources */, 146 | 97C146EB1CF9000F007C117D /* Frameworks */, 147 | 97C146EC1CF9000F007C117D /* Resources */, 148 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 150 | 2CF0D077E7211C94CA74EE15 /* [CP] Embed Pods Frameworks */, 151 | ); 152 | buildRules = ( 153 | ); 154 | dependencies = ( 155 | ); 156 | name = Runner; 157 | productName = Runner; 158 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | /* End PBXNativeTarget section */ 162 | 163 | /* Begin PBXProject section */ 164 | 97C146E61CF9000F007C117D /* Project object */ = { 165 | isa = PBXProject; 166 | attributes = { 167 | LastUpgradeCheck = 1020; 168 | ORGANIZATIONNAME = ""; 169 | TargetAttributes = { 170 | 97C146ED1CF9000F007C117D = { 171 | CreatedOnToolsVersion = 7.3.1; 172 | LastSwiftMigration = 1100; 173 | }; 174 | }; 175 | }; 176 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 177 | compatibilityVersion = "Xcode 9.3"; 178 | developmentRegion = en; 179 | hasScannedForEncodings = 0; 180 | knownRegions = ( 181 | en, 182 | Base, 183 | ); 184 | mainGroup = 97C146E51CF9000F007C117D; 185 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 186 | projectDirPath = ""; 187 | projectRoot = ""; 188 | targets = ( 189 | 97C146ED1CF9000F007C117D /* Runner */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 97C146EC1CF9000F007C117D /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 200 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 201 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 202 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | }; 206 | /* End PBXResourcesBuildPhase section */ 207 | 208 | /* Begin PBXShellScriptBuildPhase section */ 209 | 2CF0D077E7211C94CA74EE15 /* [CP] Embed Pods Frameworks */ = { 210 | isa = PBXShellScriptBuildPhase; 211 | buildActionMask = 2147483647; 212 | files = ( 213 | ); 214 | inputPaths = ( 215 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 216 | "${PODS_ROOT}/../Flutter/Flutter.framework", 217 | "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework", 218 | ); 219 | name = "[CP] Embed Pods Frameworks"; 220 | outputPaths = ( 221 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 222 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework", 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | shellPath = /bin/sh; 226 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 227 | showEnvVarsInLog = 0; 228 | }; 229 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 230 | isa = PBXShellScriptBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | ); 234 | inputPaths = ( 235 | ); 236 | name = "Thin Binary"; 237 | outputPaths = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 242 | }; 243 | 9740EEB61CF901F6004384FC /* Run Script */ = { 244 | isa = PBXShellScriptBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputPaths = ( 249 | ); 250 | name = "Run Script"; 251 | outputPaths = ( 252 | ); 253 | runOnlyForDeploymentPostprocessing = 0; 254 | shellPath = /bin/sh; 255 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 256 | }; 257 | C0AC65CB1EE752FDC78C783E /* [CP] Check Pods Manifest.lock */ = { 258 | isa = PBXShellScriptBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | inputFileListPaths = ( 263 | ); 264 | inputPaths = ( 265 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 266 | "${PODS_ROOT}/Manifest.lock", 267 | ); 268 | name = "[CP] Check Pods Manifest.lock"; 269 | outputFileListPaths = ( 270 | ); 271 | outputPaths = ( 272 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | shellPath = /bin/sh; 276 | 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"; 277 | showEnvVarsInLog = 0; 278 | }; 279 | /* End PBXShellScriptBuildPhase section */ 280 | 281 | /* Begin PBXSourcesBuildPhase section */ 282 | 97C146EA1CF9000F007C117D /* Sources */ = { 283 | isa = PBXSourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 287 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | /* End PBXSourcesBuildPhase section */ 292 | 293 | /* Begin PBXVariantGroup section */ 294 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 295 | isa = PBXVariantGroup; 296 | children = ( 297 | 97C146FB1CF9000F007C117D /* Base */, 298 | ); 299 | name = Main.storyboard; 300 | sourceTree = ""; 301 | }; 302 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 303 | isa = PBXVariantGroup; 304 | children = ( 305 | 97C147001CF9000F007C117D /* Base */, 306 | ); 307 | name = LaunchScreen.storyboard; 308 | sourceTree = ""; 309 | }; 310 | /* End PBXVariantGroup section */ 311 | 312 | /* Begin XCBuildConfiguration section */ 313 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 314 | isa = XCBuildConfiguration; 315 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 316 | buildSettings = { 317 | ALWAYS_SEARCH_USER_PATHS = NO; 318 | CLANG_ANALYZER_NONNULL = YES; 319 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 320 | CLANG_CXX_LIBRARY = "libc++"; 321 | CLANG_ENABLE_MODULES = YES; 322 | CLANG_ENABLE_OBJC_ARC = YES; 323 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 324 | CLANG_WARN_BOOL_CONVERSION = YES; 325 | CLANG_WARN_COMMA = YES; 326 | CLANG_WARN_CONSTANT_CONVERSION = YES; 327 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 328 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 329 | CLANG_WARN_EMPTY_BODY = YES; 330 | CLANG_WARN_ENUM_CONVERSION = YES; 331 | CLANG_WARN_INFINITE_RECURSION = YES; 332 | CLANG_WARN_INT_CONVERSION = YES; 333 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 334 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 335 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 336 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 337 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 338 | CLANG_WARN_STRICT_PROTOTYPES = YES; 339 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 340 | CLANG_WARN_UNREACHABLE_CODE = YES; 341 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 342 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 343 | COPY_PHASE_STRIP = NO; 344 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 345 | ENABLE_NS_ASSERTIONS = NO; 346 | ENABLE_STRICT_OBJC_MSGSEND = YES; 347 | GCC_C_LANGUAGE_STANDARD = gnu99; 348 | GCC_NO_COMMON_BLOCKS = YES; 349 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 350 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 351 | GCC_WARN_UNDECLARED_SELECTOR = YES; 352 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 353 | GCC_WARN_UNUSED_FUNCTION = YES; 354 | GCC_WARN_UNUSED_VARIABLE = YES; 355 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 356 | MTL_ENABLE_DEBUG_INFO = NO; 357 | SDKROOT = iphoneos; 358 | SUPPORTED_PLATFORMS = iphoneos; 359 | TARGETED_DEVICE_FAMILY = "1,2"; 360 | VALIDATE_PRODUCT = YES; 361 | }; 362 | name = Profile; 363 | }; 364 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 365 | isa = XCBuildConfiguration; 366 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 367 | buildSettings = { 368 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 369 | CLANG_ENABLE_MODULES = YES; 370 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 371 | ENABLE_BITCODE = NO; 372 | FRAMEWORK_SEARCH_PATHS = ( 373 | "$(inherited)", 374 | "$(PROJECT_DIR)/Flutter", 375 | ); 376 | INFOPLIST_FILE = Runner/Info.plist; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 378 | LIBRARY_SEARCH_PATHS = ( 379 | "$(inherited)", 380 | "$(PROJECT_DIR)/Flutter", 381 | ); 382 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fluttercity; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 385 | SWIFT_VERSION = 5.0; 386 | VERSIONING_SYSTEM = "apple-generic"; 387 | }; 388 | name = Profile; 389 | }; 390 | 97C147031CF9000F007C117D /* Debug */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 412 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 414 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 415 | CLANG_WARN_STRICT_PROTOTYPES = YES; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | DEBUG_INFORMATION_FORMAT = dwarf; 422 | ENABLE_STRICT_OBJC_MSGSEND = YES; 423 | ENABLE_TESTABILITY = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu99; 425 | GCC_DYNAMIC_NO_PIC = NO; 426 | GCC_NO_COMMON_BLOCKS = YES; 427 | GCC_OPTIMIZATION_LEVEL = 0; 428 | GCC_PREPROCESSOR_DEFINITIONS = ( 429 | "DEBUG=1", 430 | "$(inherited)", 431 | ); 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | SDKROOT = iphoneos; 442 | TARGETED_DEVICE_FAMILY = "1,2"; 443 | }; 444 | name = Debug; 445 | }; 446 | 97C147041CF9000F007C117D /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 449 | buildSettings = { 450 | ALWAYS_SEARCH_USER_PATHS = NO; 451 | CLANG_ANALYZER_NONNULL = YES; 452 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 453 | CLANG_CXX_LIBRARY = "libc++"; 454 | CLANG_ENABLE_MODULES = YES; 455 | CLANG_ENABLE_OBJC_ARC = YES; 456 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 457 | CLANG_WARN_BOOL_CONVERSION = YES; 458 | CLANG_WARN_COMMA = YES; 459 | CLANG_WARN_CONSTANT_CONVERSION = YES; 460 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 461 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 462 | CLANG_WARN_EMPTY_BODY = YES; 463 | CLANG_WARN_ENUM_CONVERSION = YES; 464 | CLANG_WARN_INFINITE_RECURSION = YES; 465 | CLANG_WARN_INT_CONVERSION = YES; 466 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 467 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 468 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 469 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 470 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 471 | CLANG_WARN_STRICT_PROTOTYPES = YES; 472 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 473 | CLANG_WARN_UNREACHABLE_CODE = YES; 474 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 475 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 476 | COPY_PHASE_STRIP = NO; 477 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 478 | ENABLE_NS_ASSERTIONS = NO; 479 | ENABLE_STRICT_OBJC_MSGSEND = YES; 480 | GCC_C_LANGUAGE_STANDARD = gnu99; 481 | GCC_NO_COMMON_BLOCKS = YES; 482 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 483 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 484 | GCC_WARN_UNDECLARED_SELECTOR = YES; 485 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 486 | GCC_WARN_UNUSED_FUNCTION = YES; 487 | GCC_WARN_UNUSED_VARIABLE = YES; 488 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 489 | MTL_ENABLE_DEBUG_INFO = NO; 490 | SDKROOT = iphoneos; 491 | SUPPORTED_PLATFORMS = iphoneos; 492 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 493 | TARGETED_DEVICE_FAMILY = "1,2"; 494 | VALIDATE_PRODUCT = YES; 495 | }; 496 | name = Release; 497 | }; 498 | 97C147061CF9000F007C117D /* Debug */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 501 | buildSettings = { 502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 503 | CLANG_ENABLE_MODULES = YES; 504 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 505 | ENABLE_BITCODE = NO; 506 | FRAMEWORK_SEARCH_PATHS = ( 507 | "$(inherited)", 508 | "$(PROJECT_DIR)/Flutter", 509 | ); 510 | INFOPLIST_FILE = Runner/Info.plist; 511 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 512 | LIBRARY_SEARCH_PATHS = ( 513 | "$(inherited)", 514 | "$(PROJECT_DIR)/Flutter", 515 | ); 516 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fluttercity; 517 | PRODUCT_NAME = "$(TARGET_NAME)"; 518 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 519 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 520 | SWIFT_VERSION = 5.0; 521 | VERSIONING_SYSTEM = "apple-generic"; 522 | }; 523 | name = Debug; 524 | }; 525 | 97C147071CF9000F007C117D /* Release */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 528 | buildSettings = { 529 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 530 | CLANG_ENABLE_MODULES = YES; 531 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 532 | ENABLE_BITCODE = NO; 533 | FRAMEWORK_SEARCH_PATHS = ( 534 | "$(inherited)", 535 | "$(PROJECT_DIR)/Flutter", 536 | ); 537 | INFOPLIST_FILE = Runner/Info.plist; 538 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 539 | LIBRARY_SEARCH_PATHS = ( 540 | "$(inherited)", 541 | "$(PROJECT_DIR)/Flutter", 542 | ); 543 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fluttercity; 544 | PRODUCT_NAME = "$(TARGET_NAME)"; 545 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 546 | SWIFT_VERSION = 5.0; 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 | --------------------------------------------------------------------------------