├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── stackHelpOver │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Podfile.lock ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── app_restart_safe_state │ └── app_restart_safe_state.dart ├── async_func │ └── weather_view.dart ├── book-json │ └── book_json_view.dart ├── fire-store-document │ ├── documents.dart │ └── fire_store_view.dart ├── form │ └── form_validation.dart ├── future-builder │ ├── model │ │ ├── error_model.dart │ │ ├── http_cat_model.dart │ │ └── user_model.dart │ ├── service │ │ ├── IFutureService.dart │ │ └── future_service.dart │ └── view │ │ ├── future_builder_view.dart │ │ └── future_extension.dart ├── grid_fab │ └── grid_fab_view.dart ├── html_parse │ ├── html_parse.dart │ ├── html_parse_view.dart │ └── html_parse_view_model.dart ├── instagram_ui │ └── instagram_view.dart ├── list_search │ ├── list_search.dart │ ├── list_search_view.dart │ ├── list_search_view_model.dart │ └── model │ │ └── fixer.dart ├── main.dart ├── pinch_image_zoom │ ├── pinch_image_zoom.dart │ ├── pinch_image_zoom_view.dart │ └── pinch_image_zoom_view_model.dart ├── switch-on │ ├── custom_card.dart │ ├── custom_card_widget.dart │ └── switch_view.dart └── webview-local-listen │ └── web_view_local_view.dart ├── macos ├── .gitignore ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── app_icon_1024.png │ │ ├── app_icon_128.png │ │ ├── app_icon_16.png │ │ ├── app_icon_256.png │ │ ├── app_icon_32.png │ │ ├── app_icon_512.png │ │ └── app_icon_64.png │ ├── Base.lproj │ └── MainMenu.xib │ ├── Configs │ ├── AppInfo.xcconfig │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── Warnings.xcconfig │ ├── DebugProfile.entitlements │ ├── Info.plist │ ├── MainFlutterWindow.swift │ └── Release.entitlements ├── pubspec.lock ├── pubspec.yaml ├── test ├── datetime │ └── time_test.dart └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png └── Icon-512.png ├── index.html └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Exceptions to above rules. 44 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 45 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 9cc69d47a5a97fc5b7aea8dd08b84d3d322714c5 8 | channel: master 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Stack Help Over 2 | 3 | Only Flutter problem solutions.(stack overflow or any request) 4 | 5 | # Solutions 6 | 7 | 1. lib/form => [stackoverflow](https://stackoverflow.com/questions/61263795/flutter-raisedbutton-stays-null) 8 | 9 | 2. lib/list_serach=> How can i search text in listview? 10 | 11 | 3. lib/pinch_image_zoom => How can i pinch to zoom on image? 12 | 13 | 4. lib/pinch_image_zoom => How to define asynchronous build functions in Flutter? [stackoverflow](https://stackoverflow.com/questions/61314332/how-to-define-asynchronous-build-functions-in-flutter/61314468#61314468) 14 | 15 | 5. lib/instagram_ui => How to fix tab at top while scrolling inside listview in FLUTTER? 16 | [stackoverflow](https://stackoverflow.com/questions/61557729/how-to-fix-tab-at-top-while-scrolling-inside-listview-in-flutter) 17 | 18 | 6. lib/html-parser => Flutter - Rendering a HTML Unordered List [stackoverflow](https://stackoverflow.com/questions/61606636/flutter-rendering-a-html-unordered-list) 19 | 7. lib/switch-on => Selecting between diferent paddings in Flutter [stackoverflow](https://stackoverflow.com/questions/61673485/selecting-between-diferent-paddings-in-flutter/61674684#61674684) 20 | 8. lib/webview-local-liten => How can i listen html content on webview? 21 | 9. lib/app-restart-safe-state => [Flutter MaterialApp with navigatorKey and key is not restarting](https://stackoverflow.com/questions/63822655/flutter-materialapp-with-navigatorkey-and-key-is-not-restarting/63825615#63825615) 22 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.stackHelpOver" 42 | minSdkVersion 16 43 | targetSdkVersion 28 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/stackHelpOver/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.stackHelpOver 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | post_install do |installer| 82 | installer.pods_project.targets.each do |target| 83 | target.build_configurations.each do |config| 84 | config.build_settings['ENABLE_BITCODE'] = 'NO' 85 | end 86 | end 87 | end 88 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_webview_plugin (0.0.1): 4 | - Flutter 5 | - webview_flutter (0.0.1): 6 | - Flutter 7 | 8 | DEPENDENCIES: 9 | - Flutter (from `Flutter`) 10 | - flutter_webview_plugin (from `.symlinks/plugins/flutter_webview_plugin/ios`) 11 | - webview_flutter (from `.symlinks/plugins/webview_flutter/ios`) 12 | 13 | EXTERNAL SOURCES: 14 | Flutter: 15 | :path: Flutter 16 | flutter_webview_plugin: 17 | :path: ".symlinks/plugins/flutter_webview_plugin/ios" 18 | webview_flutter: 19 | :path: ".symlinks/plugins/webview_flutter/ios" 20 | 21 | SPEC CHECKSUMS: 22 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 23 | flutter_webview_plugin: ed9e8a6a96baf0c867e90e1bce2673913eeac694 24 | webview_flutter: d2b4d6c66968ad042ad94cbb791f5b72b4678a96 25 | 26 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a 27 | 28 | COCOAPODS: 1.9.3 29 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | F0A32A4E5B387BD0954DA20D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C298D27A77D6B309055CEF55 /* Pods_Runner.framework */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 34 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 35 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 36 | 5FF5D4B640FF8D6F91CCA6E8 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 37 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 38 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 39 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 40 | 9369617274354D9628DFCC68 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 41 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 42 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 43 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 48 | B5959F909F2CE473B5918F42 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 49 | C298D27A77D6B309055CEF55 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | F0A32A4E5B387BD0954DA20D /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 9740EEB11CF90186004384FC /* Flutter */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 68 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 69 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 70 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 71 | ); 72 | name = Flutter; 73 | sourceTree = ""; 74 | }; 75 | 97C146E51CF9000F007C117D = { 76 | isa = PBXGroup; 77 | children = ( 78 | 9740EEB11CF90186004384FC /* Flutter */, 79 | 97C146F01CF9000F007C117D /* Runner */, 80 | 97C146EF1CF9000F007C117D /* Products */, 81 | CFC5946A1CF49A6B8FBA6669 /* Pods */, 82 | BA467FA20DDBFE85344DE743 /* Frameworks */, 83 | ); 84 | sourceTree = ""; 85 | }; 86 | 97C146EF1CF9000F007C117D /* Products */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146EE1CF9000F007C117D /* Runner.app */, 90 | ); 91 | name = Products; 92 | sourceTree = ""; 93 | }; 94 | 97C146F01CF9000F007C117D /* Runner */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 98 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 99 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 100 | 97C147021CF9000F007C117D /* Info.plist */, 101 | 97C146F11CF9000F007C117D /* Supporting Files */, 102 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 103 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 104 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 105 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 106 | ); 107 | path = Runner; 108 | sourceTree = ""; 109 | }; 110 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | ); 114 | name = "Supporting Files"; 115 | sourceTree = ""; 116 | }; 117 | BA467FA20DDBFE85344DE743 /* Frameworks */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | C298D27A77D6B309055CEF55 /* Pods_Runner.framework */, 121 | ); 122 | name = Frameworks; 123 | sourceTree = ""; 124 | }; 125 | CFC5946A1CF49A6B8FBA6669 /* Pods */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 5FF5D4B640FF8D6F91CCA6E8 /* Pods-Runner.debug.xcconfig */, 129 | 9369617274354D9628DFCC68 /* Pods-Runner.release.xcconfig */, 130 | B5959F909F2CE473B5918F42 /* Pods-Runner.profile.xcconfig */, 131 | ); 132 | name = Pods; 133 | path = Pods; 134 | sourceTree = ""; 135 | }; 136 | /* End PBXGroup section */ 137 | 138 | /* Begin PBXNativeTarget section */ 139 | 97C146ED1CF9000F007C117D /* Runner */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 142 | buildPhases = ( 143 | 48DEC5BDB4EA7050038982A3 /* [CP] Check Pods Manifest.lock */, 144 | 9740EEB61CF901F6004384FC /* Run Script */, 145 | 97C146EA1CF9000F007C117D /* Sources */, 146 | 97C146EB1CF9000F007C117D /* Frameworks */, 147 | 97C146EC1CF9000F007C117D /* Resources */, 148 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 149 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 150 | F1D776422B344631015EDDF8 /* [CP] Embed Pods Frameworks */, 151 | ); 152 | buildRules = ( 153 | ); 154 | dependencies = ( 155 | ); 156 | name = Runner; 157 | productName = Runner; 158 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 159 | productType = "com.apple.product-type.application"; 160 | }; 161 | /* End PBXNativeTarget section */ 162 | 163 | /* Begin PBXProject section */ 164 | 97C146E61CF9000F007C117D /* Project object */ = { 165 | isa = PBXProject; 166 | attributes = { 167 | LastUpgradeCheck = 1020; 168 | ORGANIZATIONNAME = ""; 169 | TargetAttributes = { 170 | 97C146ED1CF9000F007C117D = { 171 | CreatedOnToolsVersion = 7.3.1; 172 | LastSwiftMigration = 1100; 173 | }; 174 | }; 175 | }; 176 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 177 | compatibilityVersion = "Xcode 9.3"; 178 | developmentRegion = en; 179 | hasScannedForEncodings = 0; 180 | knownRegions = ( 181 | en, 182 | Base, 183 | ); 184 | mainGroup = 97C146E51CF9000F007C117D; 185 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 186 | projectDirPath = ""; 187 | projectRoot = ""; 188 | targets = ( 189 | 97C146ED1CF9000F007C117D /* Runner */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 97C146EC1CF9000F007C117D /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 200 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 201 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 202 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 203 | ); 204 | runOnlyForDeploymentPostprocessing = 0; 205 | }; 206 | /* End PBXResourcesBuildPhase section */ 207 | 208 | /* Begin PBXShellScriptBuildPhase section */ 209 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 210 | isa = PBXShellScriptBuildPhase; 211 | buildActionMask = 2147483647; 212 | files = ( 213 | ); 214 | inputPaths = ( 215 | ); 216 | name = "Thin Binary"; 217 | outputPaths = ( 218 | ); 219 | runOnlyForDeploymentPostprocessing = 0; 220 | shellPath = /bin/sh; 221 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 222 | }; 223 | 48DEC5BDB4EA7050038982A3 /* [CP] Check Pods Manifest.lock */ = { 224 | isa = PBXShellScriptBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | inputFileListPaths = ( 229 | ); 230 | inputPaths = ( 231 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 232 | "${PODS_ROOT}/Manifest.lock", 233 | ); 234 | name = "[CP] Check Pods Manifest.lock"; 235 | outputFileListPaths = ( 236 | ); 237 | outputPaths = ( 238 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | shellPath = /bin/sh; 242 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 243 | showEnvVarsInLog = 0; 244 | }; 245 | 9740EEB61CF901F6004384FC /* Run Script */ = { 246 | isa = PBXShellScriptBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | ); 250 | inputPaths = ( 251 | ); 252 | name = "Run Script"; 253 | outputPaths = ( 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | shellPath = /bin/sh; 257 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 258 | }; 259 | F1D776422B344631015EDDF8 /* [CP] Embed Pods Frameworks */ = { 260 | isa = PBXShellScriptBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | inputPaths = ( 265 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", 266 | "${PODS_ROOT}/../Flutter/Flutter.framework", 267 | "${BUILT_PRODUCTS_DIR}/flutter_webview_plugin/flutter_webview_plugin.framework", 268 | "${BUILT_PRODUCTS_DIR}/webview_flutter/webview_flutter.framework", 269 | ); 270 | name = "[CP] Embed Pods Frameworks"; 271 | outputPaths = ( 272 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework", 273 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_webview_plugin.framework", 274 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/webview_flutter.framework", 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | shellPath = /bin/sh; 278 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 279 | showEnvVarsInLog = 0; 280 | }; 281 | /* End PBXShellScriptBuildPhase section */ 282 | 283 | /* Begin PBXSourcesBuildPhase section */ 284 | 97C146EA1CF9000F007C117D /* Sources */ = { 285 | isa = PBXSourcesBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 289 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | /* End PBXSourcesBuildPhase section */ 294 | 295 | /* Begin PBXVariantGroup section */ 296 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 297 | isa = PBXVariantGroup; 298 | children = ( 299 | 97C146FB1CF9000F007C117D /* Base */, 300 | ); 301 | name = Main.storyboard; 302 | sourceTree = ""; 303 | }; 304 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 305 | isa = PBXVariantGroup; 306 | children = ( 307 | 97C147001CF9000F007C117D /* Base */, 308 | ); 309 | name = LaunchScreen.storyboard; 310 | sourceTree = ""; 311 | }; 312 | /* End PBXVariantGroup section */ 313 | 314 | /* Begin XCBuildConfiguration section */ 315 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_ANALYZER_NONNULL = YES; 320 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 321 | CLANG_CXX_LIBRARY = "libc++"; 322 | CLANG_ENABLE_MODULES = YES; 323 | CLANG_ENABLE_OBJC_ARC = YES; 324 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 325 | CLANG_WARN_BOOL_CONVERSION = YES; 326 | CLANG_WARN_COMMA = YES; 327 | CLANG_WARN_CONSTANT_CONVERSION = YES; 328 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 329 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 330 | CLANG_WARN_EMPTY_BODY = YES; 331 | CLANG_WARN_ENUM_CONVERSION = YES; 332 | CLANG_WARN_INFINITE_RECURSION = YES; 333 | CLANG_WARN_INT_CONVERSION = YES; 334 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 335 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 336 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 339 | CLANG_WARN_STRICT_PROTOTYPES = YES; 340 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 341 | CLANG_WARN_UNREACHABLE_CODE = YES; 342 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 343 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 344 | COPY_PHASE_STRIP = NO; 345 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 346 | ENABLE_NS_ASSERTIONS = NO; 347 | ENABLE_STRICT_OBJC_MSGSEND = YES; 348 | GCC_C_LANGUAGE_STANDARD = gnu99; 349 | GCC_NO_COMMON_BLOCKS = YES; 350 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 351 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 352 | GCC_WARN_UNDECLARED_SELECTOR = YES; 353 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 354 | GCC_WARN_UNUSED_FUNCTION = YES; 355 | GCC_WARN_UNUSED_VARIABLE = YES; 356 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 357 | MTL_ENABLE_DEBUG_INFO = NO; 358 | SDKROOT = iphoneos; 359 | SUPPORTED_PLATFORMS = iphoneos; 360 | TARGETED_DEVICE_FAMILY = "1,2"; 361 | VALIDATE_PRODUCT = YES; 362 | }; 363 | name = Profile; 364 | }; 365 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 366 | isa = XCBuildConfiguration; 367 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 368 | buildSettings = { 369 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 370 | CLANG_ENABLE_MODULES = YES; 371 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 372 | ENABLE_BITCODE = NO; 373 | FRAMEWORK_SEARCH_PATHS = ( 374 | "$(inherited)", 375 | "$(PROJECT_DIR)/Flutter", 376 | ); 377 | INFOPLIST_FILE = Runner/Info.plist; 378 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 379 | LIBRARY_SEARCH_PATHS = ( 380 | "$(inherited)", 381 | "$(PROJECT_DIR)/Flutter", 382 | ); 383 | PRODUCT_BUNDLE_IDENTIFIER = com.example.stackHelpOver; 384 | PRODUCT_NAME = "$(TARGET_NAME)"; 385 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 386 | SWIFT_VERSION = 5.0; 387 | VERSIONING_SYSTEM = "apple-generic"; 388 | }; 389 | name = Profile; 390 | }; 391 | 97C147031CF9000F007C117D /* Debug */ = { 392 | isa = XCBuildConfiguration; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 412 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 413 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 414 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 415 | CLANG_WARN_STRICT_PROTOTYPES = YES; 416 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 417 | CLANG_WARN_UNREACHABLE_CODE = YES; 418 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 419 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 420 | COPY_PHASE_STRIP = NO; 421 | DEBUG_INFORMATION_FORMAT = dwarf; 422 | ENABLE_STRICT_OBJC_MSGSEND = YES; 423 | ENABLE_TESTABILITY = YES; 424 | GCC_C_LANGUAGE_STANDARD = gnu99; 425 | GCC_DYNAMIC_NO_PIC = NO; 426 | GCC_NO_COMMON_BLOCKS = YES; 427 | GCC_OPTIMIZATION_LEVEL = 0; 428 | GCC_PREPROCESSOR_DEFINITIONS = ( 429 | "DEBUG=1", 430 | "$(inherited)", 431 | ); 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | SDKROOT = iphoneos; 442 | TARGETED_DEVICE_FAMILY = "1,2"; 443 | }; 444 | name = Debug; 445 | }; 446 | 97C147041CF9000F007C117D /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | ALWAYS_SEARCH_USER_PATHS = NO; 450 | CLANG_ANALYZER_NONNULL = YES; 451 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 452 | CLANG_CXX_LIBRARY = "libc++"; 453 | CLANG_ENABLE_MODULES = YES; 454 | CLANG_ENABLE_OBJC_ARC = YES; 455 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 456 | CLANG_WARN_BOOL_CONVERSION = YES; 457 | CLANG_WARN_COMMA = YES; 458 | CLANG_WARN_CONSTANT_CONVERSION = YES; 459 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 460 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 461 | CLANG_WARN_EMPTY_BODY = YES; 462 | CLANG_WARN_ENUM_CONVERSION = YES; 463 | CLANG_WARN_INFINITE_RECURSION = YES; 464 | CLANG_WARN_INT_CONVERSION = YES; 465 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 467 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 468 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 469 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 470 | CLANG_WARN_STRICT_PROTOTYPES = YES; 471 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 472 | CLANG_WARN_UNREACHABLE_CODE = YES; 473 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 474 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 475 | COPY_PHASE_STRIP = NO; 476 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 477 | ENABLE_NS_ASSERTIONS = NO; 478 | ENABLE_STRICT_OBJC_MSGSEND = YES; 479 | GCC_C_LANGUAGE_STANDARD = gnu99; 480 | GCC_NO_COMMON_BLOCKS = YES; 481 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 482 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 483 | GCC_WARN_UNDECLARED_SELECTOR = YES; 484 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 485 | GCC_WARN_UNUSED_FUNCTION = YES; 486 | GCC_WARN_UNUSED_VARIABLE = YES; 487 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 488 | MTL_ENABLE_DEBUG_INFO = NO; 489 | SDKROOT = iphoneos; 490 | SUPPORTED_PLATFORMS = iphoneos; 491 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 492 | TARGETED_DEVICE_FAMILY = "1,2"; 493 | VALIDATE_PRODUCT = YES; 494 | }; 495 | name = Release; 496 | }; 497 | 97C147061CF9000F007C117D /* Debug */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | CLANG_ENABLE_MODULES = YES; 503 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 504 | ENABLE_BITCODE = NO; 505 | FRAMEWORK_SEARCH_PATHS = ( 506 | "$(inherited)", 507 | "$(PROJECT_DIR)/Flutter", 508 | ); 509 | INFOPLIST_FILE = Runner/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 511 | LIBRARY_SEARCH_PATHS = ( 512 | "$(inherited)", 513 | "$(PROJECT_DIR)/Flutter", 514 | ); 515 | PRODUCT_BUNDLE_IDENTIFIER = com.example.stackHelpOver; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 518 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 519 | SWIFT_VERSION = 5.0; 520 | VERSIONING_SYSTEM = "apple-generic"; 521 | }; 522 | name = Debug; 523 | }; 524 | 97C147071CF9000F007C117D /* Release */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 527 | buildSettings = { 528 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 529 | CLANG_ENABLE_MODULES = YES; 530 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 531 | ENABLE_BITCODE = NO; 532 | FRAMEWORK_SEARCH_PATHS = ( 533 | "$(inherited)", 534 | "$(PROJECT_DIR)/Flutter", 535 | ); 536 | INFOPLIST_FILE = Runner/Info.plist; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 538 | LIBRARY_SEARCH_PATHS = ( 539 | "$(inherited)", 540 | "$(PROJECT_DIR)/Flutter", 541 | ); 542 | PRODUCT_BUNDLE_IDENTIFIER = com.example.stackHelpOver; 543 | PRODUCT_NAME = "$(TARGET_NAME)"; 544 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 545 | SWIFT_VERSION = 5.0; 546 | VERSIONING_SYSTEM = "apple-generic"; 547 | }; 548 | name = Release; 549 | }; 550 | /* End XCBuildConfiguration section */ 551 | 552 | /* Begin XCConfigurationList section */ 553 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 554 | isa = XCConfigurationList; 555 | buildConfigurations = ( 556 | 97C147031CF9000F007C117D /* Debug */, 557 | 97C147041CF9000F007C117D /* Release */, 558 | 249021D3217E4FDB00AE95B9 /* Profile */, 559 | ); 560 | defaultConfigurationIsVisible = 0; 561 | defaultConfigurationName = Release; 562 | }; 563 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 97C147061CF9000F007C117D /* Debug */, 567 | 97C147071CF9000F007C117D /* Release */, 568 | 249021D4217E4FDB00AE95B9 /* Profile */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | /* End XCConfigurationList section */ 574 | }; 575 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 576 | } 577 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/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/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | stackHelpOver 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/app_restart_safe_state/app_restart_safe_state.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | 4 | void main() { 5 | runApp(MyApp()); 6 | } 7 | 8 | class MyApp extends StatefulWidget { 9 | @override 10 | _MyAppState createState() => _MyAppState(); 11 | } 12 | 13 | class _MyAppState extends State { 14 | final GlobalKey _navigatorKey = GlobalKey(); 15 | UniqueKey _materialKey; 16 | UniqueKey _homeKey; 17 | 18 | @override 19 | void initState() { 20 | super.initState(); 21 | _awaitAndRun(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return MaterialApp( 27 | //key: _materialKey, 28 | navigatorKey: _navigatorKey, 29 | title: 'Flutter Demo', 30 | theme: ThemeData( 31 | primarySwatch: Colors.blue, 32 | visualDensity: VisualDensity.adaptivePlatformDensity, 33 | ), 34 | home: Provider( 35 | create: (context) => ToysGame(), 36 | child: MyHomePage( 37 | key: _homeKey, 38 | title: 'Flutter Demo Home Page', 39 | ), 40 | ), 41 | ); 42 | } 43 | 44 | Future _awaitAndRun() async { 45 | print('Starting delay... Please press the button before the time ends.'); 46 | await Future.delayed(Duration(seconds: 5)); 47 | setState(() { 48 | _materialKey = UniqueKey(); 49 | _homeKey = UniqueKey(); 50 | }); 51 | print('Has been the screen reloaded?'); 52 | } 53 | } 54 | 55 | class MyHomePage extends StatefulWidget { 56 | MyHomePage({Key key, this.title}) : super(key: key); 57 | 58 | final String title; 59 | 60 | @override 61 | _MyHomePageState createState() => _MyHomePageState(); 62 | } 63 | 64 | class _MyHomePageState extends State { 65 | void _incrementCounter() { 66 | Provider.of(context, listen: false).count++; 67 | setState(() {}); 68 | } 69 | 70 | @override 71 | Widget build(BuildContext context) { 72 | return Scaffold( 73 | appBar: AppBar( 74 | title: Text(widget.title), 75 | ), 76 | body: Center( 77 | child: Column( 78 | mainAxisAlignment: MainAxisAlignment.center, 79 | children: [ 80 | Text( 81 | 'You have pushed the button this many times:', 82 | ), 83 | Text( 84 | Provider.of(context).count.toString(), 85 | style: Theme.of(context).textTheme.headline4, 86 | ), 87 | ], 88 | ), 89 | ), 90 | floatingActionButton: FloatingActionButton( 91 | onPressed: _incrementCounter, 92 | tooltip: 'Increment', 93 | child: Icon(Icons.add), 94 | ), 95 | ); 96 | } 97 | } 98 | 99 | class ToysGame { 100 | int count = 5; 101 | 102 | void incrementNumber() { 103 | count++; 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /lib/async_func/weather_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class WeatherView extends StatefulWidget { 4 | @override 5 | _WeatherViewState createState() => _WeatherViewState(); 6 | } 7 | 8 | class _WeatherViewState extends State { 9 | // MARK: USE CASE 1 10 | Future getTemp() async { 11 | // get api call 12 | await Future.delayed(Duration(seconds: 1)); 13 | return 5; 14 | } 15 | 16 | int value; 17 | 18 | Future getTemp2() async { 19 | // get api call 20 | await Future.delayed(Duration(seconds: 1)); 21 | setState(() { 22 | value = 5; 23 | }); 24 | } 25 | 26 | @override 27 | void initState() { 28 | super.initState(); 29 | Future.microtask(() => getTemp2()); 30 | } 31 | 32 | @override 33 | Widget build(BuildContext context) { 34 | return Scaffold( 35 | body: Center( 36 | child: Text("${value ?? "-"}"), 37 | ), 38 | ); 39 | } 40 | 41 | FutureBuilder buildFutureBuilder() { 42 | return FutureBuilder( 43 | future: getTemp(), 44 | initialData: 0, 45 | builder: (BuildContext context, AsyncSnapshot snapshot) { 46 | switch (snapshot.connectionState) { 47 | case ConnectionState.done: 48 | if (snapshot.hasData) { 49 | return Text("${snapshot.data}"); 50 | } 51 | return Text("Erorr"); 52 | break; 53 | default: 54 | return Center( 55 | child: CircularProgressIndicator(), 56 | ); 57 | } 58 | }, 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/book-json/book_json_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class BookJsonView extends StatefulWidget { 4 | @override 5 | _BookJsonViewState createState() => _BookJsonViewState(); 6 | } 7 | 8 | class _BookJsonViewState extends State { 9 | List books = [ 10 | BookModel("Genesis", Book(1, "24", [1, 1, 2, 3])) 11 | ]; 12 | 13 | @override 14 | void initState() { 15 | super.initState(); 16 | // fill json use json to dart 17 | } 18 | 19 | List getChapters(String name) { 20 | final model = books.firstWhere((item) => item.name == name); 21 | if (model != null) { 22 | print("Is okey"); 23 | return model.book.chapters; 24 | } 25 | 26 | return null; 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | return Scaffold( 32 | body: ListView.builder( 33 | itemBuilder: (context, index) { 34 | return ListTile( 35 | onTap: () { 36 | getChapters(books[index].name); 37 | }, 38 | title: Text( 39 | books[index].name, 40 | )); 41 | }, 42 | ), 43 | ); 44 | } 45 | } 46 | 47 | class Book { 48 | final int id; 49 | List chapters; 50 | 51 | final String description; 52 | Book(this.id, this.description, this.chapters); 53 | } 54 | 55 | class BookModel { 56 | String name; 57 | Book book; 58 | BookModel(this.name, this.book); 59 | } 60 | -------------------------------------------------------------------------------- /lib/fire-store-document/documents.dart: -------------------------------------------------------------------------------- 1 | class Document { 2 | List documents; 3 | 4 | Document({this.documents}); 5 | 6 | Document.fromJson(Map json) { 7 | if (json['documents'] != null) { 8 | documents = new List(); 9 | json['documents'].forEach((v) { 10 | documents.add(new Documents.fromJson(v)); 11 | }); 12 | } 13 | } 14 | 15 | Map toJson() { 16 | final Map data = new Map(); 17 | if (this.documents != null) { 18 | data['documents'] = this.documents.map((v) => v.toJson()).toList(); 19 | } 20 | return data; 21 | } 22 | } 23 | 24 | class Documents { 25 | String name; 26 | Fields fields; 27 | String createTime; 28 | String updateTime; 29 | 30 | Documents({this.name, this.fields, this.createTime, this.updateTime}); 31 | 32 | Documents.fromJson(Map json) { 33 | name = json['name']; 34 | fields = 35 | json['fields'] != null ? new Fields.fromJson(json['fields']) : null; 36 | createTime = json['createTime']; 37 | updateTime = json['updateTime']; 38 | } 39 | 40 | Map toJson() { 41 | final Map data = new Map(); 42 | data['name'] = this.name; 43 | if (this.fields != null) { 44 | data['fields'] = this.fields.toJson(); 45 | } 46 | data['createTime'] = this.createTime; 47 | data['updateTime'] = this.updateTime; 48 | return data; 49 | } 50 | } 51 | 52 | class Fields { 53 | ImgUrl imgUrl; 54 | ImgUrl authorName; 55 | ImgUrl title; 56 | ImgUrl desc; 57 | 58 | Fields({this.imgUrl, this.authorName, this.title, this.desc}); 59 | 60 | Fields.fromJson(Map json) { 61 | imgUrl = 62 | json['imgUrl'] != null ? new ImgUrl.fromJson(json['imgUrl']) : null; 63 | authorName = json['authorName'] != null 64 | ? new ImgUrl.fromJson(json['authorName']) 65 | : null; 66 | title = json['title'] != null ? new ImgUrl.fromJson(json['title']) : null; 67 | desc = json['desc'] != null ? new ImgUrl.fromJson(json['desc']) : null; 68 | } 69 | 70 | Map toJson() { 71 | final Map data = new Map(); 72 | if (this.imgUrl != null) { 73 | data['imgUrl'] = this.imgUrl.toJson(); 74 | } 75 | if (this.authorName != null) { 76 | data['authorName'] = this.authorName.toJson(); 77 | } 78 | if (this.title != null) { 79 | data['title'] = this.title.toJson(); 80 | } 81 | if (this.desc != null) { 82 | data['desc'] = this.desc.toJson(); 83 | } 84 | return data; 85 | } 86 | } 87 | 88 | class ImgUrl { 89 | String stringValue; 90 | 91 | ImgUrl({this.stringValue}); 92 | 93 | ImgUrl.fromJson(Map json) { 94 | stringValue = json['stringValue']; 95 | } 96 | 97 | Map toJson() { 98 | final Map data = new Map(); 99 | data['stringValue'] = this.stringValue; 100 | return data; 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /lib/fire-store-document/fire_store_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'documents.dart'; 4 | 5 | class FireStoreView extends StatelessWidget { 6 | List dummyItems = [ 7 | Document(documents: [ 8 | Documents( 9 | name: "vb", 10 | createTime: DateTime.now().toString(), 11 | updateTime: DateTime.now().toString(), 12 | fields: Fields( 13 | authorName: ImgUrl(stringValue: "Vv"), 14 | desc: ImgUrl(stringValue: "vvv"), 15 | imgUrl: ImgUrl(stringValue: "ss"), 16 | title: ImgUrl(stringValue: "sssx"), 17 | )) 18 | ]) 19 | ]; 20 | 21 | Future> getDocuments() async { 22 | await Future.delayed(Duration(seconds: 100)); 23 | return dummyItems; 24 | } 25 | 26 | Future> getFieldsOnly() async { 27 | final response = await getDocuments(); 28 | return response.expand((f) => f.documents).toList(); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | return FutureBuilder>( 34 | future: getDocuments(), 35 | builder: (BuildContext context, AsyncSnapshot> snapshot) { 36 | if (snapshot.hasData) { 37 | return ListView.builder( 38 | itemCount: snapshot.data.length, 39 | shrinkWrap: true, 40 | itemBuilder: (context, index) { 41 | return buildListView(snapshot.data[index].documents); 42 | }, 43 | ); 44 | } else { 45 | return Text("error"); 46 | } 47 | }, 48 | ); 49 | } 50 | 51 | ListView buildListView(List documents) { 52 | return ListView.builder( 53 | itemCount: documents.length, 54 | itemBuilder: (context, index) => ListTile( 55 | title: Text(documents[index].name), 56 | leading: Text(documents[index].fields.imgUrl.stringValue), 57 | subtitle: Text(documents[index].fields.desc.stringValue), 58 | ), 59 | ); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /lib/form/form_validation.dart: -------------------------------------------------------------------------------- 1 | //https://stackoverflow.com/questions/61263795/flutter-raisedbutton-stays-null 2 | import 'package:flutter/material.dart'; 3 | 4 | class FormValidationView extends StatefulWidget { 5 | @override 6 | _FormValidationViewState createState() => _FormValidationViewState(); 7 | } 8 | 9 | class _FormValidationViewState extends State { 10 | TextEditingController _userNameController; 11 | TextEditingController _emailController; 12 | GlobalKey _formKey = GlobalKey(); 13 | bool isValid = false; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | _userNameController = TextEditingController(); 19 | _emailController = TextEditingController(); 20 | } 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | return Scaffold( 25 | appBar: AppBar(), 26 | body: buildForm(), 27 | ); 28 | } 29 | 30 | Form buildForm() { 31 | return Form( 32 | key: _formKey, 33 | onChanged: () { 34 | setState(() { 35 | isValid = _formKey.currentState.validate(); 36 | }); 37 | }, 38 | child: buildColumn(), 39 | ); 40 | } 41 | 42 | Column buildColumn() { 43 | return Column( 44 | children: [ 45 | buildTextFormFieldUserName(), 46 | buildTextFormFieldEmail(), 47 | buildRaisedButtonSave() 48 | ], 49 | ); 50 | } 51 | 52 | RaisedButton buildRaisedButtonSave() { 53 | return RaisedButton( 54 | onPressed: !isValid ? null : () {}, 55 | child: Icon(Icons.check), 56 | ); 57 | } 58 | 59 | TextFormField buildTextFormFieldEmail() => TextFormField( 60 | controller: _emailController, 61 | validator: isEmpty, 62 | ); 63 | 64 | TextFormField buildTextFormFieldUserName() { 65 | return TextFormField(validator: isEmpty, controller: _userNameController); 66 | } 67 | 68 | String isEmpty(String text) { 69 | return text.isEmpty ? "It's required" : null; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /lib/future-builder/model/error_model.dart: -------------------------------------------------------------------------------- 1 | class ErrorModel { 2 | final String message; 3 | 4 | ErrorModel(this.message); 5 | } 6 | -------------------------------------------------------------------------------- /lib/future-builder/model/http_cat_model.dart: -------------------------------------------------------------------------------- 1 | class HttpCatModel { 2 | String description; 3 | String imageUrl; 4 | int statusCode; 5 | 6 | HttpCatModel({this.description, this.imageUrl, this.statusCode}); 7 | 8 | HttpCatModel.fromJson(Map json) { 9 | description = json['description']; 10 | imageUrl = json['imageUrl']; 11 | statusCode = json['statusCode']; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['description'] = this.description; 17 | data['imageUrl'] = this.imageUrl; 18 | data['statusCode'] = this.statusCode; 19 | return data; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/future-builder/model/user_model.dart: -------------------------------------------------------------------------------- 1 | class UserModel { 2 | int id; 3 | String name; 4 | String username; 5 | String email; 6 | Address address; 7 | String phone; 8 | String website; 9 | Company company; 10 | 11 | UserModel({this.id, this.name, this.username, this.email, this.address, this.phone, this.website, this.company}); 12 | 13 | UserModel.fromJson(Map json) { 14 | id = json['id']; 15 | name = json['name']; 16 | username = json['username']; 17 | email = json['email']; 18 | address = json['address'] != null ? new Address.fromJson(json['address']) : null; 19 | phone = json['phone']; 20 | website = json['website']; 21 | company = json['company'] != null ? new Company.fromJson(json['company']) : null; 22 | } 23 | 24 | Map toJson() { 25 | final Map data = new Map(); 26 | data['id'] = this.id; 27 | data['name'] = this.name; 28 | data['username'] = this.username; 29 | data['email'] = this.email; 30 | if (this.address != null) { 31 | data['address'] = this.address.toJson(); 32 | } 33 | data['phone'] = this.phone; 34 | data['website'] = this.website; 35 | if (this.company != null) { 36 | data['company'] = this.company.toJson(); 37 | } 38 | return data; 39 | } 40 | } 41 | 42 | class Address { 43 | String street; 44 | String suite; 45 | String city; 46 | String zipcode; 47 | Geo geo; 48 | 49 | Address({this.street, this.suite, this.city, this.zipcode, this.geo}); 50 | 51 | Address.fromJson(Map json) { 52 | street = json['street']; 53 | suite = json['suite']; 54 | city = json['city']; 55 | zipcode = json['zipcode']; 56 | geo = json['geo'] != null ? new Geo.fromJson(json['geo']) : null; 57 | } 58 | 59 | Map toJson() { 60 | final Map data = new Map(); 61 | data['street'] = this.street; 62 | data['suite'] = this.suite; 63 | data['city'] = this.city; 64 | data['zipcode'] = this.zipcode; 65 | if (this.geo != null) { 66 | data['geo'] = this.geo.toJson(); 67 | } 68 | return data; 69 | } 70 | } 71 | 72 | class Geo { 73 | String lat; 74 | String lng; 75 | 76 | Geo({this.lat, this.lng}); 77 | 78 | Geo.fromJson(Map json) { 79 | lat = json['lat']; 80 | lng = json['lng']; 81 | } 82 | 83 | Map toJson() { 84 | final Map data = new Map(); 85 | data['lat'] = this.lat; 86 | data['lng'] = this.lng; 87 | return data; 88 | } 89 | } 90 | 91 | class Company { 92 | String name; 93 | String catchPhrase; 94 | String bs; 95 | 96 | Company({this.name, this.catchPhrase, this.bs}); 97 | 98 | Company.fromJson(Map json) { 99 | name = json['name']; 100 | catchPhrase = json['catchPhrase']; 101 | bs = json['bs']; 102 | } 103 | 104 | Map toJson() { 105 | final Map data = new Map(); 106 | data['name'] = this.name; 107 | data['catchPhrase'] = this.catchPhrase; 108 | data['bs'] = this.bs; 109 | return data; 110 | } 111 | } 112 | -------------------------------------------------------------------------------- /lib/future-builder/service/IFutureService.dart: -------------------------------------------------------------------------------- 1 | import '../model/http_cat_model.dart'; 2 | import '../model/user_model.dart'; 3 | 4 | abstract class IFutureService { 5 | Future> getHttpCatList(String path); 6 | Future> getHttpUserModel(String path); 7 | } 8 | -------------------------------------------------------------------------------- /lib/future-builder/service/future_service.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:dio/dio.dart'; 4 | import 'package:stackHelpOver/future-builder/model/http_cat_model.dart'; 5 | import 'package:stackHelpOver/future-builder/service/IFutureService.dart'; 6 | import 'package:stackHelpOver/future-builder/model/user_model.dart'; 7 | 8 | import '../model/error_model.dart'; 9 | 10 | class FutureService extends IFutureService { 11 | final dio = Dio(); 12 | 13 | dynamic _getDioRequest(String path) async { 14 | final response = await dio.get(path); 15 | switch (response.statusCode) { 16 | case HttpStatus.ok: 17 | return response.data; 18 | default: 19 | return ErrorModel(response.statusMessage); 20 | } 21 | } 22 | 23 | @override 24 | Future> getHttpCatList(String path) async { 25 | final response = await _getDioRequest(path); 26 | if (response is List) { 27 | return response.map((e) => HttpCatModel.fromJson(e)).toList(); 28 | } else { 29 | throw response; 30 | } 31 | } 32 | 33 | @override 34 | Future> getHttpUserModel(String path) async { 35 | final response = await _getDioRequest(path); 36 | if (response is List) { 37 | return response.map((e) => UserModel.fromJson(e)).toList(); 38 | } else { 39 | throw response; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/future-builder/view/future_builder_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '../model/http_cat_model.dart'; 4 | import '../model/user_model.dart'; 5 | import '../service/IFutureService.dart'; 6 | import '../service/future_service.dart'; 7 | import 'future_extension.dart'; 8 | 9 | class FutureView extends StatefulWidget { 10 | @override 11 | _FutureViewState createState() => _FutureViewState(); 12 | } 13 | 14 | class _FutureViewState extends State with AutomaticKeepAliveClientMixin { 15 | final httpCatPath = "https://hwasampleapi.firebaseio.com/http.json"; 16 | final userPath = "https://jsonplaceholder.typicode.com/users"; 17 | bool isLoading = false; 18 | List catsList = []; 19 | 20 | IFutureService futureService; 21 | 22 | Future> http; 23 | Future> httpUser; 24 | @override 25 | void initState() { 26 | super.initState(); 27 | futureService = FutureService(); 28 | httpUser = futureService.getHttpUserModel(userPath); 29 | } 30 | 31 | @override 32 | Widget build(BuildContext context) { 33 | super.build(context); 34 | return Scaffold( 35 | appBar: AppBar(title: buildTitleLaoding), 36 | body: httpUser.toBuild>( 37 | onSucces: (data) { 38 | return buildListViewUser(data); 39 | }, 40 | )); 41 | } 42 | 43 | ListView buildListViewUser(List users) { 44 | return ListView.builder( 45 | padding: EdgeInsets.all(10), 46 | itemCount: users.length, 47 | itemBuilder: (context, index) { 48 | return Padding( 49 | padding: EdgeInsets.all(8.0), 50 | child: ListTile( 51 | leading: Text(users[index].name), 52 | title: Text(users[index].company.name), 53 | ), 54 | ); 55 | }, 56 | ); 57 | } 58 | 59 | ListView buildListView(List cats) { 60 | return ListView.builder( 61 | padding: EdgeInsets.all(10), 62 | itemCount: cats.length, 63 | itemBuilder: (context, index) { 64 | return Padding( 65 | padding: EdgeInsets.all(8.0), 66 | child: ListTile( 67 | leading: Image.network(cats[index].imageUrl), 68 | title: Text(cats[index].description), 69 | ), 70 | ); 71 | }, 72 | ); 73 | } 74 | 75 | Widget get buildTitleLaoding { 76 | return isLoading 77 | ? CircularProgressIndicator( 78 | valueColor: AlwaysStoppedAnimation(Colors.white), 79 | ) 80 | : Text("Http Cats"); 81 | } 82 | 83 | @override 84 | // TODO: implement wantKeepAlive 85 | bool get wantKeepAlive => true; 86 | } 87 | -------------------------------------------------------------------------------- /lib/future-builder/view/future_extension.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:lottie/lottie.dart'; 4 | 5 | extension FutureExtension on Future { 6 | Widget toBuild({Widget Function(T data) onSucces, Widget onError}) { 7 | return FutureBuilder( 8 | future: this, 9 | builder: (context, snapshot) { 10 | switch (snapshot.connectionState) { 11 | case ConnectionState.active: 12 | case ConnectionState.waiting: 13 | return _centerLoading; 14 | case ConnectionState.done: 15 | if (snapshot.hasData) { 16 | return Padding( 17 | padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10), 18 | child: onSucces(snapshot.data), 19 | ); 20 | } else { 21 | if (onError != null) return onError; 22 | final errorModel = snapshot.error as DioError; 23 | return Center(child: Text(errorModel.message)); 24 | } 25 | 26 | break; 27 | default: 28 | return _networkNotFound; 29 | } 30 | }, 31 | ); 32 | } 33 | 34 | LottieBuilder get _networkNotFound => Lottie.network("https://assets9.lottiefiles.com/temp/lf20_B7BO04.json"); 35 | 36 | Center get _centerLoading => 37 | Center(child: Lottie.network("https://assets6.lottiefiles.com/packages/lf20_pMMQPe.json")); 38 | } 39 | -------------------------------------------------------------------------------- /lib/grid_fab/grid_fab_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class GridFabView extends StatefulWidget { 4 | @override 5 | _GridFabViewState createState() => _GridFabViewState(); 6 | } 7 | 8 | class _GridFabViewState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Scaffold( 12 | body: GridView.count( 13 | crossAxisCount: 3, 14 | childAspectRatio: 1.5, 15 | crossAxisSpacing: 10, 16 | mainAxisSpacing: 10, 17 | children: [ 18 | FloatingActionButton(onPressed: () {}), 19 | FloatingActionButton(onPressed: () {}), 20 | FloatingActionButton(onPressed: () {}), 21 | FloatingActionButton(onPressed: () {}), 22 | FloatingActionButton(onPressed: () {}), 23 | FloatingActionButton(onPressed: () {}), 24 | ], 25 | ), 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /lib/html_parse/html_parse.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './html_parse_view.dart'; 3 | 4 | class HtmlParse extends StatefulWidget { 5 | 6 | @override 7 | HtmlParseView createState() => new HtmlParseView(); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /lib/html_parse/html_parse_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_html/flutter_html.dart'; 3 | import './html_parse_view_model.dart'; 4 | 5 | class HtmlParseView extends HtmlParseViewModel { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | body: Html( 10 | data: data, 11 | useRichText: false, 12 | customRender: htmlCustomRenderer, 13 | ), 14 | ); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /lib/html_parse/html_parse_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './html_parse.dart'; 3 | import 'package:html/dom.dart' as dom; 4 | 5 | abstract class HtmlParseViewModel extends State { 6 | // Add your state and logic here 7 | 8 | final data = """ 9 | 10 |
11 |

Demo Page

12 |

This is a fantastic nonexistent product that you should buy!

13 |

Pricing

14 |

Lorem ipsum dolor sit amet.

15 |

The Team

16 |

There isn't really a team...

17 | 18 |

Installation

19 |
    20 |
  • Coffee
  • 21 |
  • Tea
  • 22 |
  • Milk
  • 23 |
24 |

You cannot install a nonexistent product!

25 | 26 |
27 | """; 28 | 29 | Widget htmlCustomRenderer(dom.Node node, List children) { 30 | if (node is dom.Element) { 31 | switch (node.localName) { 32 | case "li": 33 | return customListItem(node); 34 | } 35 | } 36 | return null; 37 | } 38 | 39 | Wrap customListItem(dom.Element node) { 40 | return Wrap( 41 | crossAxisAlignment: WrapCrossAlignment.center, 42 | spacing: 5, 43 | children: [ 44 | CircleAvatar( 45 | radius: 5, 46 | ), 47 | Text(node.text) 48 | ], 49 | ); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /lib/instagram_ui/instagram_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class InstagramView extends StatefulWidget { 4 | @override 5 | _InstagramViewState createState() => _InstagramViewState(); 6 | } 7 | 8 | class _InstagramViewState extends State { 9 | @override 10 | Widget build(BuildContext context) { 11 | return DefaultTabController( 12 | length: 3, 13 | child: Scaffold( 14 | appBar: buildAppBarFixed(), 15 | body: CustomScrollView( 16 | slivers: [ 17 | buildSliverToBoxAdapterHeader(), 18 | buildSliverAppBarCollepse(), 19 | buildSliverGridBody() 20 | ], 21 | ), 22 | ), 23 | ); 24 | } 25 | 26 | SliverGrid buildSliverGridBody() { 27 | return SliverGrid.count( 28 | crossAxisCount: 3, 29 | children: List.generate( 30 | 30, 31 | (index) => Card( 32 | child: Text("$index"), 33 | )), 34 | ); 35 | } 36 | 37 | SliverAppBar buildSliverAppBarCollepse() { 38 | return SliverAppBar( 39 | pinned: true, 40 | title: TabBar(tabs: [ 41 | Tab( 42 | icon: Icon(Icons.ac_unit), 43 | ), 44 | Tab( 45 | icon: Icon(Icons.ac_unit), 46 | ), 47 | Tab( 48 | icon: Icon(Icons.ac_unit), 49 | ), 50 | ]), 51 | ); 52 | } 53 | 54 | SliverToBoxAdapter buildSliverToBoxAdapterHeader() { 55 | return SliverToBoxAdapter( 56 | child: AspectRatio(aspectRatio: 2 / 1, child: Placeholder()), 57 | ); 58 | } 59 | 60 | AppBar buildAppBarFixed() { 61 | return AppBar( 62 | leading: Icon(Icons.arrow_back), 63 | title: Text("Instagram UI"), 64 | centerTitle: false, 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /lib/list_search/list_search.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './list_search_view.dart'; 3 | 4 | class ListSearch extends StatefulWidget { 5 | 6 | @override 7 | ListSearchView createState() => new ListSearchView(); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /lib/list_search/list_search_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './list_search_view_model.dart'; 3 | import 'model/fixer.dart'; 4 | 5 | class ListSearchView extends ListSearchViewModel { 6 | Future request; 7 | 8 | @override 9 | void initState() { 10 | super.initState(); 11 | request = getFixerAllItem(); 12 | } 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | // Replace this with your build function 17 | return Scaffold( 18 | appBar: AppBar( 19 | title: Text("Fixer"), 20 | ), 21 | body: buildFutureBuilder(), 22 | ); 23 | } 24 | 25 | FutureBuilder buildFutureBuilder() { 26 | return FutureBuilder( 27 | initialData: Fixer(), 28 | future: request, 29 | builder: (context, snapshot) { 30 | switch (snapshot.connectionState) { 31 | case ConnectionState.done: 32 | if (snapshot.hasData) { 33 | return listWidgets(snapshot.data); 34 | } else 35 | return Center( 36 | child: Text("Not Found"), 37 | ); 38 | break; 39 | default: 40 | return Center( 41 | child: CircularProgressIndicator(), 42 | ); 43 | } 44 | }, 45 | ); 46 | } 47 | 48 | Widget listWidgets(Fixer item) { 49 | return ListView( 50 | children: [textFieldSearch(), ...list(searchRates)], 51 | ); 52 | } 53 | 54 | List list(List rates) { 55 | return List.generate( 56 | rates.length, 57 | (index) => ListTile( 58 | title: Text("${rates[index].key} - ${rates[index].value}"), 59 | )); 60 | } 61 | 62 | TextField textFieldSearch() => TextField( 63 | onChanged: (value) { 64 | searchRates = rates 65 | .where((element) => element.key.contains(value.toUpperCase())) 66 | .toList(); 67 | 68 | setState(() {}); 69 | print(searchRates.length); 70 | // ratesMap = ratesMap. 71 | }, 72 | ); 73 | } 74 | -------------------------------------------------------------------------------- /lib/list_search/list_search_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:dio/dio.dart'; 2 | import 'package:flutter/material.dart'; 3 | import './list_search.dart'; 4 | import 'model/fixer.dart'; 5 | 6 | abstract class ListSearchViewModel extends State { 7 | // Add your state and logic here 8 | final baseUrl = 9 | "http://data.fixer.io/api/latest?access_key=579e1b52ffcb588ac06f34dee6a09a1d"; 10 | Dio dio = Dio(); 11 | 12 | Fixer fixer; 13 | List rates = []; 14 | List searchRates = []; 15 | Future getFixerAllItem() async { 16 | if (fixer != null) { 17 | return fixer; 18 | } else { 19 | final response = await dio.get(baseUrl); 20 | final data = parseBody(response.data); 21 | if (data is Fixer) { 22 | fixer = data; 23 | 24 | data.rates.toJson().forEach((key, value) { 25 | rates.add(RatesModel(key, value)); 26 | }); 27 | searchRates.addAll(rates); 28 | } 29 | 30 | return data; 31 | } 32 | } 33 | 34 | dynamic parseBody(dynamic responseBody) { 35 | try { 36 | dio.clear(); 37 | 38 | if (responseBody is List) { 39 | return responseBody 40 | .map((data) => Fixer.fromJson(data)) 41 | .cast() 42 | .toList(); 43 | } else if (responseBody is Map) { 44 | return Fixer.fromJson(responseBody); 45 | } else { 46 | return responseBody; 47 | } 48 | } catch (e) { 49 | print(e); 50 | return responseBody; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/list_search/model/fixer.dart: -------------------------------------------------------------------------------- 1 | class Fixer { 2 | bool success; 3 | int timestamp; 4 | String base; 5 | String date; 6 | Rates rates; 7 | 8 | Fixer({this.success, this.timestamp, this.base, this.date, this.rates}); 9 | 10 | Fixer.fromJson(Map json) { 11 | success = json['success']; 12 | timestamp = json['timestamp']; 13 | base = json['base']; 14 | date = json['date']; 15 | rates = json['rates'] != null ? new Rates.fromJson(json['rates']) : null; 16 | } 17 | 18 | Map toJson() { 19 | final Map data = new Map(); 20 | data['success'] = this.success; 21 | data['timestamp'] = this.timestamp; 22 | data['base'] = this.base; 23 | data['date'] = this.date; 24 | if (this.rates != null) { 25 | data['rates'] = this.rates.toJson(); 26 | } 27 | return data; 28 | } 29 | } 30 | 31 | class RatesModel { 32 | final String key; 33 | final double value; 34 | 35 | RatesModel(this.key, this.value); 36 | } 37 | 38 | class Rates { 39 | String key; 40 | double aED; 41 | double aFN; 42 | double aLL; 43 | double aMD; 44 | double aNG; 45 | double aOA; 46 | double aRS; 47 | double aUD; 48 | double aWG; 49 | double aZN; 50 | double bAM; 51 | double bBD; 52 | double bDT; 53 | double bGN; 54 | double bHD; 55 | double bIF; 56 | double bMD; 57 | double bND; 58 | double bOB; 59 | double bRL; 60 | double bSD; 61 | double bTC; 62 | double bTN; 63 | double bWP; 64 | double bYN; 65 | double bYR; 66 | double bZD; 67 | double cAD; 68 | double cDF; 69 | double cHF; 70 | double cLF; 71 | double cLP; 72 | double cNY; 73 | double cOP; 74 | double cRC; 75 | double cUC; 76 | double cUP; 77 | double cVE; 78 | double cZK; 79 | double dJF; 80 | double dKK; 81 | double dOP; 82 | double dZD; 83 | double eGP; 84 | double eRN; 85 | double eTB; 86 | double eUR; 87 | double fJD; 88 | double fKP; 89 | double gBP; 90 | double gEL; 91 | double gGP; 92 | double gHS; 93 | double gIP; 94 | double gMD; 95 | double gNF; 96 | double gTQ; 97 | double gYD; 98 | double hKD; 99 | double hNL; 100 | double hRK; 101 | double hTG; 102 | double hUF; 103 | double iDR; 104 | double iLS; 105 | double iMP; 106 | double iNR; 107 | double iQD; 108 | double iRR; 109 | double iSK; 110 | double jEP; 111 | double jMD; 112 | double jOD; 113 | double jPY; 114 | double kES; 115 | double kGS; 116 | double kHR; 117 | double kMF; 118 | double kPW; 119 | double kRW; 120 | double kWD; 121 | double kYD; 122 | double kZT; 123 | double lAK; 124 | double lBP; 125 | double lKR; 126 | double lRD; 127 | double lSL; 128 | double lTL; 129 | double lVL; 130 | double lYD; 131 | double mAD; 132 | double mDL; 133 | double mGA; 134 | double mKD; 135 | double mMK; 136 | double mNT; 137 | double mOP; 138 | double mRO; 139 | double mUR; 140 | double mVR; 141 | double mWK; 142 | double mXN; 143 | double mYR; 144 | double mZN; 145 | double nAD; 146 | double nGN; 147 | double nIO; 148 | double nOK; 149 | double nPR; 150 | double nZD; 151 | double oMR; 152 | double pAB; 153 | double pEN; 154 | double pGK; 155 | double pHP; 156 | double pKR; 157 | double pLN; 158 | double pYG; 159 | double qAR; 160 | double rON; 161 | double rSD; 162 | double rUB; 163 | double rWF; 164 | double sAR; 165 | double sBD; 166 | double sCR; 167 | double sDG; 168 | double sEK; 169 | double sGD; 170 | double sHP; 171 | double sLL; 172 | double sOS; 173 | double sRD; 174 | double sTD; 175 | double sVC; 176 | double sYP; 177 | double sZL; 178 | double tHB; 179 | double tJS; 180 | double tMT; 181 | double tND; 182 | double tOP; 183 | double tRY; 184 | double tTD; 185 | double tWD; 186 | double tZS; 187 | double uAH; 188 | double uGX; 189 | double uSD; 190 | double uYU; 191 | double uZS; 192 | double vEF; 193 | double vND; 194 | double vUV; 195 | double wST; 196 | double xAF; 197 | double xAG; 198 | double xAU; 199 | double xCD; 200 | double xDR; 201 | double xOF; 202 | double xPF; 203 | double yER; 204 | double zAR; 205 | double zMK; 206 | double zMW; 207 | double zWL; 208 | 209 | Rates( 210 | {this.key, 211 | this.aED, 212 | this.aFN, 213 | this.aLL, 214 | this.aMD, 215 | this.aNG, 216 | this.aOA, 217 | this.aRS, 218 | this.aUD, 219 | this.aWG, 220 | this.aZN, 221 | this.bAM, 222 | this.bBD, 223 | this.bDT, 224 | this.bGN, 225 | this.bHD, 226 | this.bIF, 227 | this.bMD, 228 | this.bND, 229 | this.bOB, 230 | this.bRL, 231 | this.bSD, 232 | this.bTC, 233 | this.bTN, 234 | this.bWP, 235 | this.bYN, 236 | this.bYR, 237 | this.bZD, 238 | this.cAD, 239 | this.cDF, 240 | this.cHF, 241 | this.cLF, 242 | this.cLP, 243 | this.cNY, 244 | this.cOP, 245 | this.cRC, 246 | this.cUC, 247 | this.cUP, 248 | this.cVE, 249 | this.cZK, 250 | this.dJF, 251 | this.dKK, 252 | this.dOP, 253 | this.dZD, 254 | this.eGP, 255 | this.eRN, 256 | this.eTB, 257 | this.eUR, 258 | this.fJD, 259 | this.fKP, 260 | this.gBP, 261 | this.gEL, 262 | this.gGP, 263 | this.gHS, 264 | this.gIP, 265 | this.gMD, 266 | this.gNF, 267 | this.gTQ, 268 | this.gYD, 269 | this.hKD, 270 | this.hNL, 271 | this.hRK, 272 | this.hTG, 273 | this.hUF, 274 | this.iDR, 275 | this.iLS, 276 | this.iMP, 277 | this.iNR, 278 | this.iQD, 279 | this.iRR, 280 | this.iSK, 281 | this.jEP, 282 | this.jMD, 283 | this.jOD, 284 | this.jPY, 285 | this.kES, 286 | this.kGS, 287 | this.kHR, 288 | this.kMF, 289 | this.kPW, 290 | this.kRW, 291 | this.kWD, 292 | this.kYD, 293 | this.kZT, 294 | this.lAK, 295 | this.lBP, 296 | this.lKR, 297 | this.lRD, 298 | this.lSL, 299 | this.lTL, 300 | this.lVL, 301 | this.lYD, 302 | this.mAD, 303 | this.mDL, 304 | this.mGA, 305 | this.mKD, 306 | this.mMK, 307 | this.mNT, 308 | this.mOP, 309 | this.mRO, 310 | this.mUR, 311 | this.mVR, 312 | this.mWK, 313 | this.mXN, 314 | this.mYR, 315 | this.mZN, 316 | this.nAD, 317 | this.nGN, 318 | this.nIO, 319 | this.nOK, 320 | this.nPR, 321 | this.nZD, 322 | this.oMR, 323 | this.pAB, 324 | this.pEN, 325 | this.pGK, 326 | this.pHP, 327 | this.pKR, 328 | this.pLN, 329 | this.pYG, 330 | this.qAR, 331 | this.rON, 332 | this.rSD, 333 | this.rUB, 334 | this.rWF, 335 | this.sAR, 336 | this.sBD, 337 | this.sCR, 338 | this.sDG, 339 | this.sEK, 340 | this.sGD, 341 | this.sHP, 342 | this.sLL, 343 | this.sOS, 344 | this.sRD, 345 | this.sTD, 346 | this.sVC, 347 | this.sYP, 348 | this.sZL, 349 | this.tHB, 350 | this.tJS, 351 | this.tMT, 352 | this.tND, 353 | this.tOP, 354 | this.tRY, 355 | this.tTD, 356 | this.tWD, 357 | this.tZS, 358 | this.uAH, 359 | this.uGX, 360 | this.uSD, 361 | this.uYU, 362 | this.uZS, 363 | this.vEF, 364 | this.vND, 365 | this.vUV, 366 | this.wST, 367 | this.xAF, 368 | this.xAG, 369 | this.xAU, 370 | this.xCD, 371 | this.xDR, 372 | this.xOF, 373 | this.xPF, 374 | this.yER, 375 | this.zAR, 376 | this.zMK, 377 | this.zMW, 378 | this.zWL}); 379 | 380 | Rates.fromJson(Map json) { 381 | aED = json['AED']; 382 | aFN = json['AFN']; 383 | aLL = json['ALL']; 384 | aMD = json['AMD']; 385 | aNG = json['ANG']; 386 | aOA = json['AOA']; 387 | aRS = json['ARS']; 388 | aUD = json['AUD']; 389 | aWG = json['AWG']; 390 | aZN = json['AZN']; 391 | bAM = json['BAM']; 392 | bBD = json['BBD']; 393 | bDT = json['BDT']; 394 | bGN = json['BGN']; 395 | bHD = json['BHD']; 396 | bIF = json['BIF']; 397 | bMD = json['BMD']; 398 | bND = json['BND']; 399 | bOB = json['BOB']; 400 | bRL = json['BRL']; 401 | bSD = json['BSD']; 402 | bTC = json['BTC']; 403 | bTN = json['BTN']; 404 | bWP = json['BWP']; 405 | bYN = json['BYN']; 406 | bYR = json['BYR']; 407 | bZD = json['BZD']; 408 | cAD = json['CAD']; 409 | cDF = json['CDF']; 410 | cHF = json['CHF']; 411 | cLF = json['CLF']; 412 | cLP = json['CLP']; 413 | cNY = json['CNY']; 414 | cOP = json['COP']; 415 | cRC = json['CRC']; 416 | cUC = json['CUC']; 417 | cUP = json['CUP']; 418 | cVE = json['CVE']; 419 | cZK = json['CZK']; 420 | dJF = json['DJF']; 421 | dKK = json['DKK']; 422 | dOP = json['DOP']; 423 | dZD = json['DZD']; 424 | eGP = json['EGP']; 425 | eRN = json['ERN']; 426 | eTB = json['ETB']; 427 | eUR = (json['EUR'] as int).toDouble(); 428 | fJD = json['FJD']; 429 | fKP = json['FKP']; 430 | gBP = json['GBP']; 431 | gEL = json['GEL']; 432 | gGP = json['GGP']; 433 | gHS = json['GHS']; 434 | gIP = json['GIP']; 435 | gMD = json['GMD']; 436 | gNF = json['GNF']; 437 | gTQ = json['GTQ']; 438 | gYD = json['GYD']; 439 | hKD = json['HKD']; 440 | hNL = json['HNL']; 441 | hRK = json['HRK']; 442 | hTG = json['HTG']; 443 | hUF = json['HUF']; 444 | iDR = json['IDR']; 445 | iLS = json['ILS']; 446 | iMP = json['IMP']; 447 | iNR = json['INR']; 448 | iQD = json['IQD']; 449 | iRR = json['IRR']; 450 | iSK = json['ISK']; 451 | jEP = json['JEP']; 452 | jMD = json['JMD']; 453 | jOD = json['JOD']; 454 | jPY = json['JPY']; 455 | kES = json['KES']; 456 | kGS = json['KGS']; 457 | kHR = json['KHR']; 458 | kMF = json['KMF']; 459 | kPW = json['KPW']; 460 | kRW = json['KRW']; 461 | kWD = json['KWD']; 462 | kYD = json['KYD']; 463 | kZT = json['KZT']; 464 | lAK = json['LAK']; 465 | lBP = json['LBP']; 466 | lKR = json['LKR']; 467 | lRD = json['LRD']; 468 | lSL = json['LSL']; 469 | lTL = json['LTL']; 470 | lVL = json['LVL']; 471 | lYD = json['LYD']; 472 | mAD = json['MAD']; 473 | mDL = json['MDL']; 474 | mGA = json['MGA']; 475 | mKD = json['MKD']; 476 | mMK = json['MMK']; 477 | mNT = json['MNT']; 478 | mOP = json['MOP']; 479 | mRO = json['MRO']; 480 | mUR = json['MUR']; 481 | mVR = json['MVR']; 482 | mWK = json['MWK']; 483 | mXN = json['MXN']; 484 | mYR = json['MYR']; 485 | mZN = json['MZN']; 486 | nAD = json['NAD']; 487 | nGN = json['NGN']; 488 | nIO = json['NIO']; 489 | nOK = json['NOK']; 490 | nPR = json['NPR']; 491 | nZD = json['NZD']; 492 | oMR = json['OMR']; 493 | pAB = json['PAB']; 494 | pEN = json['PEN']; 495 | pGK = json['PGK']; 496 | pHP = json['PHP']; 497 | pKR = json['PKR']; 498 | pLN = json['PLN']; 499 | pYG = json['PYG']; 500 | qAR = json['QAR']; 501 | rON = json['RON']; 502 | rSD = json['RSD']; 503 | rUB = json['RUB']; 504 | rWF = json['RWF']; 505 | sAR = json['SAR']; 506 | sBD = json['SBD']; 507 | sCR = json['SCR']; 508 | sDG = json['SDG']; 509 | sEK = json['SEK']; 510 | sGD = json['SGD']; 511 | sHP = json['SHP']; 512 | sLL = json['SLL']; 513 | sOS = json['SOS']; 514 | sRD = json['SRD']; 515 | sTD = json['STD']; 516 | sVC = json['SVC']; 517 | sYP = json['SYP']; 518 | sZL = json['SZL']; 519 | tHB = json['THB']; 520 | tJS = json['TJS']; 521 | tMT = json['TMT']; 522 | tND = json['TND']; 523 | tOP = json['TOP']; 524 | tRY = json['TRY']; 525 | tTD = json['TTD']; 526 | tWD = json['TWD']; 527 | tZS = json['TZS']; 528 | uAH = json['UAH']; 529 | uGX = json['UGX']; 530 | uSD = json['USD']; 531 | uYU = json['UYU']; 532 | uZS = json['UZS']; 533 | vEF = json['VEF']; 534 | vND = json['VND']; 535 | vUV = json['VUV']; 536 | wST = json['WST']; 537 | xAF = json['XAF']; 538 | xAG = json['XAG']; 539 | xAU = json['XAU']; 540 | xCD = json['XCD']; 541 | xDR = json['XDR']; 542 | xOF = json['XOF']; 543 | xPF = json['XPF']; 544 | yER = json['YER']; 545 | zAR = json['ZAR']; 546 | zMK = json['ZMK']; 547 | zMW = json['ZMW']; 548 | zWL = json['ZWL']; 549 | } 550 | 551 | Map toJson() { 552 | final Map data = new Map(); 553 | data['AED'] = this.aED; 554 | data['AFN'] = this.aFN; 555 | data['ALL'] = this.aLL; 556 | data['AMD'] = this.aMD; 557 | data['ANG'] = this.aNG; 558 | data['AOA'] = this.aOA; 559 | data['ARS'] = this.aRS; 560 | data['AUD'] = this.aUD; 561 | data['AWG'] = this.aWG; 562 | data['AZN'] = this.aZN; 563 | data['BAM'] = this.bAM; 564 | data['BBD'] = this.bBD; 565 | data['BDT'] = this.bDT; 566 | data['BGN'] = this.bGN; 567 | data['BHD'] = this.bHD; 568 | data['BIF'] = this.bIF; 569 | data['BMD'] = this.bMD; 570 | data['BND'] = this.bND; 571 | data['BOB'] = this.bOB; 572 | data['BRL'] = this.bRL; 573 | data['BSD'] = this.bSD; 574 | data['BTC'] = this.bTC; 575 | data['BTN'] = this.bTN; 576 | data['BWP'] = this.bWP; 577 | data['BYN'] = this.bYN; 578 | data['BYR'] = this.bYR; 579 | data['BZD'] = this.bZD; 580 | data['CAD'] = this.cAD; 581 | data['CDF'] = this.cDF; 582 | data['CHF'] = this.cHF; 583 | data['CLF'] = this.cLF; 584 | data['CLP'] = this.cLP; 585 | data['CNY'] = this.cNY; 586 | data['COP'] = this.cOP; 587 | data['CRC'] = this.cRC; 588 | data['CUC'] = this.cUC; 589 | data['CUP'] = this.cUP; 590 | data['CVE'] = this.cVE; 591 | data['CZK'] = this.cZK; 592 | data['DJF'] = this.dJF; 593 | data['DKK'] = this.dKK; 594 | data['DOP'] = this.dOP; 595 | data['DZD'] = this.dZD; 596 | data['EGP'] = this.eGP; 597 | data['ERN'] = this.eRN; 598 | data['ETB'] = this.eTB; 599 | data['EUR'] = this.eUR; 600 | data['FJD'] = this.fJD; 601 | data['FKP'] = this.fKP; 602 | data['GBP'] = this.gBP; 603 | data['GEL'] = this.gEL; 604 | data['GGP'] = this.gGP; 605 | data['GHS'] = this.gHS; 606 | data['GIP'] = this.gIP; 607 | data['GMD'] = this.gMD; 608 | data['GNF'] = this.gNF; 609 | data['GTQ'] = this.gTQ; 610 | data['GYD'] = this.gYD; 611 | data['HKD'] = this.hKD; 612 | data['HNL'] = this.hNL; 613 | data['HRK'] = this.hRK; 614 | data['HTG'] = this.hTG; 615 | data['HUF'] = this.hUF; 616 | data['IDR'] = this.iDR; 617 | data['ILS'] = this.iLS; 618 | data['IMP'] = this.iMP; 619 | data['INR'] = this.iNR; 620 | data['IQD'] = this.iQD; 621 | data['IRR'] = this.iRR; 622 | data['ISK'] = this.iSK; 623 | data['JEP'] = this.jEP; 624 | data['JMD'] = this.jMD; 625 | data['JOD'] = this.jOD; 626 | data['JPY'] = this.jPY; 627 | data['KES'] = this.kES; 628 | data['KGS'] = this.kGS; 629 | data['KHR'] = this.kHR; 630 | data['KMF'] = this.kMF; 631 | data['KPW'] = this.kPW; 632 | data['KRW'] = this.kRW; 633 | data['KWD'] = this.kWD; 634 | data['KYD'] = this.kYD; 635 | data['KZT'] = this.kZT; 636 | data['LAK'] = this.lAK; 637 | data['LBP'] = this.lBP; 638 | data['LKR'] = this.lKR; 639 | data['LRD'] = this.lRD; 640 | data['LSL'] = this.lSL; 641 | data['LTL'] = this.lTL; 642 | data['LVL'] = this.lVL; 643 | data['LYD'] = this.lYD; 644 | data['MAD'] = this.mAD; 645 | data['MDL'] = this.mDL; 646 | data['MGA'] = this.mGA; 647 | data['MKD'] = this.mKD; 648 | data['MMK'] = this.mMK; 649 | data['MNT'] = this.mNT; 650 | data['MOP'] = this.mOP; 651 | data['MRO'] = this.mRO; 652 | data['MUR'] = this.mUR; 653 | data['MVR'] = this.mVR; 654 | data['MWK'] = this.mWK; 655 | data['MXN'] = this.mXN; 656 | data['MYR'] = this.mYR; 657 | data['MZN'] = this.mZN; 658 | data['NAD'] = this.nAD; 659 | data['NGN'] = this.nGN; 660 | data['NIO'] = this.nIO; 661 | data['NOK'] = this.nOK; 662 | data['NPR'] = this.nPR; 663 | data['NZD'] = this.nZD; 664 | data['OMR'] = this.oMR; 665 | data['PAB'] = this.pAB; 666 | data['PEN'] = this.pEN; 667 | data['PGK'] = this.pGK; 668 | data['PHP'] = this.pHP; 669 | data['PKR'] = this.pKR; 670 | data['PLN'] = this.pLN; 671 | data['PYG'] = this.pYG; 672 | data['QAR'] = this.qAR; 673 | data['RON'] = this.rON; 674 | data['RSD'] = this.rSD; 675 | data['RUB'] = this.rUB; 676 | data['RWF'] = this.rWF; 677 | data['SAR'] = this.sAR; 678 | data['SBD'] = this.sBD; 679 | data['SCR'] = this.sCR; 680 | data['SDG'] = this.sDG; 681 | data['SEK'] = this.sEK; 682 | data['SGD'] = this.sGD; 683 | data['SHP'] = this.sHP; 684 | data['SLL'] = this.sLL; 685 | data['SOS'] = this.sOS; 686 | data['SRD'] = this.sRD; 687 | data['STD'] = this.sTD; 688 | data['SVC'] = this.sVC; 689 | data['SYP'] = this.sYP; 690 | data['SZL'] = this.sZL; 691 | data['THB'] = this.tHB; 692 | data['TJS'] = this.tJS; 693 | data['TMT'] = this.tMT; 694 | data['TND'] = this.tND; 695 | data['TOP'] = this.tOP; 696 | data['TRY'] = this.tRY; 697 | data['TTD'] = this.tTD; 698 | data['TWD'] = this.tWD; 699 | data['TZS'] = this.tZS; 700 | data['UAH'] = this.uAH; 701 | data['UGX'] = this.uGX; 702 | data['USD'] = this.uSD; 703 | data['UYU'] = this.uYU; 704 | data['UZS'] = this.uZS; 705 | data['VEF'] = this.vEF; 706 | data['VND'] = this.vND; 707 | data['VUV'] = this.vUV; 708 | data['WST'] = this.wST; 709 | data['XAF'] = this.xAF; 710 | data['XAG'] = this.xAG; 711 | data['XAU'] = this.xAU; 712 | data['XCD'] = this.xCD; 713 | data['XDR'] = this.xDR; 714 | data['XOF'] = this.xOF; 715 | data['XPF'] = this.xPF; 716 | data['YER'] = this.yER; 717 | data['ZAR'] = this.zAR; 718 | data['ZMK'] = this.zMK; 719 | data['ZMW'] = this.zMW; 720 | data['ZWL'] = this.zWL; 721 | return data; 722 | } 723 | } 724 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:stackHelpOver/future-builder/view/future_builder_view.dart'; 3 | 4 | import 'webview-local-listen/web_view_local_view.dart'; 5 | 6 | void main() => runApp(MyApp()); 7 | 8 | class MyApp extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | // WidgetsBinding.instance.addPersistentFrameCallback((timeStamp) { }) 12 | return MaterialApp( 13 | title: 'Material App', 14 | home: FutureView(), 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /lib/pinch_image_zoom/pinch_image_zoom.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './pinch_image_zoom_view.dart'; 3 | 4 | class PinchImageZoom extends StatefulWidget { 5 | 6 | @override 7 | PinchImageZoomView createState() => new PinchImageZoomView(); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /lib/pinch_image_zoom/pinch_image_zoom_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './pinch_image_zoom_view_model.dart'; 3 | import 'pinch_image_zoom.dart'; 4 | 5 | class PincImageView extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | floatingActionButton: FloatingActionButton( 10 | onPressed: () { 11 | showDialog( 12 | context: context, 13 | barrierDismissible: true, 14 | builder: (context) { 15 | return PinchImageZoom(); 16 | }, 17 | ); 18 | }, 19 | ), 20 | ); 21 | } 22 | } 23 | 24 | class PinchImageZoomView extends PinchImageZoomViewModel { 25 | final String imageUrl = "https://picsum.photos/1200"; 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | // Replace this with your build function 30 | return Material( 31 | child: buildGestureDetector, 32 | ); 33 | } 34 | 35 | Widget get buildGestureDetector => GestureDetector( 36 | child: Stack( 37 | fit: StackFit.expand, 38 | children: [ 39 | _transformScaleAndTranslate(), 40 | _positionedStatusBar(context) 41 | ], 42 | ), 43 | onScaleStart: onScaleStart, 44 | onScaleUpdate: onScaleUpdate, 45 | onDoubleTap: onDoubleTap, 46 | onLongPress: onLongPress, 47 | ); 48 | 49 | Transform _transformScaleAndTranslate() { 50 | return Transform.scale( 51 | scale: currentScale, 52 | child: Transform.translate( 53 | offset: currentOffset, 54 | child: Image( 55 | image: NetworkImage(imageUrl), 56 | ), 57 | ), 58 | ); 59 | } 60 | 61 | Transform _transformMatrix4() { 62 | return Transform( 63 | transform: Matrix4.identity() 64 | ..scale(currentScale, currentScale) 65 | ..translate( 66 | currentOffset.dx, 67 | currentOffset.dy, 68 | ), 69 | alignment: FractionalOffset.center, 70 | child: Image( 71 | image: NetworkImage(imageUrl), 72 | ), 73 | ); 74 | } 75 | 76 | Positioned _positionedStatusBar(BuildContext context) { 77 | return Positioned( 78 | top: 0.0, 79 | width: MediaQuery.of(context).size.width, 80 | child: Container( 81 | color: Colors.white54, 82 | height: 50.0, 83 | child: Row( 84 | mainAxisAlignment: MainAxisAlignment.spaceAround, 85 | children: [ 86 | Text( 87 | 'Scale: ${currentScale.toStringAsFixed(4)}', 88 | ), 89 | Text( 90 | 'Current: $currentOffset', 91 | ), 92 | ], 93 | ), 94 | ), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /lib/pinch_image_zoom/pinch_image_zoom_view_model.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import './pinch_image_zoom.dart'; 3 | 4 | abstract class PinchImageZoomViewModel extends State { 5 | // Add your state and logic here 6 | Offset startLastOffset = Offset.zero; 7 | Offset lastOffset = Offset.zero; 8 | Offset currentOffset = Offset.zero; 9 | double lastScale = 1.0; 10 | double currentScale = 1.0; 11 | 12 | void onScaleStart(ScaleStartDetails details) { 13 | // print('ScaleStartDetails: $details'); 14 | startLastOffset = details.focalPoint; 15 | lastOffset = currentOffset; 16 | lastScale = currentScale; 17 | } 18 | 19 | void onScaleUpdate(ScaleUpdateDetails details) { 20 | // print('ScaleUpdateDetails: $details - Scale: ${details.scale}'); 21 | if (details.scale != 1.0) { 22 | // Scaling 23 | double currentScale = lastScale * details.scale; 24 | if (currentScale < 0.5) { 25 | currentScale = 0.5; 26 | } 27 | setState(() { 28 | this.currentScale = currentScale; 29 | }); 30 | // print('_scale: $_currentScale - lastScale: $lastScale'); 31 | } else if (details.scale == 1.0) { 32 | // We are not scaling but dragging around screen 33 | // Calculate offset depending on current Image scaling. 34 | Offset offsetAdjustedForScale = 35 | (startLastOffset - lastOffset) / lastScale; 36 | Offset currentOffset = 37 | details.focalPoint - (offsetAdjustedForScale * currentScale); 38 | setState(() { 39 | currentOffset = currentOffset; 40 | }); 41 | 42 | // print( 43 | // 'offsetAdjustedForScale: $offsetAdjustedForScale - currentOffset: $currentOffset'); 44 | } 45 | } 46 | 47 | void onDoubleTap() { 48 | print('onDoubleTap'); 49 | // Calculate current scale and populate the lastScale with currentScale 50 | // if currentScale is greater than 16 times the original image, reset scale to default, 1.0 51 | double currentScale = lastScale * 2.0; 52 | if (currentScale > 16.0) { 53 | currentScale = 1.0; 54 | resetToDefaultValues(); 55 | } 56 | lastScale = currentScale; 57 | setState(() { 58 | this.currentScale = currentScale; 59 | }); 60 | } 61 | 62 | void onLongPress() { 63 | print('onLongPress'); 64 | setState(() { 65 | resetToDefaultValues(); 66 | }); 67 | } 68 | 69 | void resetToDefaultValues() { 70 | startLastOffset = Offset.zero; 71 | lastOffset = Offset.zero; 72 | currentOffset = Offset.zero; 73 | lastScale = 1.0; 74 | currentScale = 1.0; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /lib/switch-on/custom_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomCard extends StatelessWidget { 4 | final bool isActive; 5 | final String text; 6 | final IconData iconData; 7 | final VoidCallback onTap; 8 | 9 | const CustomCard({ 10 | @required this.isActive, 11 | @required this.text, 12 | @required this.iconData, 13 | @required this.onTap, 14 | }); 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return InkWell( 19 | onTap: onTap, 20 | child: Container( 21 | height: 100, 22 | width: 100, 23 | child: Card( 24 | color: isActive ? Colors.white : Colors.grey[800], 25 | semanticContainer: true, 26 | shape: RoundedRectangleBorder( 27 | borderRadius: BorderRadius.circular(10), 28 | ), 29 | margin: new EdgeInsets.all(0), 30 | child: Column( 31 | mainAxisSize: MainAxisSize.min, 32 | children: [ 33 | Row( 34 | children: [ 35 | Padding( 36 | padding: 37 | EdgeInsets.only(left: 4, top: 7, right: 30, bottom: 10), 38 | child: Icon( 39 | iconData, 40 | color: isActive ? Colors.black : Colors.white, 41 | size: 35, 42 | ), 43 | ), 44 | Padding( 45 | padding: 46 | EdgeInsets.only(top: 0, right: 0, bottom: 20, left: 0), 47 | child: new Text( 48 | isActive ? 'On' : 'Off', 49 | style: TextStyle( 50 | color: isActive ? Colors.black : Colors.white), 51 | ), 52 | ), 53 | ], 54 | ), 55 | Align( 56 | alignment: Alignment.bottomLeft, 57 | child: Padding( 58 | padding: EdgeInsets.only(top: 8, left: 5), 59 | child: Text( 60 | text, 61 | style: TextStyle( 62 | color: isActive ? Colors.black : Colors.white, 63 | fontSize: 13), 64 | ), 65 | ), 66 | ), 67 | ], 68 | ), 69 | ), 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/switch-on/custom_card_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CustomCardWidget extends StatefulWidget { 4 | final String text; 5 | final IconData iconData; 6 | final VoidCallback onTap; 7 | 8 | const CustomCardWidget({ 9 | @required this.text, 10 | @required this.iconData, 11 | @required this.onTap, 12 | }); 13 | 14 | @override 15 | _CustomCardWidgetState createState() => _CustomCardWidgetState(); 16 | } 17 | 18 | class _CustomCardWidgetState extends State { 19 | bool isActive = false; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return InkWell( 24 | onTap: onTapCard, 25 | child: buildContainerCard(), 26 | ); 27 | } 28 | 29 | void onTapCard() { 30 | setState(() { 31 | isActive = !isActive; 32 | }); 33 | widget.onTap(); 34 | } 35 | 36 | Container buildContainerCard() { 37 | return Container( 38 | height: 100, 39 | width: 100, 40 | child: Card( 41 | color: isActive ? Colors.white : Colors.grey[800], 42 | semanticContainer: true, 43 | shape: RoundedRectangleBorder( 44 | borderRadius: BorderRadius.circular(10), 45 | ), 46 | margin: new EdgeInsets.all(0), 47 | child: Column( 48 | mainAxisSize: MainAxisSize.min, 49 | children: [ 50 | Row( 51 | children: [ 52 | buildPaddingIcon(), 53 | buildPaddingOnOffText(), 54 | ], 55 | ), 56 | buildAlignLeftWidget(), 57 | ], 58 | ), 59 | ), 60 | ); 61 | } 62 | 63 | Padding buildPaddingIcon() { 64 | return Padding( 65 | padding: EdgeInsets.only(left: 4, top: 7, right: 30, bottom: 10), 66 | child: Icon( 67 | widget.iconData, 68 | color: isActive ? Colors.black : Colors.white, 69 | size: 35, 70 | ), 71 | ); 72 | } 73 | 74 | Padding buildPaddingOnOffText() { 75 | return Padding( 76 | padding: EdgeInsets.only(top: 0, right: 0, bottom: 20, left: 0), 77 | child: new Text( 78 | isActive ? 'On' : 'Off', 79 | style: TextStyle(color: isActive ? Colors.black : Colors.white), 80 | ), 81 | ); 82 | } 83 | 84 | Align buildAlignLeftWidget() { 85 | return Align( 86 | alignment: Alignment.bottomLeft, 87 | child: Padding( 88 | padding: EdgeInsets.only(top: 8, left: 5), 89 | child: Text( 90 | widget.text, 91 | style: TextStyle( 92 | color: isActive ? Colors.black : Colors.white, fontSize: 13), 93 | ), 94 | ), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /lib/switch-on/switch_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'custom_card.dart'; 4 | 5 | class SwitchView extends StatefulWidget { 6 | @override 7 | _SwitchViewState createState() => _SwitchViewState(); 8 | } 9 | 10 | class _SwitchViewState extends State { 11 | bool isActiveOnView = false; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Scaffold( 16 | body: Center( 17 | child: CustomCard( 18 | iconData: Icons.access_alarm, 19 | isActive: isActiveOnView, 20 | text: "Hello", 21 | onTap: changeSwitchButton, 22 | ), 23 | ), 24 | ); 25 | } 26 | 27 | void changeSwitchButton() { 28 | setState(() { 29 | isActiveOnView = !isActiveOnView; 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/webview-local-listen/web_view_local_view.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 5 | 6 | class WebViewLocalView extends StatefulWidget { 7 | @override 8 | _WebViewLocalViewState createState() => _WebViewLocalViewState(); 9 | } 10 | 11 | class _WebViewLocalViewState extends State { 12 | final body = ''' 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |

Click the button to swap the text of the DIV element:

21 | 22 |

23 | 24 |
Hello
25 | 26 | 36 | 37 | 38 | 39 | 40 | 41 | '''; 42 | 43 | Uri get uri => Uri.dataFromString(body, mimeType: 'text/html'); 44 | 45 | final int maxDuration = 120; 46 | 47 | final flutterWebviewPlugin = FlutterWebviewPlugin(); 48 | Timer timer; 49 | 50 | @override 51 | void initState() { 52 | super.initState(); 53 | 54 | timer = Timer.periodic(Duration(seconds: 1), (timer) async { 55 | String script = 'document.getElementById("myDIV").innerHTML'; 56 | var title = await flutterWebviewPlugin.evalJavascript(script); 57 | print("$title"); 58 | 59 | if (maxDuration < 0) { 60 | Navigator.pop(context); 61 | } else { 62 | if (title == "Veli") { 63 | timer.cancel(); 64 | this.timer.cancel(); 65 | } 66 | } 67 | }); 68 | 69 | flutterWebviewPlugin.onUrlChanged.listen((event) { 70 | if (event.contains("100")) { 71 | Navigator.pop(context); 72 | } 73 | }); 74 | } 75 | 76 | @override 77 | void dispose() { 78 | super.dispose(); 79 | timer.cancel(); 80 | } 81 | 82 | @override 83 | Widget build(BuildContext context) { 84 | return WebviewScaffold( 85 | url: uri.toString(), 86 | debuggingEnabled: true, 87 | ); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/xcuserdata/ 7 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import firebase_auth 9 | import firebase_core 10 | 11 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 12 | FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin")) 13 | FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin")) 14 | } 15 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.11' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def parse_KV_file(file, separator='=') 13 | file_abs_path = File.expand_path(file) 14 | if !File.exists? file_abs_path 15 | return []; 16 | end 17 | pods_ary = [] 18 | skip_line_start_symbols = ["#", "/"] 19 | File.foreach(file_abs_path) { |line| 20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 21 | plugin = line.split(pattern=separator) 22 | if plugin.length == 2 23 | podname = plugin[0].strip() 24 | path = plugin[1].strip() 25 | podpath = File.expand_path("#{path}", file_abs_path) 26 | pods_ary.push({:name => podname, :path => podpath}); 27 | else 28 | puts "Invalid plugin specification: #{line}" 29 | end 30 | } 31 | return pods_ary 32 | end 33 | 34 | def pubspec_supports_macos(file) 35 | file_abs_path = File.expand_path(file) 36 | if !File.exists? file_abs_path 37 | return false; 38 | end 39 | File.foreach(file_abs_path) { |line| 40 | return true if line =~ /^\s*macos:/ 41 | } 42 | return false 43 | end 44 | 45 | target 'Runner' do 46 | use_frameworks! 47 | use_modular_headers! 48 | 49 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 50 | # referring to absolute paths on developers' machines. 51 | ephemeral_dir = File.join('Flutter', 'ephemeral') 52 | symlink_dir = File.join(ephemeral_dir, '.symlinks') 53 | symlink_plugins_dir = File.join(symlink_dir, 'plugins') 54 | system("rm -rf #{symlink_dir}") 55 | system("mkdir -p #{symlink_plugins_dir}") 56 | 57 | # Flutter Pods 58 | generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig')) 59 | if generated_xcconfig.empty? 60 | puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 61 | end 62 | generated_xcconfig.map { |p| 63 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 64 | symlink = File.join(symlink_dir, 'flutter') 65 | File.symlink(File.dirname(p[:path]), symlink) 66 | pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path])) 67 | end 68 | } 69 | 70 | # Plugin Pods 71 | plugin_pods = parse_KV_file('../.flutter-plugins') 72 | plugin_pods.map { |p| 73 | symlink = File.join(symlink_plugins_dir, p[:name]) 74 | File.symlink(p[:path], symlink) 75 | if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml')) 76 | pod p[:name], :path => File.join(symlink, 'macos') 77 | end 78 | } 79 | end 80 | 81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 82 | install! 'cocoapods', :disable_input_output_paths => true 83 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; 13 | buildPhases = ( 14 | 33CC111E2044C6BF0003C045 /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | ); 18 | name = "Flutter Assemble"; 19 | productName = FLX; 20 | }; 21 | /* End PBXAggregateTarget section */ 22 | 23 | /* Begin PBXBuildFile section */ 24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; 25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; 26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 29 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; }; 30 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 31 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; }; 32 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 33 | /* End PBXBuildFile section */ 34 | 35 | /* Begin PBXContainerItemProxy section */ 36 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 41 | remoteInfo = FLX; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXCopyFilesBuildPhase section */ 46 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 47 | isa = PBXCopyFilesBuildPhase; 48 | buildActionMask = 2147483647; 49 | dstPath = ""; 50 | dstSubfolderSpec = 10; 51 | files = ( 52 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */, 53 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */, 54 | ); 55 | name = "Bundle Framework"; 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXCopyFilesBuildPhase section */ 59 | 60 | /* Begin PBXFileReference section */ 61 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 62 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 63 | 33CC10ED2044A3C60003C045 /* stackHelpOver.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "stackHelpOver.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 65 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 66 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 67 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 68 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 69 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 70 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 71 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 72 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; }; 73 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 74 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 75 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 76 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 78 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; }; 79 | /* End PBXFileReference section */ 80 | 81 | /* Begin PBXFrameworksBuildPhase section */ 82 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */, 87 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */, 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 33BA886A226E78AF003329D5 /* Configs */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 98 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 99 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 100 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 101 | ); 102 | path = Configs; 103 | sourceTree = ""; 104 | }; 105 | 33CC10E42044A3C60003C045 = { 106 | isa = PBXGroup; 107 | children = ( 108 | 33FAB671232836740065AC1E /* Runner */, 109 | 33CEB47122A05771004F2AC0 /* Flutter */, 110 | 33CC10EE2044A3C60003C045 /* Products */, 111 | D73912EC22F37F3D000D13A0 /* Frameworks */, 112 | ); 113 | sourceTree = ""; 114 | }; 115 | 33CC10EE2044A3C60003C045 /* Products */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 33CC10ED2044A3C60003C045 /* stackHelpOver.app */, 119 | ); 120 | name = Products; 121 | sourceTree = ""; 122 | }; 123 | 33CC11242044D66E0003C045 /* Resources */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 127 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 128 | 33CC10F72044A3C60003C045 /* Info.plist */, 129 | ); 130 | name = Resources; 131 | path = ..; 132 | sourceTree = ""; 133 | }; 134 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 135 | isa = PBXGroup; 136 | children = ( 137 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 138 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 139 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 140 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 141 | D73912EF22F37F9E000D13A0 /* App.framework */, 142 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */, 143 | ); 144 | path = Flutter; 145 | sourceTree = ""; 146 | }; 147 | 33FAB671232836740065AC1E /* Runner */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 151 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 152 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 153 | 33E51914231749380026EE4D /* Release.entitlements */, 154 | 33CC11242044D66E0003C045 /* Resources */, 155 | 33BA886A226E78AF003329D5 /* Configs */, 156 | ); 157 | path = Runner; 158 | sourceTree = ""; 159 | }; 160 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | ); 164 | name = Frameworks; 165 | sourceTree = ""; 166 | }; 167 | /* End PBXGroup section */ 168 | 169 | /* Begin PBXNativeTarget section */ 170 | 33CC10EC2044A3C60003C045 /* Runner */ = { 171 | isa = PBXNativeTarget; 172 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 173 | buildPhases = ( 174 | 33CC10E92044A3C60003C045 /* Sources */, 175 | 33CC10EA2044A3C60003C045 /* Frameworks */, 176 | 33CC10EB2044A3C60003C045 /* Resources */, 177 | 33CC110E2044A8840003C045 /* Bundle Framework */, 178 | 3399D490228B24CF009A79C7 /* ShellScript */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 184 | ); 185 | name = Runner; 186 | productName = Runner; 187 | productReference = 33CC10ED2044A3C60003C045 /* stackHelpOver.app */; 188 | productType = "com.apple.product-type.application"; 189 | }; 190 | /* End PBXNativeTarget section */ 191 | 192 | /* Begin PBXProject section */ 193 | 33CC10E52044A3C60003C045 /* Project object */ = { 194 | isa = PBXProject; 195 | attributes = { 196 | LastSwiftUpdateCheck = 0920; 197 | LastUpgradeCheck = 0930; 198 | ORGANIZATIONNAME = "The Flutter Authors"; 199 | TargetAttributes = { 200 | 33CC10EC2044A3C60003C045 = { 201 | CreatedOnToolsVersion = 9.2; 202 | LastSwiftMigration = 1100; 203 | ProvisioningStyle = Automatic; 204 | SystemCapabilities = { 205 | com.apple.Sandbox = { 206 | enabled = 1; 207 | }; 208 | }; 209 | }; 210 | 33CC111A2044C6BA0003C045 = { 211 | CreatedOnToolsVersion = 9.2; 212 | ProvisioningStyle = Manual; 213 | }; 214 | }; 215 | }; 216 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 217 | compatibilityVersion = "Xcode 8.0"; 218 | developmentRegion = en; 219 | hasScannedForEncodings = 0; 220 | knownRegions = ( 221 | en, 222 | Base, 223 | ); 224 | mainGroup = 33CC10E42044A3C60003C045; 225 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 226 | projectDirPath = ""; 227 | projectRoot = ""; 228 | targets = ( 229 | 33CC10EC2044A3C60003C045 /* Runner */, 230 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 231 | ); 232 | }; 233 | /* End PBXProject section */ 234 | 235 | /* Begin PBXResourcesBuildPhase section */ 236 | 33CC10EB2044A3C60003C045 /* Resources */ = { 237 | isa = PBXResourcesBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 241 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | /* End PBXResourcesBuildPhase section */ 246 | 247 | /* Begin PBXShellScriptBuildPhase section */ 248 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 249 | isa = PBXShellScriptBuildPhase; 250 | buildActionMask = 2147483647; 251 | files = ( 252 | ); 253 | inputFileListPaths = ( 254 | ); 255 | inputPaths = ( 256 | ); 257 | outputFileListPaths = ( 258 | ); 259 | outputPaths = ( 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | shellPath = /bin/sh; 263 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n"; 264 | }; 265 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputFileListPaths = ( 271 | Flutter/ephemeral/FlutterInputs.xcfilelist, 272 | ); 273 | inputPaths = ( 274 | Flutter/ephemeral/tripwire, 275 | ); 276 | outputFileListPaths = ( 277 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 278 | ); 279 | outputPaths = ( 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | shellPath = /bin/sh; 283 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; 284 | }; 285 | /* End PBXShellScriptBuildPhase section */ 286 | 287 | /* Begin PBXSourcesBuildPhase section */ 288 | 33CC10E92044A3C60003C045 /* Sources */ = { 289 | isa = PBXSourcesBuildPhase; 290 | buildActionMask = 2147483647; 291 | files = ( 292 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 293 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 294 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | }; 298 | /* End PBXSourcesBuildPhase section */ 299 | 300 | /* Begin PBXTargetDependency section */ 301 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 302 | isa = PBXTargetDependency; 303 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 304 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 305 | }; 306 | /* End PBXTargetDependency section */ 307 | 308 | /* Begin PBXVariantGroup section */ 309 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 310 | isa = PBXVariantGroup; 311 | children = ( 312 | 33CC10F52044A3C60003C045 /* Base */, 313 | ); 314 | name = MainMenu.xib; 315 | path = Runner; 316 | sourceTree = ""; 317 | }; 318 | /* End PBXVariantGroup section */ 319 | 320 | /* Begin XCBuildConfiguration section */ 321 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 322 | isa = XCBuildConfiguration; 323 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 324 | buildSettings = { 325 | ALWAYS_SEARCH_USER_PATHS = NO; 326 | CLANG_ANALYZER_NONNULL = YES; 327 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 328 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 329 | CLANG_CXX_LIBRARY = "libc++"; 330 | CLANG_ENABLE_MODULES = YES; 331 | CLANG_ENABLE_OBJC_ARC = YES; 332 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 333 | CLANG_WARN_BOOL_CONVERSION = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 336 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 338 | CLANG_WARN_EMPTY_BODY = YES; 339 | CLANG_WARN_ENUM_CONVERSION = YES; 340 | CLANG_WARN_INFINITE_RECURSION = YES; 341 | CLANG_WARN_INT_CONVERSION = YES; 342 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 343 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 346 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 347 | CODE_SIGN_IDENTITY = "-"; 348 | COPY_PHASE_STRIP = NO; 349 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 350 | ENABLE_NS_ASSERTIONS = NO; 351 | ENABLE_STRICT_OBJC_MSGSEND = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu11; 353 | GCC_NO_COMMON_BLOCKS = YES; 354 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 355 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 356 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 357 | GCC_WARN_UNUSED_FUNCTION = YES; 358 | GCC_WARN_UNUSED_VARIABLE = YES; 359 | MACOSX_DEPLOYMENT_TARGET = 10.11; 360 | MTL_ENABLE_DEBUG_INFO = NO; 361 | SDKROOT = macosx; 362 | SWIFT_COMPILATION_MODE = wholemodule; 363 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 364 | }; 365 | name = Profile; 366 | }; 367 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 368 | isa = XCBuildConfiguration; 369 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 370 | buildSettings = { 371 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 372 | CLANG_ENABLE_MODULES = YES; 373 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 374 | CODE_SIGN_STYLE = Automatic; 375 | COMBINE_HIDPI_IMAGES = YES; 376 | FRAMEWORK_SEARCH_PATHS = ( 377 | "$(inherited)", 378 | "$(PROJECT_DIR)/Flutter/ephemeral", 379 | ); 380 | INFOPLIST_FILE = Runner/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = ( 382 | "$(inherited)", 383 | "@executable_path/../Frameworks", 384 | ); 385 | PROVISIONING_PROFILE_SPECIFIER = ""; 386 | SWIFT_VERSION = 5.0; 387 | }; 388 | name = Profile; 389 | }; 390 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 391 | isa = XCBuildConfiguration; 392 | buildSettings = { 393 | CODE_SIGN_STYLE = Manual; 394 | PRODUCT_NAME = "$(TARGET_NAME)"; 395 | }; 396 | name = Profile; 397 | }; 398 | 33CC10F92044A3C60003C045 /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 401 | buildSettings = { 402 | ALWAYS_SEARCH_USER_PATHS = NO; 403 | CLANG_ANALYZER_NONNULL = YES; 404 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 405 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 406 | CLANG_CXX_LIBRARY = "libc++"; 407 | CLANG_ENABLE_MODULES = YES; 408 | CLANG_ENABLE_OBJC_ARC = YES; 409 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 414 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 415 | CLANG_WARN_EMPTY_BODY = YES; 416 | CLANG_WARN_ENUM_CONVERSION = YES; 417 | CLANG_WARN_INFINITE_RECURSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 420 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 423 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 424 | CODE_SIGN_IDENTITY = "-"; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = dwarf; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu11; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 438 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 439 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 440 | GCC_WARN_UNUSED_FUNCTION = YES; 441 | GCC_WARN_UNUSED_VARIABLE = YES; 442 | MACOSX_DEPLOYMENT_TARGET = 10.11; 443 | MTL_ENABLE_DEBUG_INFO = YES; 444 | ONLY_ACTIVE_ARCH = YES; 445 | SDKROOT = macosx; 446 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 447 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 448 | }; 449 | name = Debug; 450 | }; 451 | 33CC10FA2044A3C60003C045 /* Release */ = { 452 | isa = XCBuildConfiguration; 453 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 454 | buildSettings = { 455 | ALWAYS_SEARCH_USER_PATHS = NO; 456 | CLANG_ANALYZER_NONNULL = YES; 457 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 459 | CLANG_CXX_LIBRARY = "libc++"; 460 | CLANG_ENABLE_MODULES = YES; 461 | CLANG_ENABLE_OBJC_ARC = YES; 462 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 463 | CLANG_WARN_BOOL_CONVERSION = YES; 464 | CLANG_WARN_CONSTANT_CONVERSION = YES; 465 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 466 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 467 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 468 | CLANG_WARN_EMPTY_BODY = YES; 469 | CLANG_WARN_ENUM_CONVERSION = YES; 470 | CLANG_WARN_INFINITE_RECURSION = YES; 471 | CLANG_WARN_INT_CONVERSION = YES; 472 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 473 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 474 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 475 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 476 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 477 | CODE_SIGN_IDENTITY = "-"; 478 | COPY_PHASE_STRIP = NO; 479 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 480 | ENABLE_NS_ASSERTIONS = NO; 481 | ENABLE_STRICT_OBJC_MSGSEND = YES; 482 | GCC_C_LANGUAGE_STANDARD = gnu11; 483 | GCC_NO_COMMON_BLOCKS = YES; 484 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 485 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 486 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 487 | GCC_WARN_UNUSED_FUNCTION = YES; 488 | GCC_WARN_UNUSED_VARIABLE = YES; 489 | MACOSX_DEPLOYMENT_TARGET = 10.11; 490 | MTL_ENABLE_DEBUG_INFO = NO; 491 | SDKROOT = macosx; 492 | SWIFT_COMPILATION_MODE = wholemodule; 493 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 494 | }; 495 | name = Release; 496 | }; 497 | 33CC10FC2044A3C60003C045 /* Debug */ = { 498 | isa = XCBuildConfiguration; 499 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 500 | buildSettings = { 501 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 502 | CLANG_ENABLE_MODULES = YES; 503 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 504 | CODE_SIGN_STYLE = Automatic; 505 | COMBINE_HIDPI_IMAGES = YES; 506 | FRAMEWORK_SEARCH_PATHS = ( 507 | "$(inherited)", 508 | "$(PROJECT_DIR)/Flutter/ephemeral", 509 | ); 510 | INFOPLIST_FILE = Runner/Info.plist; 511 | LD_RUNPATH_SEARCH_PATHS = ( 512 | "$(inherited)", 513 | "@executable_path/../Frameworks", 514 | ); 515 | PROVISIONING_PROFILE_SPECIFIER = ""; 516 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 517 | SWIFT_VERSION = 5.0; 518 | }; 519 | name = Debug; 520 | }; 521 | 33CC10FD2044A3C60003C045 /* Release */ = { 522 | isa = XCBuildConfiguration; 523 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 524 | buildSettings = { 525 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 526 | CLANG_ENABLE_MODULES = YES; 527 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 528 | CODE_SIGN_STYLE = Automatic; 529 | COMBINE_HIDPI_IMAGES = YES; 530 | FRAMEWORK_SEARCH_PATHS = ( 531 | "$(inherited)", 532 | "$(PROJECT_DIR)/Flutter/ephemeral", 533 | ); 534 | INFOPLIST_FILE = Runner/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = ( 536 | "$(inherited)", 537 | "@executable_path/../Frameworks", 538 | ); 539 | PROVISIONING_PROFILE_SPECIFIER = ""; 540 | SWIFT_VERSION = 5.0; 541 | }; 542 | name = Release; 543 | }; 544 | 33CC111C2044C6BA0003C045 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | buildSettings = { 547 | CODE_SIGN_STYLE = Manual; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | }; 550 | name = Debug; 551 | }; 552 | 33CC111D2044C6BA0003C045 /* Release */ = { 553 | isa = XCBuildConfiguration; 554 | buildSettings = { 555 | CODE_SIGN_STYLE = Automatic; 556 | PRODUCT_NAME = "$(TARGET_NAME)"; 557 | }; 558 | name = Release; 559 | }; 560 | /* End XCBuildConfiguration section */ 561 | 562 | /* Begin XCConfigurationList section */ 563 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 564 | isa = XCConfigurationList; 565 | buildConfigurations = ( 566 | 33CC10F92044A3C60003C045 /* Debug */, 567 | 33CC10FA2044A3C60003C045 /* Release */, 568 | 338D0CE9231458BD00FA5F75 /* Profile */, 569 | ); 570 | defaultConfigurationIsVisible = 0; 571 | defaultConfigurationName = Release; 572 | }; 573 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 33CC10FC2044A3C60003C045 /* Debug */, 577 | 33CC10FD2044A3C60003C045 /* Release */, 578 | 338D0CEA231458BD00FA5F75 /* Profile */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 33CC111C2044C6BA0003C045 /* Debug */, 587 | 33CC111D2044C6BA0003C045 /* Release */, 588 | 338D0CEB231458BD00FA5F75 /* Profile */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 596 | } 597 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 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 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = stackHelpOver 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.example.stackHelpOver 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | archive: 5 | dependency: transitive 6 | description: 7 | name: archive 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.0.13" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.6.0" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.5.0-nullsafety.1" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.1.0-nullsafety.1" 32 | characters: 33 | dependency: transitive 34 | description: 35 | name: characters 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0-nullsafety.3" 39 | charcode: 40 | dependency: transitive 41 | description: 42 | name: charcode 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.2.0-nullsafety.1" 46 | clock: 47 | dependency: transitive 48 | description: 49 | name: clock 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.1.0-nullsafety.1" 53 | collection: 54 | dependency: transitive 55 | description: 56 | name: collection 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.15.0-nullsafety.3" 60 | convert: 61 | dependency: transitive 62 | description: 63 | name: convert 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.1.1" 67 | crypto: 68 | dependency: transitive 69 | description: 70 | name: crypto 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.1.5" 74 | csslib: 75 | dependency: transitive 76 | description: 77 | name: csslib 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "0.16.1" 81 | cupertino_icons: 82 | dependency: "direct main" 83 | description: 84 | name: cupertino_icons 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "0.1.3" 88 | dio: 89 | dependency: "direct main" 90 | description: 91 | name: dio 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "3.0.9" 95 | fake_async: 96 | dependency: transitive 97 | description: 98 | name: fake_async 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.2.0-nullsafety.1" 102 | flutter: 103 | dependency: "direct main" 104 | description: flutter 105 | source: sdk 106 | version: "0.0.0" 107 | flutter_html: 108 | dependency: "direct main" 109 | description: 110 | name: flutter_html 111 | url: "https://pub.dartlang.org" 112 | source: hosted 113 | version: "0.11.1" 114 | flutter_test: 115 | dependency: "direct dev" 116 | description: flutter 117 | source: sdk 118 | version: "0.0.0" 119 | flutter_webview_plugin: 120 | dependency: "direct main" 121 | description: 122 | name: flutter_webview_plugin 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.3.11" 126 | html: 127 | dependency: transitive 128 | description: 129 | name: html 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.14.0+3" 133 | http_parser: 134 | dependency: transitive 135 | description: 136 | name: http_parser 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "3.1.4" 140 | intl: 141 | dependency: "direct main" 142 | description: 143 | name: intl 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.16.1" 147 | logging: 148 | dependency: transitive 149 | description: 150 | name: logging 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "0.11.4" 154 | lottie: 155 | dependency: "direct main" 156 | description: 157 | name: lottie 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.5.1" 161 | matcher: 162 | dependency: transitive 163 | description: 164 | name: matcher 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "0.12.10-nullsafety.1" 168 | meta: 169 | dependency: transitive 170 | description: 171 | name: meta 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.3.0-nullsafety.3" 175 | nested: 176 | dependency: transitive 177 | description: 178 | name: nested 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "0.0.4" 182 | path: 183 | dependency: transitive 184 | description: 185 | name: path 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "1.8.0-nullsafety.1" 189 | provider: 190 | dependency: "direct main" 191 | description: 192 | name: provider 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "4.3.2+2" 196 | sky_engine: 197 | dependency: transitive 198 | description: flutter 199 | source: sdk 200 | version: "0.0.99" 201 | source_span: 202 | dependency: transitive 203 | description: 204 | name: source_span 205 | url: "https://pub.dartlang.org" 206 | source: hosted 207 | version: "1.8.0-nullsafety.2" 208 | stack_trace: 209 | dependency: transitive 210 | description: 211 | name: stack_trace 212 | url: "https://pub.dartlang.org" 213 | source: hosted 214 | version: "1.10.0-nullsafety.1" 215 | stream_channel: 216 | dependency: transitive 217 | description: 218 | name: stream_channel 219 | url: "https://pub.dartlang.org" 220 | source: hosted 221 | version: "2.1.0-nullsafety.1" 222 | string_scanner: 223 | dependency: transitive 224 | description: 225 | name: string_scanner 226 | url: "https://pub.dartlang.org" 227 | source: hosted 228 | version: "1.1.0-nullsafety.1" 229 | term_glyph: 230 | dependency: transitive 231 | description: 232 | name: term_glyph 233 | url: "https://pub.dartlang.org" 234 | source: hosted 235 | version: "1.2.0-nullsafety.1" 236 | test_api: 237 | dependency: transitive 238 | description: 239 | name: test_api 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "0.2.19-nullsafety.2" 243 | typed_data: 244 | dependency: transitive 245 | description: 246 | name: typed_data 247 | url: "https://pub.dartlang.org" 248 | source: hosted 249 | version: "1.3.0-nullsafety.3" 250 | vector_math: 251 | dependency: transitive 252 | description: 253 | name: vector_math 254 | url: "https://pub.dartlang.org" 255 | source: hosted 256 | version: "2.1.0-nullsafety.3" 257 | webview_flutter: 258 | dependency: "direct main" 259 | description: 260 | name: webview_flutter 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "0.3.22+1" 264 | sdks: 265 | dart: ">=2.10.0-110 <2.11.0" 266 | flutter: ">=1.16.0" 267 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: stackHelpOver 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: '>=2.7.0 <3.0.0' 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | flutter_html: ^0.11.1 27 | intl: ^0.16.1 28 | # firebase_auth: ^0.16.0 29 | flutter_webview_plugin: ^0.3.11 30 | webview_flutter: ^0.3.22+1 31 | 32 | # The following adds the Cupertino Icons font to your application. 33 | # Use with the CupertinoIcons class for iOS style icons. 34 | cupertino_icons: ^0.1.3 35 | dio: ^3.0.9 36 | lottie: ^0.5.1 37 | provider: ^4.3.2+2 38 | 39 | dev_dependencies: 40 | flutter_test: 41 | sdk: flutter 42 | 43 | # For information on the generic Dart part of this file, see the 44 | # following page: https://dart.dev/tools/pub/pubspec 45 | # The following section is specific to Flutter. 46 | flutter: 47 | # The following line ensures that the Material Icons font is 48 | # included with your application, so that you can use the icons in 49 | # the material Icons class. 50 | uses-material-design: true 51 | # To add assets to your application, add an assets section, like this: 52 | # assets: 53 | # - images/a_dot_burr.jpeg 54 | # - images/a_dot_ham.jpeg 55 | # An image asset can refer to one or more resolution-specific "variants", see 56 | # https://flutter.dev/assets-and-images/#resolution-aware. 57 | # For details regarding adding assets from package dependencies, see 58 | # https://flutter.dev/assets-and-images/#from-packages 59 | # To add custom fonts to your application, add a fonts section here, 60 | # in this "flutter" section. Each entry in this list should have a 61 | # "family" key with the font family name, and a "fonts" key with a 62 | # list giving the asset and other descriptors for the font. For 63 | # example: 64 | # fonts: 65 | # - family: Schyler 66 | # fonts: 67 | # - asset: fonts/Schyler-Regular.ttf 68 | # - asset: fonts/Schyler-Italic.ttf 69 | # style: italic 70 | # - family: Trajan Pro 71 | # fonts: 72 | # - asset: fonts/TrajanPro.ttf 73 | # - asset: fonts/TrajanPro_Bold.ttf 74 | # weight: 700 75 | # 76 | # For details regarding fonts from package dependencies, 77 | # see https://flutter.dev/custom-fonts/#from-packages 78 | 79 | -------------------------------------------------------------------------------- /test/datetime/time_test.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | 3 | import 'package:flutter_test/flutter_test.dart'; 4 | import 'package:intl/intl.dart'; 5 | 6 | main() { 7 | final int weeklyCount = 7; 8 | 9 | List weekDateTime = []; 10 | List payments = []; 11 | test('Craete weekly list', () { 12 | weekDateTime = List.generate(weeklyCount, (index) => DateTime.now().subtract(Duration(days: index))); 13 | 14 | payments = 15 | weekDateTime.map((e) => Payment(day: DateFormat(DateFormat.WEEKDAY).format(e), ammount: -e.weekday)).toList(); 16 | 17 | payments.sort((pay, pay2) { 18 | return pay.ammount.compareTo(pay2.ammount); 19 | }); 20 | payments.sort((pay, pay2) { 21 | return pay.day.compareTo(pay2.day); 22 | }); 23 | 24 | expect(payments, isNotEmpty); 25 | }); 26 | } 27 | 28 | class Payment { 29 | final String day; 30 | final int ammount; 31 | 32 | Payment({this.day, this.ammount}); 33 | 34 | Map toMap() { 35 | return { 36 | 'day': day, 37 | 'ammount': ammount, 38 | }; 39 | } 40 | 41 | static Payment fromMap(Map map) { 42 | if (map == null) return null; 43 | 44 | return Payment( 45 | day: map['day'], 46 | ammount: map['ammount'], 47 | ); 48 | } 49 | 50 | String toJson() => json.encode(toMap()); 51 | 52 | static Payment fromJson(String source) => fromMap(json.decode(source)); 53 | } 54 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:stackHelpOver/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VB10/stack-over-help-flutter/fc229b60c3801b09b4a25e562e627c8c1144d174/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | stackHelpOver 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "stackHelpOver", 3 | "short_name": "stackHelpOver", 4 | "start_url": ".", 5 | "display": "minimal-ui", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | --------------------------------------------------------------------------------