├── .gitignore ├── .metadata ├── .run ├── Development.run.xml └── Production.run.xml ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── ic_launcher-playstore.png │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_tips_and_tricks │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-hdpi │ │ │ └── logo.png │ │ │ ├── drawable-xhdpi │ │ │ └── logo.png │ │ │ ├── drawable-xxhdpi │ │ │ └── logo.png │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ └── ic_launcher.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher_foreground.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher_foreground.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets └── logo.svg ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings ├── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h └── RunnerTests │ └── RunnerTests.swift ├── lib ├── app │ ├── app.dart │ ├── assets.dart │ ├── config.dart │ └── theme.dart ├── backend │ └── backend.dart ├── features │ ├── main │ │ ├── main_screen.dart │ │ └── widgets │ │ │ ├── app_top_bar.dart │ │ │ └── bottom_nav.dart │ ├── section_a │ │ └── section_a.dart │ ├── section_b │ │ └── section_b.dart │ ├── section_c │ │ └── section_c.dart │ ├── section_d │ │ └── section_d.dart │ └── splash │ │ └── splash_screen.dart ├── main_dev.dart ├── main_prod.dart ├── models │ └── user.dart ├── utils │ └── when_async.dart └── widgets │ ├── animated_indexed_stack.dart │ ├── child_builder.dart │ ├── common.dart │ └── show_debug_paint.dart ├── pubspec.lock └── pubspec.yaml /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | 46 | # Let's not commit these 47 | lib/firebase_options.dart 48 | android/app/google-services.json 49 | ios/firebase_app_id_file.json 50 | ios/Runner/GoogleService-Info.plist 51 | -------------------------------------------------------------------------------- /.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. 5 | 6 | version: 7 | revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 17 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 18 | - platform: android 19 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 20 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 21 | - platform: ios 22 | create_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 23 | base_revision: 682aa387cfe4fbd71ccd5418b2c2a075729a1c66 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /.run/Development.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.run/Production.run.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flutter Tips and Tricks 2 | _Simon Lightfoot - FlutterCon23 Talk_ 3 | 4 | [Talk Slides](https://docs.google.com/presentation/d/1az1lb-p-aI6abv6w-jgMXKCKbl6qwfEwwR98mbJavbE/edit?usp=sharing) 5 | 6 | [Talk Video](https://www.droidcon.com/2023/08/06/flutter-tips-and-tricks/) 7 | 8 | ## Getting started 9 | 10 | Did you clone this repo and want to run it? 11 | Then you'll need to create a Firebase project and run: `flutterfire configure` 12 | See: https://firebase.google.com/docs/flutter/setup 13 | 14 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /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 | namespace "com.example.flutter_tips_and_tricks" 30 | compileSdkVersion flutter.compileSdkVersion 31 | ndkVersion flutter.ndkVersion 32 | 33 | compileOptions { 34 | sourceCompatibility JavaVersion.VERSION_1_8 35 | targetCompatibility JavaVersion.VERSION_1_8 36 | } 37 | 38 | kotlinOptions { 39 | jvmTarget = '1.8' 40 | } 41 | 42 | sourceSets { 43 | main.java.srcDirs += 'src/main/kotlin' 44 | } 45 | 46 | defaultConfig { 47 | applicationId "com.example.flutter_tips_and_tricks" 48 | minSdkVersion flutter.minSdkVersion 49 | targetSdkVersion flutter.targetSdkVersion 50 | versionCode flutterVersionCode.toInteger() 51 | versionName flutterVersionName 52 | } 53 | 54 | buildTypes { 55 | release { 56 | // TODO: Add your own signing config for the release build. 57 | // Signing with the debug keys for now, so `flutter run --release` works. 58 | signingConfig signingConfigs.debug 59 | } 60 | } 61 | } 62 | 63 | flutter { 64 | source '../..' 65 | } 66 | 67 | dependencies { 68 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 69 | } 70 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 14 | 18 | 22 | 23 | 24 | 25 | 26 | 27 | 29 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /android/app/src/main/ic_launcher-playstore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/ic_launcher-playstore.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_tips_and_tricks/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_tips_and_tricks 2 | 3 | import android.os.Build 4 | import android.os.Bundle 5 | import androidx.core.view.WindowCompat 6 | import io.flutter.embedding.android.FlutterActivity 7 | 8 | class MainActivity : FlutterActivity() { 9 | override fun onCreate(savedInstanceState: Bundle?) { 10 | // Aligns the Flutter view vertically with the window. 11 | WindowCompat.setDecorFitsSystemWindows(getWindow(), false) 12 | 13 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { 14 | // Disable the Android splash screen fade out animation to avoid 15 | // a flicker before the similar frame is drawn in Flutter. 16 | splashScreen.setOnExitAnimationListener { it.remove() } 17 | } 18 | 19 | super.onCreate(savedInstanceState) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-hdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/drawable-hdpi/logo.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/drawable-xhdpi/logo.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-xxhdpi/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/drawable-xxhdpi/logo.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #1FB7F8 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 16 | 17 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.7.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.3.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 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 | tasks.register("clean", Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 14 | 16 | 35 | 39 | 43 | 47 | 51 | 55 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 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 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 97C146E61CF9000F007C117D /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 97C146ED1CF9000F007C117D; 25 | remoteInfo = Runner; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXCopyFilesBuildPhase section */ 30 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 31 | isa = PBXCopyFilesBuildPhase; 32 | buildActionMask = 2147483647; 33 | dstPath = ""; 34 | dstSubfolderSpec = 10; 35 | files = ( 36 | ); 37 | name = "Embed Frameworks"; 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXCopyFilesBuildPhase section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 44 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 47 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 48 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 57 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | /* End PBXFrameworksBuildPhase section */ 69 | 70 | /* Begin PBXGroup section */ 71 | 9740EEB11CF90186004384FC /* Flutter */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 75 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 77 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 78 | ); 79 | name = Flutter; 80 | sourceTree = ""; 81 | }; 82 | 331C8082294A63A400263BE5 /* RunnerTests */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 331C807B294A618700263BE5 /* RunnerTests.swift */, 86 | ); 87 | path = RunnerTests; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 331C8082294A63A400263BE5 /* RunnerTests */, 97 | ); 98 | sourceTree = ""; 99 | }; 100 | 97C146EF1CF9000F007C117D /* Products */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 97C146EE1CF9000F007C117D /* Runner.app */, 104 | 331C8081294A63A400263BE5 /* RunnerTests.xctest */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 113 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 114 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 115 | 97C147021CF9000F007C117D /* Info.plist */, 116 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 117 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 118 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 119 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 120 | ); 121 | path = Runner; 122 | sourceTree = ""; 123 | }; 124 | /* End PBXGroup section */ 125 | 126 | /* Begin PBXNativeTarget section */ 127 | 331C8080294A63A400263BE5 /* RunnerTests */ = { 128 | isa = PBXNativeTarget; 129 | buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; 130 | buildPhases = ( 131 | 331C807D294A63A400263BE5 /* Sources */, 132 | 331C807E294A63A400263BE5 /* Frameworks */, 133 | 331C807F294A63A400263BE5 /* Resources */, 134 | ); 135 | buildRules = ( 136 | ); 137 | dependencies = ( 138 | 331C8086294A63A400263BE5 /* PBXTargetDependency */, 139 | ); 140 | name = RunnerTests; 141 | productName = RunnerTests; 142 | productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; 143 | productType = "com.apple.product-type.bundle.unit-test"; 144 | }; 145 | 97C146ED1CF9000F007C117D /* Runner */ = { 146 | isa = PBXNativeTarget; 147 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 148 | buildPhases = ( 149 | 9740EEB61CF901F6004384FC /* Run Script */, 150 | 97C146EA1CF9000F007C117D /* Sources */, 151 | 97C146EB1CF9000F007C117D /* Frameworks */, 152 | 97C146EC1CF9000F007C117D /* Resources */, 153 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 154 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 155 | ); 156 | buildRules = ( 157 | ); 158 | dependencies = ( 159 | ); 160 | name = Runner; 161 | productName = Runner; 162 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 163 | productType = "com.apple.product-type.application"; 164 | }; 165 | /* End PBXNativeTarget section */ 166 | 167 | /* Begin PBXProject section */ 168 | 97C146E61CF9000F007C117D /* Project object */ = { 169 | isa = PBXProject; 170 | attributes = { 171 | LastUpgradeCheck = 1300; 172 | ORGANIZATIONNAME = ""; 173 | TargetAttributes = { 174 | 331C8080294A63A400263BE5 = { 175 | CreatedOnToolsVersion = 14.0; 176 | TestTargetID = 97C146ED1CF9000F007C117D; 177 | }; 178 | 97C146ED1CF9000F007C117D = { 179 | CreatedOnToolsVersion = 7.3.1; 180 | LastSwiftMigration = 1100; 181 | }; 182 | }; 183 | }; 184 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 185 | compatibilityVersion = "Xcode 9.3"; 186 | developmentRegion = en; 187 | hasScannedForEncodings = 0; 188 | knownRegions = ( 189 | en, 190 | Base, 191 | ); 192 | mainGroup = 97C146E51CF9000F007C117D; 193 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 194 | projectDirPath = ""; 195 | projectRoot = ""; 196 | targets = ( 197 | 97C146ED1CF9000F007C117D /* Runner */, 198 | 331C8080294A63A400263BE5 /* RunnerTests */, 199 | ); 200 | }; 201 | /* End PBXProject section */ 202 | 203 | /* Begin PBXResourcesBuildPhase section */ 204 | 331C807F294A63A400263BE5 /* Resources */ = { 205 | isa = PBXResourcesBuildPhase; 206 | buildActionMask = 2147483647; 207 | files = ( 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | 97C146EC1CF9000F007C117D /* Resources */ = { 212 | isa = PBXResourcesBuildPhase; 213 | buildActionMask = 2147483647; 214 | files = ( 215 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 216 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 217 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 218 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 219 | ); 220 | runOnlyForDeploymentPostprocessing = 0; 221 | }; 222 | /* End PBXResourcesBuildPhase section */ 223 | 224 | /* Begin PBXShellScriptBuildPhase section */ 225 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 226 | isa = PBXShellScriptBuildPhase; 227 | alwaysOutOfDate = 1; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", 233 | ); 234 | name = "Thin Binary"; 235 | outputPaths = ( 236 | ); 237 | runOnlyForDeploymentPostprocessing = 0; 238 | shellPath = /bin/sh; 239 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 240 | }; 241 | 9740EEB61CF901F6004384FC /* Run Script */ = { 242 | isa = PBXShellScriptBuildPhase; 243 | alwaysOutOfDate = 1; 244 | buildActionMask = 2147483647; 245 | files = ( 246 | ); 247 | inputPaths = ( 248 | ); 249 | name = "Run Script"; 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 255 | }; 256 | /* End PBXShellScriptBuildPhase section */ 257 | 258 | /* Begin PBXSourcesBuildPhase section */ 259 | 331C807D294A63A400263BE5 /* Sources */ = { 260 | isa = PBXSourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, 264 | ); 265 | runOnlyForDeploymentPostprocessing = 0; 266 | }; 267 | 97C146EA1CF9000F007C117D /* Sources */ = { 268 | isa = PBXSourcesBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 272 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXSourcesBuildPhase section */ 277 | 278 | /* Begin PBXTargetDependency section */ 279 | 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { 280 | isa = PBXTargetDependency; 281 | target = 97C146ED1CF9000F007C117D /* Runner */; 282 | targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; 283 | }; 284 | /* End PBXTargetDependency section */ 285 | 286 | /* Begin PBXVariantGroup section */ 287 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 288 | isa = PBXVariantGroup; 289 | children = ( 290 | 97C146FB1CF9000F007C117D /* Base */, 291 | ); 292 | name = Main.storyboard; 293 | sourceTree = ""; 294 | }; 295 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 296 | isa = PBXVariantGroup; 297 | children = ( 298 | 97C147001CF9000F007C117D /* Base */, 299 | ); 300 | name = LaunchScreen.storyboard; 301 | sourceTree = ""; 302 | }; 303 | /* End PBXVariantGroup section */ 304 | 305 | /* Begin XCBuildConfiguration section */ 306 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 307 | isa = XCBuildConfiguration; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | CLANG_ANALYZER_NONNULL = YES; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_COMMA = YES; 318 | CLANG_WARN_CONSTANT_CONVERSION = YES; 319 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 320 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 321 | CLANG_WARN_EMPTY_BODY = YES; 322 | CLANG_WARN_ENUM_CONVERSION = YES; 323 | CLANG_WARN_INFINITE_RECURSION = YES; 324 | CLANG_WARN_INT_CONVERSION = YES; 325 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 327 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 328 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 329 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 330 | CLANG_WARN_STRICT_PROTOTYPES = YES; 331 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 332 | CLANG_WARN_UNREACHABLE_CODE = YES; 333 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 334 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 335 | COPY_PHASE_STRIP = NO; 336 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 337 | ENABLE_NS_ASSERTIONS = NO; 338 | ENABLE_STRICT_OBJC_MSGSEND = YES; 339 | GCC_C_LANGUAGE_STANDARD = gnu99; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 342 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 343 | GCC_WARN_UNDECLARED_SELECTOR = YES; 344 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 345 | GCC_WARN_UNUSED_FUNCTION = YES; 346 | GCC_WARN_UNUSED_VARIABLE = YES; 347 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 348 | MTL_ENABLE_DEBUG_INFO = NO; 349 | SDKROOT = iphoneos; 350 | SUPPORTED_PLATFORMS = iphoneos; 351 | TARGETED_DEVICE_FAMILY = "1,2"; 352 | VALIDATE_PRODUCT = YES; 353 | }; 354 | name = Profile; 355 | }; 356 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 357 | isa = XCBuildConfiguration; 358 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 359 | buildSettings = { 360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 361 | CLANG_ENABLE_MODULES = YES; 362 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 363 | ENABLE_BITCODE = NO; 364 | INFOPLIST_FILE = Runner/Info.plist; 365 | LD_RUNPATH_SEARCH_PATHS = ( 366 | "$(inherited)", 367 | "@executable_path/Frameworks", 368 | ); 369 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks; 370 | PRODUCT_NAME = "$(TARGET_NAME)"; 371 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 372 | SWIFT_VERSION = 5.0; 373 | VERSIONING_SYSTEM = "apple-generic"; 374 | }; 375 | name = Profile; 376 | }; 377 | 331C8088294A63A400263BE5 /* Debug */ = { 378 | isa = XCBuildConfiguration; 379 | baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */; 380 | buildSettings = { 381 | BUNDLE_LOADER = "$(TEST_HOST)"; 382 | CODE_SIGN_STYLE = Automatic; 383 | CURRENT_PROJECT_VERSION = 1; 384 | GENERATE_INFOPLIST_FILE = YES; 385 | MARKETING_VERSION = 1.0; 386 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks.RunnerTests; 387 | PRODUCT_NAME = "$(TARGET_NAME)"; 388 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 389 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 390 | SWIFT_VERSION = 5.0; 391 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 392 | }; 393 | name = Debug; 394 | }; 395 | 331C8089294A63A400263BE5 /* Release */ = { 396 | isa = XCBuildConfiguration; 397 | baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */; 398 | buildSettings = { 399 | BUNDLE_LOADER = "$(TEST_HOST)"; 400 | CODE_SIGN_STYLE = Automatic; 401 | CURRENT_PROJECT_VERSION = 1; 402 | GENERATE_INFOPLIST_FILE = YES; 403 | MARKETING_VERSION = 1.0; 404 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks.RunnerTests; 405 | PRODUCT_NAME = "$(TARGET_NAME)"; 406 | SWIFT_VERSION = 5.0; 407 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 408 | }; 409 | name = Release; 410 | }; 411 | 331C808A294A63A400263BE5 /* Profile */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */; 414 | buildSettings = { 415 | BUNDLE_LOADER = "$(TEST_HOST)"; 416 | CODE_SIGN_STYLE = Automatic; 417 | CURRENT_PROJECT_VERSION = 1; 418 | GENERATE_INFOPLIST_FILE = YES; 419 | MARKETING_VERSION = 1.0; 420 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks.RunnerTests; 421 | PRODUCT_NAME = "$(TARGET_NAME)"; 422 | SWIFT_VERSION = 5.0; 423 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; 424 | }; 425 | name = Profile; 426 | }; 427 | 97C147031CF9000F007C117D /* Debug */ = { 428 | isa = XCBuildConfiguration; 429 | buildSettings = { 430 | ALWAYS_SEARCH_USER_PATHS = NO; 431 | CLANG_ANALYZER_NONNULL = YES; 432 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 433 | CLANG_CXX_LIBRARY = "libc++"; 434 | CLANG_ENABLE_MODULES = YES; 435 | CLANG_ENABLE_OBJC_ARC = YES; 436 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 437 | CLANG_WARN_BOOL_CONVERSION = YES; 438 | CLANG_WARN_COMMA = YES; 439 | CLANG_WARN_CONSTANT_CONVERSION = YES; 440 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 441 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 442 | CLANG_WARN_EMPTY_BODY = YES; 443 | CLANG_WARN_ENUM_CONVERSION = YES; 444 | CLANG_WARN_INFINITE_RECURSION = YES; 445 | CLANG_WARN_INT_CONVERSION = YES; 446 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 448 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 449 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 450 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 451 | CLANG_WARN_STRICT_PROTOTYPES = YES; 452 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 453 | CLANG_WARN_UNREACHABLE_CODE = YES; 454 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 455 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 456 | COPY_PHASE_STRIP = NO; 457 | DEBUG_INFORMATION_FORMAT = dwarf; 458 | ENABLE_STRICT_OBJC_MSGSEND = YES; 459 | ENABLE_TESTABILITY = YES; 460 | GCC_C_LANGUAGE_STANDARD = gnu99; 461 | GCC_DYNAMIC_NO_PIC = NO; 462 | GCC_NO_COMMON_BLOCKS = YES; 463 | GCC_OPTIMIZATION_LEVEL = 0; 464 | GCC_PREPROCESSOR_DEFINITIONS = ( 465 | "DEBUG=1", 466 | "$(inherited)", 467 | ); 468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 472 | GCC_WARN_UNUSED_FUNCTION = YES; 473 | GCC_WARN_UNUSED_VARIABLE = YES; 474 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 475 | MTL_ENABLE_DEBUG_INFO = YES; 476 | ONLY_ACTIVE_ARCH = YES; 477 | SDKROOT = iphoneos; 478 | TARGETED_DEVICE_FAMILY = "1,2"; 479 | }; 480 | name = Debug; 481 | }; 482 | 97C147041CF9000F007C117D /* Release */ = { 483 | isa = XCBuildConfiguration; 484 | buildSettings = { 485 | ALWAYS_SEARCH_USER_PATHS = NO; 486 | CLANG_ANALYZER_NONNULL = YES; 487 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 488 | CLANG_CXX_LIBRARY = "libc++"; 489 | CLANG_ENABLE_MODULES = YES; 490 | CLANG_ENABLE_OBJC_ARC = YES; 491 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 492 | CLANG_WARN_BOOL_CONVERSION = YES; 493 | CLANG_WARN_COMMA = YES; 494 | CLANG_WARN_CONSTANT_CONVERSION = YES; 495 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 496 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 497 | CLANG_WARN_EMPTY_BODY = YES; 498 | CLANG_WARN_ENUM_CONVERSION = YES; 499 | CLANG_WARN_INFINITE_RECURSION = YES; 500 | CLANG_WARN_INT_CONVERSION = YES; 501 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 502 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 503 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 504 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 505 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 506 | CLANG_WARN_STRICT_PROTOTYPES = YES; 507 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 508 | CLANG_WARN_UNREACHABLE_CODE = YES; 509 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 510 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 511 | COPY_PHASE_STRIP = NO; 512 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 513 | ENABLE_NS_ASSERTIONS = NO; 514 | ENABLE_STRICT_OBJC_MSGSEND = YES; 515 | GCC_C_LANGUAGE_STANDARD = gnu99; 516 | GCC_NO_COMMON_BLOCKS = YES; 517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 518 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 520 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 521 | GCC_WARN_UNUSED_FUNCTION = YES; 522 | GCC_WARN_UNUSED_VARIABLE = YES; 523 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 524 | MTL_ENABLE_DEBUG_INFO = NO; 525 | SDKROOT = iphoneos; 526 | SUPPORTED_PLATFORMS = iphoneos; 527 | SWIFT_COMPILATION_MODE = wholemodule; 528 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 529 | TARGETED_DEVICE_FAMILY = "1,2"; 530 | VALIDATE_PRODUCT = YES; 531 | }; 532 | name = Release; 533 | }; 534 | 97C147061CF9000F007C117D /* Debug */ = { 535 | isa = XCBuildConfiguration; 536 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 537 | buildSettings = { 538 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 539 | CLANG_ENABLE_MODULES = YES; 540 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 541 | ENABLE_BITCODE = NO; 542 | INFOPLIST_FILE = Runner/Info.plist; 543 | LD_RUNPATH_SEARCH_PATHS = ( 544 | "$(inherited)", 545 | "@executable_path/Frameworks", 546 | ); 547 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 550 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 551 | SWIFT_VERSION = 5.0; 552 | VERSIONING_SYSTEM = "apple-generic"; 553 | }; 554 | name = Debug; 555 | }; 556 | 97C147071CF9000F007C117D /* Release */ = { 557 | isa = XCBuildConfiguration; 558 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 559 | buildSettings = { 560 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 561 | CLANG_ENABLE_MODULES = YES; 562 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 563 | ENABLE_BITCODE = NO; 564 | INFOPLIST_FILE = Runner/Info.plist; 565 | LD_RUNPATH_SEARCH_PATHS = ( 566 | "$(inherited)", 567 | "@executable_path/Frameworks", 568 | ); 569 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterTipsAndTricks; 570 | PRODUCT_NAME = "$(TARGET_NAME)"; 571 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 572 | SWIFT_VERSION = 5.0; 573 | VERSIONING_SYSTEM = "apple-generic"; 574 | }; 575 | name = Release; 576 | }; 577 | /* End XCBuildConfiguration section */ 578 | 579 | /* Begin XCConfigurationList section */ 580 | 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { 581 | isa = XCConfigurationList; 582 | buildConfigurations = ( 583 | 331C8088294A63A400263BE5 /* Debug */, 584 | 331C8089294A63A400263BE5 /* Release */, 585 | 331C808A294A63A400263BE5 /* Profile */, 586 | ); 587 | defaultConfigurationIsVisible = 0; 588 | defaultConfigurationName = Release; 589 | }; 590 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 591 | isa = XCConfigurationList; 592 | buildConfigurations = ( 593 | 97C147031CF9000F007C117D /* Debug */, 594 | 97C147041CF9000F007C117D /* Release */, 595 | 249021D3217E4FDB00AE95B9 /* Profile */, 596 | ); 597 | defaultConfigurationIsVisible = 0; 598 | defaultConfigurationName = Release; 599 | }; 600 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 601 | isa = XCConfigurationList; 602 | buildConfigurations = ( 603 | 97C147061CF9000F007C117D /* Debug */, 604 | 97C147071CF9000F007C117D /* Release */, 605 | 249021D4217E4FDB00AE95B9 /* Profile */, 606 | ); 607 | defaultConfigurationIsVisible = 0; 608 | defaultConfigurationName = Release; 609 | }; 610 | /* End XCConfigurationList section */ 611 | }; 612 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 613 | } 614 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 43 | 49 | 50 | 51 | 52 | 53 | 63 | 65 | 71 | 72 | 73 | 74 | 80 | 82 | 88 | 89 | 90 | 91 | 93 | 94 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/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/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slightfoot/flutter_tips_and_tricks/da7b5b285c67d501dfd20de03e56642c95620dcc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter Tips And Tricks 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_tips_and_tricks 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /ios/RunnerTests/RunnerTests.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | import XCTest 4 | 5 | class RunnerTests: XCTestCase { 6 | 7 | func testExample() { 8 | // If you add code to the Runner application, consider adding tests here. 9 | // See https://developer.apple.com/documentation/xctest for more information about using XCTest. 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /lib/app/app.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | import 'package:firebase_crashlytics/firebase_crashlytics.dart'; 3 | import 'package:flutter/foundation.dart' show PlatformDispatcher; 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/rendering.dart' show RendererBinding; 6 | import 'package:flutter/services.dart'; 7 | import 'package:flutter_tips_and_tricks/app/config.dart'; 8 | import 'package:flutter_tips_and_tricks/app/theme.dart'; 9 | import 'package:flutter_tips_and_tricks/backend/backend.dart'; 10 | import 'package:flutter_tips_and_tricks/features/main/main_screen.dart'; 11 | import 'package:flutter_tips_and_tricks/features/splash/splash_screen.dart'; 12 | import 'package:flutter_tips_and_tricks/models/user.dart'; 13 | 14 | @immutable 15 | class FlutterTipsApp extends StatefulWidget { 16 | const FlutterTipsApp({ 17 | super.key, 18 | required this.config, 19 | }); 20 | 21 | final AppConfig config; 22 | 23 | @override 24 | State createState() => _FlutterTipsAppState(); 25 | } 26 | 27 | class _FlutterTipsAppState extends State { 28 | final _navigatorKey = GlobalKey(); 29 | Future? _splashLoader; 30 | Future? _appLoader; 31 | Backend? _backend; 32 | 33 | @override 34 | void initState() { 35 | super.initState(); 36 | RendererBinding.instance.deferFirstFrame(); 37 | } 38 | 39 | @override 40 | void didChangeDependencies() { 41 | super.didChangeDependencies(); 42 | _splashLoader ??= _loadSplash(context).whenComplete( 43 | () => RendererBinding.instance.allowFirstFrame(), 44 | ); 45 | _appLoader ??= _loadApp(context).whenComplete((){ 46 | if(mounted) { 47 | _navigatorKey.currentState!.pushReplacementNamed(MainScreen.routeName); 48 | } 49 | }); 50 | } 51 | 52 | Future _loadSplash(BuildContext context) async { 53 | await SplashScreen.precacheAssets(context); 54 | await SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); 55 | // await SystemChrome.setPreferredOrientations([ 56 | // DeviceOrientation.portraitUp, 57 | // DeviceOrientation.portraitDown, 58 | // ]); 59 | } 60 | 61 | Future _loadApp(BuildContext context) async { 62 | await Firebase.initializeApp(options: widget.config.firebaseOptions); 63 | if (widget.config.env == AppEnv.prod) { 64 | // Pass all uncaught "fatal" errors from the framework to Crashlytics 65 | FlutterError.onError = FirebaseCrashlytics.instance.recordFlutterFatalError; 66 | // Pass all uncaught asynchronous errors that aren't handled to Crashlytics 67 | PlatformDispatcher.instance.onError = (Object error, StackTrace stackTrace) { 68 | FirebaseCrashlytics.instance.recordError(error, stackTrace, fatal: true); 69 | return true; 70 | }; 71 | } 72 | _backend = await Backend.init(); 73 | // Delayed for demonstration purposes 74 | // await Future.delayed(const Duration(seconds: 2)); 75 | } 76 | 77 | @override 78 | void dispose() { 79 | _backend?.dispose(); 80 | super.dispose(); 81 | } 82 | 83 | @override 84 | Widget build(BuildContext context) { 85 | return AnnotatedRegion( 86 | value: appOverlayStyle, 87 | child: FutureBuilder( 88 | future: _appLoader, 89 | builder: (BuildContext context, AsyncSnapshot snapshot) { 90 | return MaterialApp( 91 | debugShowCheckedModeBanner: false, 92 | title: 'Flutter Tips and Tricks', 93 | theme: appTheme, 94 | navigatorKey: _navigatorKey, 95 | onGenerateRoute: (RouteSettings settings) { 96 | return switch (settings.name) { 97 | SplashScreen.routeName => SplashScreen.route(), 98 | MainScreen.routeName => MainScreen.route(), 99 | _ => null, 100 | }; 101 | }, 102 | showSemanticsDebugger: false, 103 | ); 104 | }, 105 | ), 106 | ); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /lib/app/assets.dart: -------------------------------------------------------------------------------- 1 | final class ImageAssets { 2 | ImageAssets._(); 3 | 4 | static const logo = 'assets/logo.svg'; 5 | } 6 | -------------------------------------------------------------------------------- /lib/app/config.dart: -------------------------------------------------------------------------------- 1 | import 'package:firebase_core/firebase_core.dart'; 2 | 3 | enum AppEnv { 4 | dev, 5 | prod; 6 | } 7 | 8 | class AppConfig { 9 | const AppConfig({ 10 | required this.env, 11 | required this.firebaseOptions, 12 | }); 13 | 14 | final AppEnv env; 15 | final FirebaseOptions firebaseOptions; 16 | } 17 | -------------------------------------------------------------------------------- /lib/app/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/services.dart' show SystemUiOverlayStyle; 3 | 4 | final appTheme = ThemeData( 5 | colorScheme: ColorScheme.fromSeed( 6 | seedColor: appLightTheme.appColor0, 7 | ), 8 | useMaterial3: true, 9 | extensions: const [ 10 | appLightTheme, 11 | ], 12 | ); 13 | 14 | const appLightTheme = AppTheme( 15 | appColor0: Color(0xFF0D26DE), 16 | appColor1: Color(0xFF1FB7F8), 17 | appColor2: Color(0xFFE0E0F0), 18 | ); 19 | 20 | const appOverlayStyle = SystemUiOverlayStyle( 21 | statusBarColor: Colors.transparent, 22 | statusBarBrightness: Brightness.dark, 23 | statusBarIconBrightness: Brightness.light, 24 | systemNavigationBarColor: Colors.transparent, 25 | systemNavigationBarIconBrightness: Brightness.light, 26 | ); 27 | 28 | class AppTheme extends ThemeExtension { 29 | const AppTheme({ 30 | required this.appColor0, 31 | required this.appColor1, 32 | required this.appColor2, 33 | }); 34 | 35 | final Color appColor0; 36 | final Color appColor1; 37 | final Color appColor2; 38 | 39 | static AppTheme of(BuildContext context) { 40 | return Theme.of(context).extension()!; 41 | } 42 | 43 | @override 44 | ThemeExtension copyWith({ 45 | Color? appColor0, 46 | Color? appColor1, 47 | Color? appColor2, 48 | }) { 49 | return AppTheme( 50 | appColor0: appColor0 ?? this.appColor0, 51 | appColor1: appColor1 ?? this.appColor1, 52 | appColor2: appColor2 ?? this.appColor2, 53 | ); 54 | } 55 | 56 | @override 57 | ThemeExtension lerp(covariant AppTheme other, double t) { 58 | return AppTheme( 59 | appColor0: Color.lerp(appColor0, other.appColor0, t)!, 60 | appColor1: Color.lerp(appColor1, other.appColor1, t)!, 61 | appColor2: Color.lerp(appColor2, other.appColor2, t)!, 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/backend/backend.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter_tips_and_tricks/models/user.dart'; 5 | import 'package:provider/provider.dart'; 6 | import 'package:rxdart/rxdart.dart'; 7 | import 'package:shared_preferences/shared_preferences.dart'; 8 | 9 | const _userKey = 'user'; 10 | 11 | class Backend { 12 | Backend._({ 13 | required SharedPreferences prefs, 14 | required User user, 15 | }) : _prefs = prefs, 16 | _userSubject = BehaviorSubject.seeded(user); 17 | 18 | final SharedPreferences _prefs; 19 | final BehaviorSubject _userSubject; 20 | 21 | static Future init() async { 22 | final prefs = await SharedPreferences.getInstance(); 23 | User user; 24 | try { 25 | final userData = prefs.getString(_userKey); 26 | if (userData != null) { 27 | user = User.fromJson(json.decode(userData)); 28 | } else { 29 | user = User.empty; 30 | } 31 | } catch (error) { 32 | prefs.remove(_userKey); 33 | user = User.empty; 34 | } 35 | return Backend._( 36 | prefs: prefs, 37 | user: user, 38 | ); 39 | } 40 | 41 | User get userCurrent => _userSubject.value; 42 | 43 | Stream get userStream => _userSubject.stream; 44 | 45 | void dispose() { 46 | if (userCurrent != User.empty) { 47 | _prefs.setString(_userKey, json.encode(userCurrent)); 48 | } else { 49 | _prefs.remove(_userKey); 50 | } 51 | } 52 | } 53 | 54 | mixin BackendMixin on State { 55 | late final backend = context.backend; 56 | } 57 | 58 | extension BackendBuildContext on BuildContext { 59 | Backend get backend => Provider.of(this); 60 | } 61 | -------------------------------------------------------------------------------- /lib/features/main/main_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/features/main/widgets/app_top_bar.dart'; 3 | import 'package:flutter_tips_and_tricks/features/main/widgets/bottom_nav.dart'; 4 | import 'package:flutter_tips_and_tricks/features/section_a/section_a.dart'; 5 | import 'package:flutter_tips_and_tricks/features/section_b/section_b.dart'; 6 | import 'package:flutter_tips_and_tricks/features/section_c/section_c.dart'; 7 | import 'package:flutter_tips_and_tricks/features/section_d/section_d.dart'; 8 | import 'package:flutter_tips_and_tricks/widgets/animated_indexed_stack.dart'; 9 | import 'package:flutter_tips_and_tricks/widgets/show_debug_paint.dart'; 10 | 11 | @immutable 12 | class MainScreen extends StatefulWidget { 13 | const MainScreen._(); 14 | 15 | static const routeName = '/main'; 16 | 17 | static Route route() { 18 | return MaterialPageRoute( 19 | settings: const RouteSettings(name: routeName), 20 | builder: (BuildContext context) { 21 | return const MainScreen._(); 22 | }, 23 | ); 24 | } 25 | 26 | @override 27 | State createState() => _MainScreenState(); 28 | } 29 | 30 | class _MainScreenState extends State { 31 | final _sections = <(String, WidgetBuilder)>[ 32 | ('A', (_) => const SectionA()), 33 | ('B', (_) => const SectionB()), 34 | ('C', (_) => const SectionC()), 35 | ('D', (_) => const SectionD()), 36 | ]; 37 | int _index = 0; 38 | 39 | @override 40 | Widget build(BuildContext context) { 41 | return Scaffold( 42 | appBar: const AppTopBar(), 43 | body: IndexedAnimatedStack( 44 | index: _index, 45 | children: [ 46 | for (final (_, builder) in _sections) // 47 | builder, 48 | ], 49 | ), 50 | bottomNavigationBar: ShowDebugPaint( 51 | enabled: false, 52 | child: BottomNav( 53 | selected: _index, 54 | onChanged: (int index) { 55 | setState(() => _index = index); 56 | }, 57 | sections: _sections, 58 | ), 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/features/main/widgets/app_top_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | @immutable 4 | class AppTopBar extends StatelessWidget implements PreferredSizeWidget { 5 | const AppTopBar({ 6 | super.key, 7 | this.title = 'Flutter Tips and Tricks', 8 | }); 9 | 10 | final String title; 11 | 12 | @override 13 | Size get preferredSize => const Size.fromHeight(kToolbarHeight); 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | final theme = Theme.of(context); 18 | return AppBar( 19 | backgroundColor: theme.colorScheme.primary, 20 | title: Text( 21 | title, 22 | style: theme.textTheme.titleLarge!.copyWith( 23 | color: theme.colorScheme.onPrimary, 24 | ), 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/features/main/widgets/bottom_nav.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/widgets/common.dart'; 3 | 4 | @immutable 5 | class BottomNav extends StatelessWidget { 6 | const BottomNav({ 7 | super.key, 8 | required this.selected, 9 | required this.onChanged, 10 | required this.sections, 11 | }); 12 | 13 | final int selected; 14 | final ValueChanged onChanged; 15 | final List<(String, WidgetBuilder)> sections; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | final theme = Theme.of(context); 20 | return BottomAppBar( 21 | padding: emptyPadding, 22 | elevation: 8.0, 23 | color: theme.secondaryHeaderColor, 24 | child: DefaultTextStyle( 25 | style: theme.textTheme.titleLarge!.copyWith( 26 | color: theme.colorScheme.onSecondaryContainer, 27 | ), 28 | child: Row( 29 | children: [ 30 | for (final (index, (name, _)) in sections.indexed) // 31 | Expanded( 32 | child: Ink( 33 | color: selected == index ? theme.primaryColorDark : Colors.transparent, 34 | child: InkWell( 35 | onTap: () => onChanged(index), 36 | child: Padding( 37 | padding: verticalPadding12, 38 | child: Center( 39 | child: Text( 40 | name, 41 | style: selected == index // 42 | ? TextStyle(color: theme.colorScheme.onPrimary) 43 | : null, 44 | ), 45 | ), 46 | ), 47 | ), 48 | ), 49 | ), 50 | ], 51 | ), 52 | ), 53 | ); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /lib/features/section_a/section_a.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | @immutable 4 | class SectionA extends StatefulWidget { 5 | const SectionA({super.key}); 6 | 7 | @override 8 | State createState() => _SectionAState(); 9 | } 10 | 11 | Stream autoCounter() => Stream.periodic(const Duration(seconds: 1), (el) => el + 1).take(10); 12 | 13 | class _SectionAState extends State { 14 | int _counter = 0; 15 | 16 | final _autoCounterStream = autoCounter(); 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Stack( 21 | alignment: Alignment.center, 22 | children: [ 23 | StreamBuilder( 24 | stream: _autoCounterStream, 25 | builder: (BuildContext context, AsyncSnapshot snapshot) { 26 | if (snapshot.connectionState == ConnectionState.waiting) { 27 | return const Center(child: CircularProgressIndicator()); 28 | } else { 29 | return DefaultTextStyle( 30 | style: Theme.of(context).textTheme.bodyLarge!.copyWith(fontSize: 32.0), 31 | child: Column( 32 | mainAxisSize: MainAxisSize.min, 33 | children: [ 34 | Text('Auto counter: ${snapshot.data}'), 35 | Text('Normal counter: $_counter'), 36 | ], 37 | ), 38 | ); 39 | } 40 | }, 41 | ), 42 | Positioned( 43 | bottom: 16.0, 44 | right: 16.0, 45 | child: FloatingActionButton( 46 | onPressed: () => setState(() => _counter++), 47 | child: const Icon(Icons.add), 48 | ), 49 | ), 50 | ], 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/features/section_b/section_b.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | @immutable 4 | class SectionB extends StatefulWidget { 5 | const SectionB({super.key}); 6 | 7 | @override 8 | State createState() => _SectionBState(); 9 | } 10 | 11 | class _SectionBState extends State { 12 | final _items = { 13 | 'item1': const Text('Item A'), 14 | 'item2': const Text('Item B'), 15 | 'item3': const Text('Item C'), 16 | }; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Material( 21 | child: ListView( 22 | children: [ 23 | for (final (i, MapEntry(key: k, value: v)) in _items.entries.indexed) // 24 | ListTile( 25 | key: Key(k), 26 | onTap: () => debugPrint('Tapped Item $i'), 27 | title: v, 28 | subtitle: Text('Description $i'), 29 | ), 30 | ], 31 | ), 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /lib/features/section_c/section_c.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/models/user.dart'; 3 | import 'package:flutter_tips_and_tricks/widgets/common.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | @immutable 7 | class SectionC extends StatefulWidget { 8 | const SectionC({super.key}); 9 | 10 | @override 11 | State createState() => _SectionCState(); 12 | } 13 | 14 | class _SectionCState extends State { 15 | // late final user = Provider.of(context); 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | // LayoutBuilder( 20 | // builder: (BuildContext context, BoxConstraints constraints) { 21 | // return SizedBox( 22 | // height: 100.0, 23 | // child: ListView.builder( 24 | // scrollDirection: Axis.horizontal, 25 | // itemBuilder: (BuildContext context, int index) { 26 | // return SizedBox( 27 | // width: itemWidth, 28 | // child: const Placeholder(), 29 | // ); 30 | // }, 31 | // ), 32 | // ); 33 | // }, 34 | // ), 35 | return Material( 36 | child: Scrollbar( 37 | interactive: true, 38 | child: SingleChildScrollView( 39 | child: Column( 40 | crossAxisAlignment: CrossAxisAlignment.center, 41 | children: [ 42 | AspectRatio( 43 | aspectRatio: 3.5, 44 | child: ListView.builder( 45 | scrollDirection: Axis.horizontal, 46 | itemBuilder: (BuildContext context, int index) { 47 | return const AspectRatio( 48 | aspectRatio: 1.0, 49 | child: Placeholder(), 50 | ); 51 | }, 52 | ), 53 | ), 54 | verticalMargin48 + verticalMargin48, 55 | IntrinsicWidth( 56 | child: Row( 57 | mainAxisAlignment: MainAxisAlignment.center, 58 | children: [ 59 | Expanded( 60 | child: ElevatedButton(onPressed: () {}, child: const Text('OK')), 61 | ), 62 | horizontalMargin16, 63 | Expanded( 64 | child: ElevatedButton(onPressed: () {}, child: const Text('Stornieren')), 65 | ), 66 | ], 67 | ), 68 | ), 69 | ], 70 | ), 71 | ), 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/features/section_d/section_d.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/widgets/common.dart'; 3 | 4 | @immutable 5 | class SectionD extends StatefulWidget { 6 | const SectionD({super.key}); 7 | 8 | @override 9 | State createState() => _SectionDState(); 10 | } 11 | 12 | class _SectionDState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | return Material( 16 | child: MediaQuery( 17 | data: MediaQuery.of(context).copyWith( 18 | textScaleFactor: 2.5, 19 | ), 20 | child: Center( 21 | child: IntrinsicWidth( 22 | child: Column( 23 | mainAxisAlignment: MainAxisAlignment.center, 24 | crossAxisAlignment: CrossAxisAlignment.stretch, 25 | children: [ 26 | ElevatedButton(onPressed: () {}, child: const Text('First Button')), 27 | verticalMargin16, 28 | ElevatedButton(onPressed: () {}, child: const Text('Second Button')), 29 | verticalMargin16, 30 | ElevatedButton(onPressed: () {}, child: const Text('Third Button')), 31 | verticalMargin16, 32 | ElevatedButton(onPressed: () {}, child: const Text('Forth Button')), 33 | ], 34 | ), 35 | ), 36 | ), 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/features/splash/splash_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_svg/flutter_svg.dart'; 3 | import 'package:flutter_tips_and_tricks/app/assets.dart'; 4 | import 'package:flutter_tips_and_tricks/app/theme.dart'; 5 | import 'package:flutter_tips_and_tricks/widgets/common.dart'; 6 | 7 | @immutable 8 | class SplashScreen extends StatelessWidget { 9 | const SplashScreen._(); 10 | 11 | static Future precacheAssets(BuildContext context) async { 12 | const loader = SvgAssetLoader(ImageAssets.logo); 13 | svg.cache.putIfAbsent(loader.cacheKey(context), () => loader.loadBytes(null)); 14 | } 15 | 16 | static const routeName = Navigator.defaultRouteName; 17 | 18 | static Route route() { 19 | return PageRouteBuilder( 20 | settings: const RouteSettings(name: routeName), 21 | transitionDuration: const Duration(milliseconds: 600), 22 | pageBuilder: (BuildContext context, Animation animation, 23 | Animation secondaryAnimation) { 24 | return FadeTransition( 25 | opacity: TrainHoppingAnimation(animation, secondaryAnimation), 26 | child: const SplashScreen._(), 27 | ); 28 | }, 29 | ); 30 | } 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | final modalRoute = ModalRoute.of(context); 35 | return Material( 36 | color: AppTheme.of(context).appColor1, 37 | child: Center( 38 | child: Column( 39 | mainAxisSize: MainAxisSize.min, 40 | children: [ 41 | SvgPicture.asset( 42 | ImageAssets.logo, 43 | width: 288.0, 44 | ), 45 | Align( 46 | alignment: Alignment.topCenter, 47 | heightFactor: 0.0, 48 | child: Padding( 49 | padding: verticalPadding24, 50 | child: FadeTransition( 51 | opacity: modalRoute!.animation!, 52 | child: const CircularProgressIndicator(), 53 | ), 54 | ), 55 | ), 56 | ], 57 | ), 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/main_dev.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/app/app.dart'; 3 | import 'package:flutter_tips_and_tricks/app/config.dart'; 4 | import 'package:flutter_tips_and_tricks/firebase_options.dart'; 5 | 6 | // Before running please read: README.md 7 | 8 | void main() { 9 | runApp( 10 | FlutterTipsApp( 11 | config: AppConfig( 12 | env: AppEnv.dev, 13 | firebaseOptions: DefaultFirebaseOptions.currentPlatform, 14 | ), 15 | ), 16 | ); 17 | } 18 | -------------------------------------------------------------------------------- /lib/main_prod.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/app/app.dart'; 3 | import 'package:flutter_tips_and_tricks/app/config.dart'; 4 | import 'package:flutter_tips_and_tricks/firebase_options.dart'; 5 | 6 | // Before running please read: README.md 7 | 8 | void main() { 9 | runApp( 10 | FlutterTipsApp( 11 | config: AppConfig( 12 | env: AppEnv.prod, 13 | firebaseOptions: DefaultFirebaseOptions.currentPlatform, 14 | ), 15 | ), 16 | ); 17 | } 18 | -------------------------------------------------------------------------------- /lib/models/user.dart: -------------------------------------------------------------------------------- 1 | class User { 2 | const User({ 3 | required this.id, 4 | required this.name, 5 | }); 6 | 7 | factory User.fromJson(Map json) { 8 | return User( 9 | id: json['id'] as String, 10 | name: json['name'] as String, 11 | ); 12 | } 13 | 14 | final String id; 15 | final String name; 16 | 17 | static const empty = User(id: '', name: ''); 18 | 19 | Map toJson() { 20 | return { 21 | 'id': id, 22 | 'name': name, 23 | }; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/utils/when_async.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/widgets.dart'; 2 | 3 | extension WhenAsyncSnapshot on AsyncSnapshot { 4 | R when({ 5 | R Function()? empty, 6 | R Function(dynamic error, StackTrace? stackTrace)? error, 7 | R Function()? loading, 8 | R Function(T value)? data, 9 | }) { 10 | if (hasData && data != null) // If we have data then lets display it no-matter what! 11 | return data(requireData); 12 | if (connectionState != ConnectionState.done && loading != null) // Are we are still loading? 13 | return loading(); 14 | else if (hasError && error != null) // Did we get an error? 15 | return error(this.error, stackTrace); 16 | else if (empty != null) // No data, not loading, no error, we're empty! 17 | return empty(); 18 | else // We only get here if the developer does not provide any parameters 19 | throw UnsupportedError('Missing parameters to when()'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/widgets/animated_indexed_stack.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_tips_and_tricks/widgets/common.dart'; 3 | 4 | class IndexedAnimatedStack extends StatefulWidget { 5 | const IndexedAnimatedStack({ 6 | Key? key, 7 | required this.index, 8 | required this.children, 9 | }) : super(key: key); 10 | 11 | final int index; 12 | final List children; 13 | 14 | @override 15 | State createState() => _IndexedAnimatedStackState(); 16 | } 17 | 18 | class _IndexedAnimatedStackState extends State { 19 | late List _keys; 20 | late final _widgets = {}; 21 | double _direction = -1.0; 22 | double _reverseDirection = 1.0; 23 | 24 | @override 25 | void initState() { 26 | super.initState(); 27 | _keys = List.generate( 28 | widget.children.length, 29 | (index) => GlobalKey(debugLabel: 'page$index'), 30 | ); 31 | } 32 | 33 | @override 34 | void didUpdateWidget(covariant IndexedAnimatedStack oldWidget) { 35 | super.didUpdateWidget(oldWidget); 36 | if (widget.index != oldWidget.index) { 37 | _direction = widget.index > oldWidget.index ? 1.0 : -1.0; 38 | _reverseDirection = widget.index > oldWidget.index ? -1.0 : 1.0; 39 | } 40 | final oldLength = oldWidget.children.length; 41 | final newLength = widget.children.length; 42 | if (newLength != oldLength) { 43 | if (newLength < oldLength) { 44 | _keys = _keys.sublist(0, newLength); 45 | } else { 46 | _keys = [ 47 | ..._keys, 48 | ...List.generate( 49 | (newLength - oldLength), 50 | (index) => GlobalKey(debugLabel: 'page${oldLength + index}'), 51 | ), 52 | ]; 53 | } 54 | } 55 | } 56 | 57 | @override 58 | Widget build(BuildContext context) { 59 | final current = _widgets.putIfAbsent( 60 | widget.index, 61 | () => widget.children[widget.index](context), 62 | ); 63 | return Stack( 64 | fit: StackFit.expand, 65 | children: [ 66 | for (int i = 0; i < widget.children.length; i++) 67 | if (i != widget.index) 68 | _AnimatedPage( 69 | key: _keys[i], 70 | visible: false, 71 | direction: _reverseDirection, 72 | child: _widgets[i] ?? emptyWidget, 73 | ), 74 | _AnimatedPage( 75 | key: _keys[widget.index], 76 | visible: true, 77 | direction: _direction, 78 | child: current, 79 | ), 80 | ], 81 | ); 82 | } 83 | } 84 | 85 | @immutable 86 | class _AnimatedPage extends StatefulWidget { 87 | const _AnimatedPage({ 88 | super.key, 89 | required this.visible, 90 | required this.direction, 91 | required this.child, 92 | }); 93 | 94 | final bool visible; 95 | final double direction; 96 | final Widget child; 97 | 98 | @override 99 | State<_AnimatedPage> createState() => _AnimatedPageState(); 100 | } 101 | 102 | class _AnimatedPageState extends State<_AnimatedPage> with SingleTickerProviderStateMixin { 103 | late final AnimationController _controller; 104 | late bool _isOffstage; 105 | 106 | @override 107 | void initState() { 108 | super.initState(); 109 | _controller = AnimationController( 110 | duration: const Duration(milliseconds: 350), 111 | vsync: this, 112 | value: widget.visible ? 1.0 : 0.0, 113 | ); 114 | _controller.addListener(() { 115 | isOffstage = _controller.value == 0.0; 116 | }); 117 | _isOffstage = !widget.visible; 118 | _updateAnimation(); 119 | } 120 | 121 | set isOffstage(bool value) { 122 | if (_isOffstage != value) { 123 | setState(() => _isOffstage = value); 124 | } 125 | } 126 | 127 | @override 128 | void didUpdateWidget(covariant _AnimatedPage oldWidget) { 129 | super.didUpdateWidget(oldWidget); 130 | _updateAnimation(); 131 | } 132 | 133 | void _updateAnimation() { 134 | if (widget.visible) { 135 | _controller.forward(); 136 | } else { 137 | _controller.reverse(); 138 | } 139 | } 140 | 141 | @override 142 | void dispose() { 143 | _controller.dispose(); 144 | super.dispose(); 145 | } 146 | 147 | @override 148 | Widget build(BuildContext context) { 149 | final slideInTransition = Tween( 150 | begin: Offset(32.0 * widget.direction, 0.0), 151 | end: Offset.zero, 152 | ).chain(CurveTween(curve: Curves.fastOutSlowIn)); 153 | return FadeTransition( 154 | opacity: CurveTween(curve: Curves.decelerate).animate(_controller), 155 | child: AnimatedBuilder( 156 | animation: _controller, 157 | builder: (BuildContext context, Widget? child) { 158 | return Transform.translate( 159 | offset: widget.visible ? slideInTransition.evaluate(_controller) : Offset.zero, 160 | child: child, 161 | ); 162 | }, 163 | child: Offstage( 164 | offstage: _isOffstage, 165 | child: IgnorePointer( 166 | ignoring: _isOffstage, 167 | child: TickerMode( 168 | enabled: !_isOffstage, 169 | child: Material( 170 | color: Theme.of(context).canvasColor, 171 | child: widget.child, 172 | ), 173 | ), 174 | ), 175 | ), 176 | ), 177 | ); 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /lib/widgets/child_builder.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/widgets.dart'; 3 | 4 | typedef WidgetChildBuilder = Widget Function(BuildContext context, Widget child); 5 | 6 | @immutable 7 | class ChildBuilder extends StatelessWidget { 8 | const ChildBuilder({ 9 | super.key, 10 | required this.builder, 11 | required this.child, 12 | }); 13 | 14 | final WidgetChildBuilder builder; 15 | final Widget child; 16 | 17 | @override 18 | Widget build(BuildContext context) => builder(context, child); 19 | } 20 | -------------------------------------------------------------------------------- /lib/widgets/common.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart' 2 | show EdgeInsets, EdgeInsetsDirectional, SizedBox, SliverToBoxAdapter; 3 | 4 | const emptyWidget = SizedBox(); 5 | const emptyWidgetWide = SizedBox(width: double.infinity); 6 | 7 | // Margins 8 | 9 | const horizontalMargin4 = SizedBox(width: 4.0); 10 | const horizontalMargin8 = SizedBox(width: 8.0); 11 | const horizontalMargin12 = SizedBox(width: 12.0); 12 | const horizontalMargin16 = SizedBox(width: 16.0); 13 | const horizontalMargin24 = SizedBox(width: 24.0); 14 | const horizontalMargin32 = SizedBox(width: 32.0); 15 | const horizontalMargin48 = SizedBox(width: 48.0); 16 | 17 | const verticalMargin4 = SizedBox(height: 4.0); 18 | const verticalMargin8 = SizedBox(height: 8.0); 19 | const verticalMargin12 = SizedBox(height: 12.0); 20 | const verticalMargin16 = SizedBox(height: 16.0); 21 | const verticalMargin24 = SizedBox(height: 24.0); 22 | const verticalMargin32 = SizedBox(height: 32.0); 23 | const verticalMargin48 = SizedBox(height: 48.0); 24 | 25 | // Paddings 26 | 27 | const emptyPadding = EdgeInsets.zero; 28 | 29 | const horizontalPadding4 = EdgeInsets.symmetric(horizontal: 4.0); 30 | const horizontalPadding8 = EdgeInsets.symmetric(horizontal: 8.0); 31 | const horizontalPadding12 = EdgeInsets.symmetric(horizontal: 12.0); 32 | const horizontalPadding16 = EdgeInsets.symmetric(horizontal: 16.0); 33 | const horizontalPadding24 = EdgeInsets.symmetric(horizontal: 24.0); 34 | const horizontalPadding32 = EdgeInsets.symmetric(horizontal: 32.0); 35 | const horizontalPadding48 = EdgeInsets.symmetric(horizontal: 48.0); 36 | 37 | const verticalPadding2 = EdgeInsets.symmetric(vertical: 2.0); 38 | const verticalPadding4 = EdgeInsets.symmetric(vertical: 4.0); 39 | const verticalPadding8 = EdgeInsets.symmetric(vertical: 8.0); 40 | const verticalPadding12 = EdgeInsets.symmetric(vertical: 12.0); 41 | const verticalPadding16 = EdgeInsets.symmetric(vertical: 16.0); 42 | const verticalPadding24 = EdgeInsets.symmetric(vertical: 24.0); 43 | const verticalPadding32 = EdgeInsets.symmetric(vertical: 32.0); 44 | const verticalPadding48 = EdgeInsets.symmetric(vertical: 48.0); 45 | 46 | const allPadding4 = EdgeInsets.all(4.0); 47 | const allPadding8 = EdgeInsets.all(8.0); 48 | const allPadding12 = EdgeInsets.all(12.0); 49 | const allPadding16 = EdgeInsets.all(16.0); 50 | const allPadding24 = EdgeInsets.all(24.0); 51 | const allPadding32 = EdgeInsets.all(32.0); 52 | const allPadding48 = EdgeInsets.all(48.0); 53 | 54 | const topPadding1 = EdgeInsets.only(top: 1.0); 55 | const topPadding2 = EdgeInsets.only(top: 2.0); 56 | const topPadding4 = EdgeInsets.only(top: 4.0); 57 | const topPadding8 = EdgeInsets.only(top: 8.0); 58 | const topPadding12 = EdgeInsets.only(top: 12.0); 59 | const topPadding16 = EdgeInsets.only(top: 16.0); 60 | const topPadding24 = EdgeInsets.only(top: 24.0); 61 | const topPadding32 = EdgeInsets.only(top: 32.0); 62 | const topPadding48 = EdgeInsets.only(top: 48.0); 63 | 64 | const bottomPadding1 = EdgeInsets.only(bottom: 1.0); 65 | const bottomPadding2 = EdgeInsets.only(bottom: 2.0); 66 | const bottomPadding4 = EdgeInsets.only(bottom: 4.0); 67 | const bottomPadding8 = EdgeInsets.only(bottom: 8.0); 68 | const bottomPadding12 = EdgeInsets.only(bottom: 12.0); 69 | const bottomPadding16 = EdgeInsets.only(bottom: 16.0); 70 | const bottomPadding24 = EdgeInsets.only(bottom: 24.0); 71 | const bottomPadding32 = EdgeInsets.only(bottom: 32.0); 72 | const bottomPadding48 = EdgeInsets.only(bottom: 48.0); 73 | 74 | const leftPadding4 = EdgeInsets.only(left: 4.0); 75 | const leftPadding8 = EdgeInsets.only(left: 8.0); 76 | const leftPadding12 = EdgeInsets.only(left: 12.0); 77 | const leftPadding16 = EdgeInsets.only(left: 16.0); 78 | const leftPadding24 = EdgeInsets.only(left: 24.0); 79 | const leftPadding32 = EdgeInsets.only(left: 32.0); 80 | const leftPadding48 = EdgeInsets.only(left: 48.0); 81 | 82 | const rightPadding4 = EdgeInsets.only(right: 4.0); 83 | const rightPadding8 = EdgeInsets.only(right: 8.0); 84 | const rightPadding12 = EdgeInsets.only(right: 12.0); 85 | const rightPadding16 = EdgeInsets.only(right: 16.0); 86 | const rightPadding24 = EdgeInsets.only(right: 24.0); 87 | const rightPadding32 = EdgeInsets.only(right: 32.0); 88 | const rightPadding48 = EdgeInsets.only(right: 48.0); 89 | 90 | const startPadding4 = EdgeInsetsDirectional.only(start: 4.0); 91 | const startPadding8 = EdgeInsetsDirectional.only(start: 8.0); 92 | const startPadding12 = EdgeInsetsDirectional.only(start: 12.0); 93 | const startPadding16 = EdgeInsetsDirectional.only(start: 16.0); 94 | const startPadding24 = EdgeInsetsDirectional.only(start: 24.0); 95 | const startPadding32 = EdgeInsetsDirectional.only(start: 32.0); 96 | const startPadding48 = EdgeInsetsDirectional.only(start: 48.0); 97 | 98 | const endPadding4 = EdgeInsetsDirectional.only(end: 4.0); 99 | const endPadding8 = EdgeInsetsDirectional.only(end: 8.0); 100 | const endPadding12 = EdgeInsetsDirectional.only(end: 12.0); 101 | const endPadding16 = EdgeInsetsDirectional.only(end: 16.0); 102 | const endPadding24 = EdgeInsetsDirectional.only(end: 24.0); 103 | const endPadding32 = EdgeInsetsDirectional.only(end: 32.0); 104 | const endPadding48 = EdgeInsetsDirectional.only(end: 48.0); 105 | 106 | extension MergeMargins on SizedBox { 107 | /// Returns the sum of two [SizedBox]. 108 | SizedBox operator +(SizedBox other) { 109 | return SizedBox( 110 | width: (width ?? 0.0) + (other.width ?? 0.0), 111 | height: (height ?? 0.0) + (other.height ?? 0.0), 112 | child: other.child, 113 | ); 114 | } 115 | 116 | /// Returns the difference between two [SizedBox]. 117 | SizedBox operator -(SizedBox other) { 118 | return SizedBox( 119 | width: (width ?? 0.0) - (other.width ?? 0.0), 120 | height: (height ?? 0.0) - (other.height ?? 0.0), 121 | child: other.child, 122 | ); 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /lib/widgets/show_debug_paint.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter/rendering.dart'; 3 | 4 | class ShowDebugPaint extends SingleChildRenderObjectWidget { 5 | const ShowDebugPaint({ 6 | Key? key, 7 | this.enabled = true, 8 | required Widget child, 9 | }) : super(key: key, child: child); 10 | 11 | final bool enabled; 12 | 13 | @override 14 | RenderObject createRenderObject(BuildContext context) { 15 | return RenderShowDebugPaint(enabled: enabled); 16 | } 17 | 18 | @override 19 | void updateRenderObject(BuildContext context, RenderShowDebugPaint renderObject) { 20 | renderObject.enabled = enabled; 21 | } 22 | } 23 | 24 | class RenderShowDebugPaint extends RenderProxyBox { 25 | RenderShowDebugPaint({required bool enabled, RenderBox? child}) 26 | : _enabled = enabled, super(child); 27 | 28 | bool _enabled; 29 | bool get enabled => _enabled; 30 | 31 | set enabled(bool value) { 32 | if (_enabled != value) { 33 | _enabled = value; 34 | markNeedsPaint(); 35 | } 36 | } 37 | 38 | @override 39 | void paint(PaintingContext context, Offset offset) { 40 | final previousState = debugPaintSizeEnabled; 41 | debugPaintSizeEnabled = enabled; 42 | super.paint(context, offset); 43 | debugPaintSizeEnabled = previousState; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _flutterfire_internals: 5 | dependency: transitive 6 | description: 7 | name: _flutterfire_internals 8 | sha256: a742f71d7f3484253a623b30e19256aa4668ecbb3de6ad1beb0bcf8d4777ecd8 9 | url: "https://pub.dev" 10 | source: hosted 11 | version: "1.3.3" 12 | args: 13 | dependency: transitive 14 | description: 15 | name: args 16 | sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 17 | url: "https://pub.dev" 18 | source: hosted 19 | version: "2.4.2" 20 | async: 21 | dependency: transitive 22 | description: 23 | name: async 24 | sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" 25 | url: "https://pub.dev" 26 | source: hosted 27 | version: "2.11.0" 28 | boolean_selector: 29 | dependency: transitive 30 | description: 31 | name: boolean_selector 32 | sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" 33 | url: "https://pub.dev" 34 | source: hosted 35 | version: "2.1.1" 36 | characters: 37 | dependency: transitive 38 | description: 39 | name: characters 40 | sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" 41 | url: "https://pub.dev" 42 | source: hosted 43 | version: "1.3.0" 44 | clock: 45 | dependency: transitive 46 | description: 47 | name: clock 48 | sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf 49 | url: "https://pub.dev" 50 | source: hosted 51 | version: "1.1.1" 52 | collection: 53 | dependency: transitive 54 | description: 55 | name: collection 56 | sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" 57 | url: "https://pub.dev" 58 | source: hosted 59 | version: "1.17.1" 60 | devangels_show_debug_paint: 61 | dependency: "direct main" 62 | description: 63 | name: devangels_show_debug_paint 64 | sha256: "5c28905c9f4fb951932cfe8bf41bcded9094e945f6d1e7e3c83b1e75810d8b01" 65 | url: "https://pub.dev" 66 | source: hosted 67 | version: "0.0.3" 68 | fake_async: 69 | dependency: transitive 70 | description: 71 | name: fake_async 72 | sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" 73 | url: "https://pub.dev" 74 | source: hosted 75 | version: "1.3.1" 76 | ffi: 77 | dependency: transitive 78 | description: 79 | name: ffi 80 | sha256: ed5337a5660c506388a9f012be0288fb38b49020ce2b45fe1f8b8323fe429f99 81 | url: "https://pub.dev" 82 | source: hosted 83 | version: "2.0.2" 84 | file: 85 | dependency: transitive 86 | description: 87 | name: file 88 | sha256: "1b92bec4fc2a72f59a8e15af5f52cd441e4a7860b49499d69dfa817af20e925d" 89 | url: "https://pub.dev" 90 | source: hosted 91 | version: "6.1.4" 92 | firebase_core: 93 | dependency: "direct main" 94 | description: 95 | name: firebase_core 96 | sha256: a4a99204da264a0aa9d54a332ea0315ce7b0768075139c77abefe98093dd98be 97 | url: "https://pub.dev" 98 | source: hosted 99 | version: "2.14.0" 100 | firebase_core_platform_interface: 101 | dependency: transitive 102 | description: 103 | name: firebase_core_platform_interface 104 | sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 105 | url: "https://pub.dev" 106 | source: hosted 107 | version: "4.8.0" 108 | firebase_core_web: 109 | dependency: transitive 110 | description: 111 | name: firebase_core_web 112 | sha256: "0fd5c4b228de29b55fac38aed0d9e42514b3d3bd47675de52bf7f8fccaf922fa" 113 | url: "https://pub.dev" 114 | source: hosted 115 | version: "2.6.0" 116 | firebase_crashlytics: 117 | dependency: "direct main" 118 | description: 119 | name: firebase_crashlytics 120 | sha256: "398012cf7838f8a373a25da65dd62fc3a3f4abe4b5f886caa634952c3387dce3" 121 | url: "https://pub.dev" 122 | source: hosted 123 | version: "3.3.3" 124 | firebase_crashlytics_platform_interface: 125 | dependency: transitive 126 | description: 127 | name: firebase_crashlytics_platform_interface 128 | sha256: "39dfcc9a5ddfaa0588ad67f1016174dd9e19f6b31f592b8641bd559399567592" 129 | url: "https://pub.dev" 130 | source: hosted 131 | version: "3.6.3" 132 | flutter: 133 | dependency: "direct main" 134 | description: flutter 135 | source: sdk 136 | version: "0.0.0" 137 | flutter_lints: 138 | dependency: "direct dev" 139 | description: 140 | name: flutter_lints 141 | sha256: "2118df84ef0c3ca93f96123a616ae8540879991b8b57af2f81b76a7ada49b2a4" 142 | url: "https://pub.dev" 143 | source: hosted 144 | version: "2.0.2" 145 | flutter_svg: 146 | dependency: "direct main" 147 | description: 148 | name: flutter_svg 149 | sha256: "8c5d68a82add3ca76d792f058b186a0599414f279f00ece4830b9b231b570338" 150 | url: "https://pub.dev" 151 | source: hosted 152 | version: "2.0.7" 153 | flutter_test: 154 | dependency: "direct dev" 155 | description: flutter 156 | source: sdk 157 | version: "0.0.0" 158 | flutter_web_plugins: 159 | dependency: transitive 160 | description: flutter 161 | source: sdk 162 | version: "0.0.0" 163 | go_router: 164 | dependency: "direct main" 165 | description: 166 | name: go_router 167 | sha256: "1531542666c2d052c44bbf6e2b48011bf3771da0404b94c60eabec1228a62906" 168 | url: "https://pub.dev" 169 | source: hosted 170 | version: "9.0.0" 171 | js: 172 | dependency: transitive 173 | description: 174 | name: js 175 | sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 176 | url: "https://pub.dev" 177 | source: hosted 178 | version: "0.6.7" 179 | lints: 180 | dependency: transitive 181 | description: 182 | name: lints 183 | sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" 184 | url: "https://pub.dev" 185 | source: hosted 186 | version: "2.1.1" 187 | logging: 188 | dependency: transitive 189 | description: 190 | name: logging 191 | sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" 192 | url: "https://pub.dev" 193 | source: hosted 194 | version: "1.2.0" 195 | matcher: 196 | dependency: transitive 197 | description: 198 | name: matcher 199 | sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" 200 | url: "https://pub.dev" 201 | source: hosted 202 | version: "0.12.15" 203 | material_color_utilities: 204 | dependency: transitive 205 | description: 206 | name: material_color_utilities 207 | sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 208 | url: "https://pub.dev" 209 | source: hosted 210 | version: "0.2.0" 211 | meta: 212 | dependency: transitive 213 | description: 214 | name: meta 215 | sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" 216 | url: "https://pub.dev" 217 | source: hosted 218 | version: "1.9.1" 219 | nested: 220 | dependency: transitive 221 | description: 222 | name: nested 223 | sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" 224 | url: "https://pub.dev" 225 | source: hosted 226 | version: "1.0.0" 227 | path: 228 | dependency: transitive 229 | description: 230 | name: path 231 | sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" 232 | url: "https://pub.dev" 233 | source: hosted 234 | version: "1.8.3" 235 | path_parsing: 236 | dependency: transitive 237 | description: 238 | name: path_parsing 239 | sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf 240 | url: "https://pub.dev" 241 | source: hosted 242 | version: "1.0.1" 243 | path_provider_linux: 244 | dependency: transitive 245 | description: 246 | name: path_provider_linux 247 | sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57 248 | url: "https://pub.dev" 249 | source: hosted 250 | version: "2.1.11" 251 | path_provider_platform_interface: 252 | dependency: transitive 253 | description: 254 | name: path_provider_platform_interface 255 | sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec" 256 | url: "https://pub.dev" 257 | source: hosted 258 | version: "2.0.6" 259 | path_provider_windows: 260 | dependency: transitive 261 | description: 262 | name: path_provider_windows 263 | sha256: "1cb68ba4cd3a795033de62ba1b7b4564dace301f952de6bfb3cd91b202b6ee96" 264 | url: "https://pub.dev" 265 | source: hosted 266 | version: "2.1.7" 267 | petitparser: 268 | dependency: transitive 269 | description: 270 | name: petitparser 271 | sha256: cb3798bef7fc021ac45b308f4b51208a152792445cce0448c9a4ba5879dd8750 272 | url: "https://pub.dev" 273 | source: hosted 274 | version: "5.4.0" 275 | platform: 276 | dependency: transitive 277 | description: 278 | name: platform 279 | sha256: "4a451831508d7d6ca779f7ac6e212b4023dd5a7d08a27a63da33756410e32b76" 280 | url: "https://pub.dev" 281 | source: hosted 282 | version: "3.1.0" 283 | plugin_platform_interface: 284 | dependency: transitive 285 | description: 286 | name: plugin_platform_interface 287 | sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" 288 | url: "https://pub.dev" 289 | source: hosted 290 | version: "2.1.4" 291 | process: 292 | dependency: transitive 293 | description: 294 | name: process 295 | sha256: "53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09" 296 | url: "https://pub.dev" 297 | source: hosted 298 | version: "4.2.4" 299 | provider: 300 | dependency: "direct main" 301 | description: 302 | name: provider 303 | sha256: cdbe7530b12ecd9eb455bdaa2fcb8d4dad22e80b8afb4798b41479d5ce26847f 304 | url: "https://pub.dev" 305 | source: hosted 306 | version: "6.0.5" 307 | rxdart: 308 | dependency: "direct main" 309 | description: 310 | name: rxdart 311 | sha256: "0c7c0cedd93788d996e33041ffecda924cc54389199cde4e6a34b440f50044cb" 312 | url: "https://pub.dev" 313 | source: hosted 314 | version: "0.27.7" 315 | shared_preferences: 316 | dependency: "direct main" 317 | description: 318 | name: shared_preferences 319 | sha256: "0344316c947ffeb3a529eac929e1978fcd37c26be4e8468628bac399365a3ca1" 320 | url: "https://pub.dev" 321 | source: hosted 322 | version: "2.2.0" 323 | shared_preferences_android: 324 | dependency: transitive 325 | description: 326 | name: shared_preferences_android 327 | sha256: fe8401ec5b6dcd739a0fe9588802069e608c3fdbfd3c3c93e546cf2f90438076 328 | url: "https://pub.dev" 329 | source: hosted 330 | version: "2.2.0" 331 | shared_preferences_foundation: 332 | dependency: transitive 333 | description: 334 | name: shared_preferences_foundation 335 | sha256: "0dc5c49ad8a05ed358b991b60c7b0ba1a14e16dae58af9b420d6b9e82dc024ab" 336 | url: "https://pub.dev" 337 | source: hosted 338 | version: "2.3.0" 339 | shared_preferences_linux: 340 | dependency: transitive 341 | description: 342 | name: shared_preferences_linux 343 | sha256: "71d6806d1449b0a9d4e85e0c7a917771e672a3d5dc61149cc9fac871115018e1" 344 | url: "https://pub.dev" 345 | source: hosted 346 | version: "2.3.0" 347 | shared_preferences_platform_interface: 348 | dependency: transitive 349 | description: 350 | name: shared_preferences_platform_interface 351 | sha256: "23b052f17a25b90ff2b61aad4cc962154da76fb62848a9ce088efe30d7c50ab1" 352 | url: "https://pub.dev" 353 | source: hosted 354 | version: "2.3.0" 355 | shared_preferences_web: 356 | dependency: transitive 357 | description: 358 | name: shared_preferences_web 359 | sha256: "7347b194fb0bbeb4058e6a4e87ee70350b6b2b90f8ac5f8bd5b3a01548f6d33a" 360 | url: "https://pub.dev" 361 | source: hosted 362 | version: "2.2.0" 363 | shared_preferences_windows: 364 | dependency: transitive 365 | description: 366 | name: shared_preferences_windows 367 | sha256: f95e6a43162bce43c9c3405f3eb6f39e5b5d11f65fab19196cf8225e2777624d 368 | url: "https://pub.dev" 369 | source: hosted 370 | version: "2.3.0" 371 | sky_engine: 372 | dependency: transitive 373 | description: flutter 374 | source: sdk 375 | version: "0.0.99" 376 | source_span: 377 | dependency: transitive 378 | description: 379 | name: source_span 380 | sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 381 | url: "https://pub.dev" 382 | source: hosted 383 | version: "1.9.1" 384 | stack_trace: 385 | dependency: transitive 386 | description: 387 | name: stack_trace 388 | sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 389 | url: "https://pub.dev" 390 | source: hosted 391 | version: "1.11.0" 392 | stream_channel: 393 | dependency: transitive 394 | description: 395 | name: stream_channel 396 | sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" 397 | url: "https://pub.dev" 398 | source: hosted 399 | version: "2.1.1" 400 | string_scanner: 401 | dependency: transitive 402 | description: 403 | name: string_scanner 404 | sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" 405 | url: "https://pub.dev" 406 | source: hosted 407 | version: "1.2.0" 408 | term_glyph: 409 | dependency: transitive 410 | description: 411 | name: term_glyph 412 | sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 413 | url: "https://pub.dev" 414 | source: hosted 415 | version: "1.2.1" 416 | test_api: 417 | dependency: transitive 418 | description: 419 | name: test_api 420 | sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb 421 | url: "https://pub.dev" 422 | source: hosted 423 | version: "0.5.1" 424 | vector_graphics: 425 | dependency: transitive 426 | description: 427 | name: vector_graphics 428 | sha256: "670f6e07aca990b4a2bcdc08a784193c4ccdd1932620244c3a86bb72a0eac67f" 429 | url: "https://pub.dev" 430 | source: hosted 431 | version: "1.1.7" 432 | vector_graphics_codec: 433 | dependency: transitive 434 | description: 435 | name: vector_graphics_codec 436 | sha256: "7451721781d967db9933b63f5733b1c4533022c0ba373a01bdd79d1a5457f69f" 437 | url: "https://pub.dev" 438 | source: hosted 439 | version: "1.1.7" 440 | vector_graphics_compiler: 441 | dependency: transitive 442 | description: 443 | name: vector_graphics_compiler 444 | sha256: "80a13c613c8bde758b1464a1755a7b3a8f2b6cec61fbf0f5a53c94c30f03ba2e" 445 | url: "https://pub.dev" 446 | source: hosted 447 | version: "1.1.7" 448 | vector_math: 449 | dependency: transitive 450 | description: 451 | name: vector_math 452 | sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" 453 | url: "https://pub.dev" 454 | source: hosted 455 | version: "2.1.4" 456 | win32: 457 | dependency: transitive 458 | description: 459 | name: win32 460 | sha256: dfdf0136e0aa7a1b474ea133e67cb0154a0acd2599c4f3ada3b49d38d38793ee 461 | url: "https://pub.dev" 462 | source: hosted 463 | version: "5.0.5" 464 | xdg_directories: 465 | dependency: transitive 466 | description: 467 | name: xdg_directories 468 | sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1 469 | url: "https://pub.dev" 470 | source: hosted 471 | version: "1.0.0" 472 | xml: 473 | dependency: transitive 474 | description: 475 | name: xml 476 | sha256: "5bc72e1e45e941d825fd7468b9b4cc3b9327942649aeb6fc5cdbf135f0a86e84" 477 | url: "https://pub.dev" 478 | source: hosted 479 | version: "6.3.0" 480 | sdks: 481 | dart: ">=3.0.5 <4.0.0" 482 | flutter: ">=3.10.0" 483 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_tips_and_tricks 2 | description: Flutter Tips and Tricks - Simon Lightfoot - FlutterCon23 Talk 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 4 | 5 | version: 1.0.0+1 6 | 7 | environment: 8 | flutter: '>=3.10.0' 9 | sdk: '>=3.0.0 <4.0.0' 10 | 11 | dependencies: 12 | firebase_core: ^2.14.0 13 | flutter_svg: ^2.0.7 14 | flutter: 15 | sdk: flutter 16 | firebase_crashlytics: ^3.3.3 17 | go_router: ^9.0.0 18 | provider: ^6.0.5 19 | rxdart: ^0.27.7 20 | shared_preferences: ^2.2.0 21 | devangels_show_debug_paint: any 22 | 23 | dev_dependencies: 24 | flutter_lints: ^2.0.2 25 | flutter_test: 26 | sdk: flutter 27 | 28 | flutter: 29 | uses-material-design: true 30 | assets: 31 | - assets/ 32 | --------------------------------------------------------------------------------