├── .gitignore ├── .metadata ├── README.md ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── one_demo │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── 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-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── 1-0.jpg ├── 1-1.jpg ├── 1-2.jpg ├── 1-3.jpg ├── blacklogo.png ├── watch.png └── whitelogo.png ├── 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 ├── extensions │ └── theme_x.dart ├── main.dart ├── theme │ └── theme.dart └── ui │ ├── detail_screen │ ├── detail_screen.dart │ └── widget │ │ ├── about_image_list.dart │ │ ├── about_widget.dart │ │ ├── fold_custom_painter.dart │ │ └── fold_widget.dart │ └── main_screen │ ├── main_screen.dart │ └── widgets │ ├── blur_widget.dart │ ├── list_widget.dart │ ├── menu_list_widget.dart │ ├── menu_widget.dart │ └── topbar_widget.dart ├── pubspec.lock ├── pubspec.yaml ├── test └── 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 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /.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: f4abaa0735eba4dfd8f33f73363911d63931fe03 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # one_demo 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /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 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.one_demo" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/one_demo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.one_demo 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /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:4.1.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 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /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-6.7-all.zip 7 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/1-0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/1-0.jpg -------------------------------------------------------------------------------- /assets/1-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/1-1.jpg -------------------------------------------------------------------------------- /assets/1-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/1-2.jpg -------------------------------------------------------------------------------- /assets/1-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/1-3.jpg -------------------------------------------------------------------------------- /assets/blacklogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/blacklogo.png -------------------------------------------------------------------------------- /assets/watch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/watch.png -------------------------------------------------------------------------------- /assets/whitelogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/assets/whitelogo.png -------------------------------------------------------------------------------- /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/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 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 flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - path_provider (0.0.1): 4 | - Flutter 5 | 6 | DEPENDENCIES: 7 | - Flutter (from `Flutter`) 8 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 9 | 10 | EXTERNAL SOURCES: 11 | Flutter: 12 | :path: Flutter 13 | path_provider: 14 | :path: ".symlinks/plugins/path_provider/ios" 15 | 16 | SPEC CHECKSUMS: 17 | Flutter: 434fef37c0980e73bb6479ef766c45957d4b510c 18 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 19 | 20 | PODFILE CHECKSUM: aafe91acc616949ddb318b77800a7f51bffa2a4c 21 | 22 | COCOAPODS: 1.11.2 23 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 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 | DA85CA3BF1C498CF63D9146A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3734C086C75844271A45D7BB /* 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 | 3734C086C75844271A45D7BB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; 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 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 41 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 42 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 44 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 45 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 46 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | C192D9A9855551957F6884EA /* 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 = ""; }; 48 | DAAF057AADE074389EB84568 /* 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 = ""; }; 49 | F8E6BC8201D273131FB239E5 /* 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 = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | DA85CA3BF1C498CF63D9146A /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 32D6F9400AB7BD86A0D4D4FD /* Frameworks */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 3734C086C75844271A45D7BB /* Pods_Runner.framework */, 68 | ); 69 | name = Frameworks; 70 | sourceTree = ""; 71 | }; 72 | 6298C9AB0DA6158202DD494B /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | F8E6BC8201D273131FB239E5 /* Pods-Runner.debug.xcconfig */, 76 | DAAF057AADE074389EB84568 /* Pods-Runner.release.xcconfig */, 77 | C192D9A9855551957F6884EA /* Pods-Runner.profile.xcconfig */, 78 | ); 79 | name = Pods; 80 | path = Pods; 81 | sourceTree = ""; 82 | }; 83 | 9740EEB11CF90186004384FC /* Flutter */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 87 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 88 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 89 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 90 | ); 91 | name = Flutter; 92 | sourceTree = ""; 93 | }; 94 | 97C146E51CF9000F007C117D = { 95 | isa = PBXGroup; 96 | children = ( 97 | 9740EEB11CF90186004384FC /* Flutter */, 98 | 97C146F01CF9000F007C117D /* Runner */, 99 | 97C146EF1CF9000F007C117D /* Products */, 100 | 6298C9AB0DA6158202DD494B /* Pods */, 101 | 32D6F9400AB7BD86A0D4D4FD /* Frameworks */, 102 | ); 103 | sourceTree = ""; 104 | }; 105 | 97C146EF1CF9000F007C117D /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 97C146EE1CF9000F007C117D /* Runner.app */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 97C146F01CF9000F007C117D /* Runner */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 117 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 118 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 119 | 97C147021CF9000F007C117D /* Info.plist */, 120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 124 | ); 125 | path = Runner; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | 97C146ED1CF9000F007C117D /* Runner */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 134 | buildPhases = ( 135 | 08DD20135420D5E71FD7E651 /* [CP] Check Pods Manifest.lock */, 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | 9E06E5977ED18F823FAA417A /* [CP] Embed Pods Frameworks */, 143 | ); 144 | buildRules = ( 145 | ); 146 | dependencies = ( 147 | ); 148 | name = Runner; 149 | productName = Runner; 150 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 151 | productType = "com.apple.product-type.application"; 152 | }; 153 | /* End PBXNativeTarget section */ 154 | 155 | /* Begin PBXProject section */ 156 | 97C146E61CF9000F007C117D /* Project object */ = { 157 | isa = PBXProject; 158 | attributes = { 159 | LastUpgradeCheck = 1020; 160 | ORGANIZATIONNAME = ""; 161 | TargetAttributes = { 162 | 97C146ED1CF9000F007C117D = { 163 | CreatedOnToolsVersion = 7.3.1; 164 | LastSwiftMigration = 1100; 165 | }; 166 | }; 167 | }; 168 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 169 | compatibilityVersion = "Xcode 9.3"; 170 | developmentRegion = en; 171 | hasScannedForEncodings = 0; 172 | knownRegions = ( 173 | en, 174 | Base, 175 | ); 176 | mainGroup = 97C146E51CF9000F007C117D; 177 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 178 | projectDirPath = ""; 179 | projectRoot = ""; 180 | targets = ( 181 | 97C146ED1CF9000F007C117D /* Runner */, 182 | ); 183 | }; 184 | /* End PBXProject section */ 185 | 186 | /* Begin PBXResourcesBuildPhase section */ 187 | 97C146EC1CF9000F007C117D /* Resources */ = { 188 | isa = PBXResourcesBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 192 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 193 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 08DD20135420D5E71FD7E651 /* [CP] Check Pods Manifest.lock */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputFileListPaths = ( 207 | ); 208 | inputPaths = ( 209 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 210 | "${PODS_ROOT}/Manifest.lock", 211 | ); 212 | name = "[CP] Check Pods Manifest.lock"; 213 | outputFileListPaths = ( 214 | ); 215 | outputPaths = ( 216 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 217 | ); 218 | runOnlyForDeploymentPostprocessing = 0; 219 | shellPath = /bin/sh; 220 | 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"; 221 | showEnvVarsInLog = 0; 222 | }; 223 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 224 | isa = PBXShellScriptBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | ); 228 | inputPaths = ( 229 | ); 230 | name = "Thin Binary"; 231 | outputPaths = ( 232 | ); 233 | runOnlyForDeploymentPostprocessing = 0; 234 | shellPath = /bin/sh; 235 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 236 | }; 237 | 9740EEB61CF901F6004384FC /* Run Script */ = { 238 | isa = PBXShellScriptBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | ); 242 | inputPaths = ( 243 | ); 244 | name = "Run Script"; 245 | outputPaths = ( 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | shellPath = /bin/sh; 249 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 250 | }; 251 | 9E06E5977ED18F823FAA417A /* [CP] Embed Pods Frameworks */ = { 252 | isa = PBXShellScriptBuildPhase; 253 | buildActionMask = 2147483647; 254 | files = ( 255 | ); 256 | inputFileListPaths = ( 257 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 258 | ); 259 | name = "[CP] Embed Pods Frameworks"; 260 | outputFileListPaths = ( 261 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 266 | showEnvVarsInLog = 0; 267 | }; 268 | /* End PBXShellScriptBuildPhase section */ 269 | 270 | /* Begin PBXSourcesBuildPhase section */ 271 | 97C146EA1CF9000F007C117D /* Sources */ = { 272 | isa = PBXSourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 276 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | /* End PBXSourcesBuildPhase section */ 281 | 282 | /* Begin PBXVariantGroup section */ 283 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 284 | isa = PBXVariantGroup; 285 | children = ( 286 | 97C146FB1CF9000F007C117D /* Base */, 287 | ); 288 | name = Main.storyboard; 289 | sourceTree = ""; 290 | }; 291 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 292 | isa = PBXVariantGroup; 293 | children = ( 294 | 97C147001CF9000F007C117D /* Base */, 295 | ); 296 | name = LaunchScreen.storyboard; 297 | sourceTree = ""; 298 | }; 299 | /* End PBXVariantGroup section */ 300 | 301 | /* Begin XCBuildConfiguration section */ 302 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 333 | ENABLE_NS_ASSERTIONS = NO; 334 | ENABLE_STRICT_OBJC_MSGSEND = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_NO_COMMON_BLOCKS = YES; 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 344 | MTL_ENABLE_DEBUG_INFO = NO; 345 | SDKROOT = iphoneos; 346 | SUPPORTED_PLATFORMS = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Profile; 351 | }; 352 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | CLANG_ENABLE_MODULES = YES; 358 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 359 | ENABLE_BITCODE = NO; 360 | INFOPLIST_FILE = Runner/Info.plist; 361 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 362 | PRODUCT_BUNDLE_IDENTIFIER = com.example.oneDemo; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 365 | SWIFT_VERSION = 5.0; 366 | VERSIONING_SYSTEM = "apple-generic"; 367 | }; 368 | name = Profile; 369 | }; 370 | 97C147031CF9000F007C117D /* Debug */ = { 371 | isa = XCBuildConfiguration; 372 | buildSettings = { 373 | ALWAYS_SEARCH_USER_PATHS = NO; 374 | CLANG_ANALYZER_NONNULL = YES; 375 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 376 | CLANG_CXX_LIBRARY = "libc++"; 377 | CLANG_ENABLE_MODULES = YES; 378 | CLANG_ENABLE_OBJC_ARC = YES; 379 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 380 | CLANG_WARN_BOOL_CONVERSION = YES; 381 | CLANG_WARN_COMMA = YES; 382 | CLANG_WARN_CONSTANT_CONVERSION = YES; 383 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 384 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 385 | CLANG_WARN_EMPTY_BODY = YES; 386 | CLANG_WARN_ENUM_CONVERSION = YES; 387 | CLANG_WARN_INFINITE_RECURSION = YES; 388 | CLANG_WARN_INT_CONVERSION = YES; 389 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 390 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 391 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 392 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 393 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 394 | CLANG_WARN_STRICT_PROTOTYPES = YES; 395 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 396 | CLANG_WARN_UNREACHABLE_CODE = YES; 397 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 399 | COPY_PHASE_STRIP = NO; 400 | DEBUG_INFORMATION_FORMAT = dwarf; 401 | ENABLE_STRICT_OBJC_MSGSEND = YES; 402 | ENABLE_TESTABILITY = YES; 403 | GCC_C_LANGUAGE_STANDARD = gnu99; 404 | GCC_DYNAMIC_NO_PIC = NO; 405 | GCC_NO_COMMON_BLOCKS = YES; 406 | GCC_OPTIMIZATION_LEVEL = 0; 407 | GCC_PREPROCESSOR_DEFINITIONS = ( 408 | "DEBUG=1", 409 | "$(inherited)", 410 | ); 411 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 412 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 413 | GCC_WARN_UNDECLARED_SELECTOR = YES; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 418 | MTL_ENABLE_DEBUG_INFO = YES; 419 | ONLY_ACTIVE_ARCH = YES; 420 | SDKROOT = iphoneos; 421 | TARGETED_DEVICE_FAMILY = "1,2"; 422 | }; 423 | name = Debug; 424 | }; 425 | 97C147041CF9000F007C117D /* Release */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_ANALYZER_NONNULL = YES; 430 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 431 | CLANG_CXX_LIBRARY = "libc++"; 432 | CLANG_ENABLE_MODULES = YES; 433 | CLANG_ENABLE_OBJC_ARC = YES; 434 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 435 | CLANG_WARN_BOOL_CONVERSION = YES; 436 | CLANG_WARN_COMMA = YES; 437 | CLANG_WARN_CONSTANT_CONVERSION = YES; 438 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 439 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 440 | CLANG_WARN_EMPTY_BODY = YES; 441 | CLANG_WARN_ENUM_CONVERSION = YES; 442 | CLANG_WARN_INFINITE_RECURSION = YES; 443 | CLANG_WARN_INT_CONVERSION = YES; 444 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 445 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 446 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 447 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 448 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 449 | CLANG_WARN_STRICT_PROTOTYPES = YES; 450 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 451 | CLANG_WARN_UNREACHABLE_CODE = YES; 452 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 453 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 454 | COPY_PHASE_STRIP = NO; 455 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 456 | ENABLE_NS_ASSERTIONS = NO; 457 | ENABLE_STRICT_OBJC_MSGSEND = YES; 458 | GCC_C_LANGUAGE_STANDARD = gnu99; 459 | GCC_NO_COMMON_BLOCKS = YES; 460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 462 | GCC_WARN_UNDECLARED_SELECTOR = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 464 | GCC_WARN_UNUSED_FUNCTION = YES; 465 | GCC_WARN_UNUSED_VARIABLE = YES; 466 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 467 | MTL_ENABLE_DEBUG_INFO = NO; 468 | SDKROOT = iphoneos; 469 | SUPPORTED_PLATFORMS = iphoneos; 470 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 471 | TARGETED_DEVICE_FAMILY = "1,2"; 472 | VALIDATE_PRODUCT = YES; 473 | }; 474 | name = Release; 475 | }; 476 | 97C147061CF9000F007C117D /* Debug */ = { 477 | isa = XCBuildConfiguration; 478 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 479 | buildSettings = { 480 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 481 | CLANG_ENABLE_MODULES = YES; 482 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 483 | ENABLE_BITCODE = NO; 484 | INFOPLIST_FILE = Runner/Info.plist; 485 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 486 | PRODUCT_BUNDLE_IDENTIFIER = com.example.oneDemo; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 490 | SWIFT_VERSION = 5.0; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | }; 493 | name = Debug; 494 | }; 495 | 97C147071CF9000F007C117D /* Release */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 498 | buildSettings = { 499 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 500 | CLANG_ENABLE_MODULES = YES; 501 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 502 | ENABLE_BITCODE = NO; 503 | INFOPLIST_FILE = Runner/Info.plist; 504 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 505 | PRODUCT_BUNDLE_IDENTIFIER = com.example.oneDemo; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 508 | SWIFT_VERSION = 5.0; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | }; 511 | name = Release; 512 | }; 513 | /* End XCBuildConfiguration section */ 514 | 515 | /* Begin XCConfigurationList section */ 516 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 517 | isa = XCConfigurationList; 518 | buildConfigurations = ( 519 | 97C147031CF9000F007C117D /* Debug */, 520 | 97C147041CF9000F007C117D /* Release */, 521 | 249021D3217E4FDB00AE95B9 /* Profile */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 97C147061CF9000F007C117D /* Debug */, 530 | 97C147071CF9000F007C117D /* Release */, 531 | 249021D4217E4FDB00AE95B9 /* Profile */, 532 | ); 533 | defaultConfigurationIsVisible = 0; 534 | defaultConfigurationName = Release; 535 | }; 536 | /* End XCConfigurationList section */ 537 | }; 538 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 539 | } 540 | -------------------------------------------------------------------------------- /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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/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 | one_demo 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/extensions/theme_x.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | extension TextThemeStylesX on BuildContext { 4 | TextStyle get bodyText1 => Theme.of(this).textTheme.bodyText1!; 5 | 6 | TextStyle get bodyText2 => Theme.of(this).textTheme.bodyText2!; 7 | 8 | TextStyle get subtitle1 => Theme.of(this).textTheme.subtitle1!; 9 | 10 | TextStyle get subtitle2 => Theme.of(this).textTheme.subtitle2!; 11 | 12 | TextStyle get headline1 => Theme.of(this).textTheme.headline1!; 13 | 14 | TextStyle get headline2 => Theme.of(this).textTheme.headline2!; 15 | 16 | TextStyle get headline3 => Theme.of(this).textTheme.headline3!; 17 | 18 | TextStyle get headline4 => Theme.of(this).textTheme.headline4!; 19 | 20 | TextStyle get headline5 => Theme.of(this).textTheme.headline5!; 21 | 22 | TextStyle get headline6 => Theme.of(this).textTheme.headline6!; 23 | } 24 | 25 | extension SizeX on BuildContext { 26 | double get width => MediaQuery.of(this).size.width; 27 | double get height => MediaQuery.of(this).size.height; 28 | } 29 | 30 | extension calculateHeight on double { 31 | double newHeight(value) { 32 | if (value < 0.5) { 33 | return this * value; 34 | } else { 35 | return this - (this * value); 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/theme/theme.dart'; 3 | import '/ui/main_screen/main_screen.dart'; 4 | 5 | void main() { 6 | runApp(MyApp()); 7 | } 8 | 9 | class MyApp extends StatelessWidget { 10 | @override 11 | Widget build(BuildContext context) { 12 | 13 | 14 | return MaterialApp( 15 | title: 'Flutter Demo', 16 | debugShowCheckedModeBanner: false, 17 | theme: ShopTheme.theme, 18 | home: MainScreen(), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/theme/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | class ShopTheme { 5 | ShopTheme._(); 6 | 7 | static const Color xBrown = Color(0xff915e54); 8 | 9 | static ThemeData get theme => ThemeData( 10 | backgroundColor: Color(0xffffffff), 11 | scaffoldBackgroundColor: Colors.black, 12 | textTheme: textTheme, 13 | ); 14 | 15 | static TextTheme get textTheme { 16 | return TextTheme( 17 | caption: GoogleFonts.merriweather( 18 | fontSize: 12, 19 | fontWeight: FontWeight.w400, 20 | ), 21 | subtitle1: GoogleFonts.merriweather( 22 | fontSize: 16, 23 | fontWeight: FontWeight.w400, 24 | ), 25 | subtitle2: GoogleFonts.merriweather( 26 | fontSize: 16, 27 | fontWeight: FontWeight.w400, 28 | ), 29 | bodyText1: GoogleFonts.merriweather( 30 | fontSize: 14, 31 | fontWeight: FontWeight.w300, 32 | ), 33 | bodyText2: GoogleFonts.merriweather( 34 | fontSize: 14, 35 | fontWeight: FontWeight.w400, 36 | ), 37 | headline6: GoogleFonts.merriweather( 38 | fontSize: 14, 39 | fontWeight: FontWeight.w700, 40 | ), 41 | headline5: GoogleFonts.merriweather( 42 | fontSize: 16, 43 | fontWeight: FontWeight.w700, 44 | ), 45 | headline4: GoogleFonts.merriweather( 46 | fontSize: 18, 47 | fontWeight: FontWeight.w700, 48 | ), 49 | headline3: GoogleFonts.merriweather( 50 | fontSize: 20, 51 | fontWeight: FontWeight.w700, 52 | ), 53 | headline2: GoogleFonts.merriweather( 54 | fontSize: 22, 55 | fontWeight: FontWeight.w700, 56 | ), 57 | headline1: GoogleFonts.merriweather( 58 | fontSize: 24, 59 | fontWeight: FontWeight.w700, 60 | color: Colors.black, 61 | ), 62 | ); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /lib/ui/detail_screen/detail_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/extensions/theme_x.dart'; 3 | import '/theme/theme.dart'; 4 | import '/ui/detail_screen/widget/about_widget.dart'; 5 | import '/ui/main_screen/widgets/topbar_widget.dart'; 6 | 7 | class DetailScreen extends StatefulWidget { 8 | final int i; 9 | const DetailScreen({Key? key, required this.i}) : super(key: key); 10 | 11 | @override 12 | _DetailScreenState createState() => _DetailScreenState(); 13 | } 14 | 15 | class _DetailScreenState extends State 16 | with TickerProviderStateMixin { 17 | bool goAnimate = false; 18 | bool showText = false; 19 | bool about = false; 20 | double barHeight = 90; 21 | late AnimationController _animationController; 22 | 23 | @override 24 | void initState() { 25 | Future.delayed(Duration(milliseconds: 200), () { 26 | goAnimate = true; 27 | setState(() {}); 28 | }); 29 | _animationController = 30 | AnimationController(vsync: this, duration: Duration(milliseconds: 400)); 31 | 32 | super.initState(); 33 | } 34 | 35 | @override 36 | void dispose() { 37 | super.dispose(); 38 | } 39 | 40 | @override 41 | Widget build(BuildContext context) { 42 | return Scaffold( 43 | body: Stack( 44 | fit: StackFit.expand, 45 | children: [ 46 | Positioned( 47 | top: 0, 48 | bottom: 0, 49 | left: 0, 50 | right: 0, 51 | child: Hero( 52 | tag: 'bg' + widget.i.toString(), 53 | child: ClipRRect( 54 | borderRadius: BorderRadius.circular(12), 55 | child: Container( 56 | color: Color(0xffe3e3e3), 57 | ), 58 | ), 59 | ), 60 | ), 61 | Positioned( 62 | top: context.height * .13, 63 | left: 0, 64 | right: 0, 65 | child: Hero( 66 | tag: 'ck' + widget.i.toString(), 67 | child: AnimatedOpacity( 68 | duration: kThemeAnimationDuration, 69 | opacity: about ? 0 : 1, 70 | child: Container( 71 | width: context.height * .4, 72 | height: context.height * .4, 73 | child: Image.asset('assets/watch.png')), 74 | ), 75 | ), 76 | ), 77 | Positioned( 78 | top: context.height * .54, 79 | left: 0, 80 | right: 0, 81 | child: AnimatedOpacity( 82 | duration: kThemeAnimationDuration, 83 | opacity: about ? 0 : 1, 84 | child: Column( 85 | children: [ 86 | Padding( 87 | padding: const EdgeInsets.all(8.0), 88 | child: Text( 89 | 'Heritage 1959', 90 | style: context.headline4.copyWith(color: Colors.black), 91 | ), 92 | ), 93 | Text('\$ 342', 94 | style: 95 | context.headline1.copyWith(color: ShopTheme.xBrown)), 96 | Padding( 97 | padding: const EdgeInsets.all(8.0), 98 | child: Column( 99 | children: [ 100 | RichText( 101 | text: TextSpan(children: [ 102 | TextSpan( 103 | text: 'MOVEMENT: ', 104 | style: context.headline6 105 | .copyWith(color: Colors.black)), 106 | TextSpan( 107 | text: 'Japanese Quartz Movement', 108 | style: context.bodyText2) 109 | ]), 110 | ), 111 | const SizedBox(height: 8), 112 | RichText( 113 | text: TextSpan(children: [ 114 | TextSpan( 115 | text: 'CASE: ', 116 | style: context.headline6 117 | .copyWith(color: Colors.black)), 118 | TextSpan( 119 | text: '40 mm polished stainless steel', 120 | style: context.bodyText2) 121 | ]), 122 | ), 123 | ], 124 | ), 125 | ), 126 | ], 127 | ), 128 | ), 129 | ), 130 | AnimatedPositioned( 131 | curve: Curves.ease, 132 | bottom: context.height * .15, 133 | right: goAnimate ? 30 : (context.width - 48) / 2, 134 | left: goAnimate ? (context.width - 78) : (context.width - 48) / 2, 135 | child: ClipOval( 136 | child: GestureDetector( 137 | onTap: () => Navigator.pop(context), 138 | child: Container( 139 | width: 48, 140 | height: 48, 141 | color: ShopTheme.xBrown, 142 | child: Center( 143 | child: Icon( 144 | Icons.bookmark_border, 145 | size: 28, 146 | color: Colors.white, 147 | ), 148 | ), 149 | ), 150 | ), 151 | ), 152 | duration: Duration( 153 | milliseconds: 1000, 154 | ), 155 | ), 156 | Positioned( 157 | left: 0, 158 | right: 0, 159 | bottom: context.height * .04, 160 | child: GestureDetector( 161 | onTap: () { 162 | about = true; 163 | _animationController.forward(); 164 | 165 | print(about); 166 | setState(() {}); 167 | }, 168 | child: Column( 169 | children: [ 170 | Text('ABOUT'), 171 | Icon( 172 | Icons.more_vert_outlined, 173 | ), 174 | ], 175 | ), 176 | )), 177 | AnimatedPositioned( 178 | curve: Curves.easeIn, 179 | left: 0, 180 | right: 0, 181 | top: about ? context.height - (context.height * .78) : context.height, 182 | child: Container( 183 | decoration: BoxDecoration( 184 | color: Colors.white, 185 | borderRadius: BorderRadius.circular(20)), 186 | width: context.width, 187 | height: context.height * 0.85, 188 | child: AboutWidget(), 189 | ), 190 | duration: Duration(milliseconds: 400)), 191 | AnimatedPositioned( 192 | onEnd: () { 193 | showText = true; 194 | setState(() {}); 195 | }, 196 | duration: Duration( 197 | milliseconds: about ? 480 : 300, 198 | ), 199 | bottom: about ? (context.height + 0) * .75 : context.height * .15, 200 | left: about && _animationController.isCompleted 201 | ? 80 202 | : goAnimate 203 | ? context.width - (context.width - 88) 204 | : context.width / 2, 205 | right: about && _animationController.isCompleted 206 | ? 80 207 | : goAnimate 208 | ? context.width - (context.width - 88) 209 | : context.width / 2, 210 | child: AnimatedContainer( 211 | duration: Duration(milliseconds: 800), 212 | width: about 213 | ? context.width - 100 214 | : goAnimate 215 | ? context.width - 200 216 | : 0, 217 | height: 48, 218 | decoration: BoxDecoration( 219 | boxShadow: [ 220 | about && _animationController.isCompleted 221 | ? BoxShadow( 222 | color: Colors.grey, 223 | offset: Offset(0.0, 3.0), 224 | blurRadius: 8.0, 225 | ) 226 | : BoxShadow() 227 | ], 228 | color: ShopTheme.xBrown, 229 | borderRadius: BorderRadius.circular(24)), 230 | child: AnimatedOpacity( 231 | opacity: showText ? 1 : 0, 232 | duration: kThemeAnimationDuration, 233 | child: Padding( 234 | padding: const EdgeInsets.symmetric(vertical: 12.0), 235 | child: Row( 236 | mainAxisAlignment: MainAxisAlignment.center, 237 | children: [ 238 | about && _animationController.isCompleted 239 | ? AnimatedContainer( 240 | duration: kThemeAnimationDuration, 241 | child: Container( 242 | width: 243 | about && _animationController.isCompleted 244 | ? 50 245 | : 0, 246 | child: Text('\$ 342', 247 | style: context.subtitle1 248 | .copyWith(color: Colors.white), 249 | textAlign: TextAlign.center), 250 | ), 251 | ) 252 | : Container(), 253 | Text(' ADD TO CART ', 254 | style: 255 | context.subtitle1.copyWith(color: Colors.white), 256 | textAlign: TextAlign.center), 257 | ], 258 | ), 259 | ), 260 | ), 261 | )), 262 | AnimatedPositioned( 263 | curve: Curves.ease, 264 | bottom: context.height * .15, 265 | left: goAnimate ? 30 : (context.width - 48) / 2, 266 | right: goAnimate ? (context.width - 78) : (context.width - 48) / 2, 267 | child: Hero( 268 | tag: 'menu', 269 | child: ClipOval( 270 | child: GestureDetector( 271 | onTap: () { 272 | if (about) { 273 | about = !about; 274 | _animationController.reverse(); 275 | setState(() {}); 276 | } else { 277 | Navigator.pop(context); 278 | } 279 | }, 280 | child: Container( 281 | width: 48, 282 | height: 48, 283 | color: ShopTheme.xBrown, 284 | child: Center( 285 | child: RotationTransition( 286 | turns: Tween(begin: 0.0, end: -.25) 287 | .animate(_animationController), 288 | child: Icon( 289 | Icons.keyboard_backspace_rounded, 290 | size: 28, 291 | color: Colors.white, 292 | ), 293 | ), 294 | ), 295 | ), 296 | ), 297 | ), 298 | ), 299 | duration: Duration( 300 | milliseconds: 1000, 301 | ), 302 | ), 303 | TopbarWidget( 304 | barHeight: barHeight, 305 | isBig: false, 306 | ) 307 | ], 308 | ), 309 | ); 310 | } 311 | } 312 | -------------------------------------------------------------------------------- /lib/ui/detail_screen/widget/about_image_list.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AboutImageList extends StatelessWidget { 4 | const AboutImageList({ Key? key }) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | height: 250, 10 | child: ListView.builder( 11 | scrollDirection: Axis.horizontal, 12 | itemCount: 4, 13 | itemBuilder: (_, i) { 14 | return Padding( 15 | padding: const EdgeInsets.all(12.0), 16 | child: Align( 17 | alignment: Alignment.center, 18 | child: Container( 19 | height: 200, 20 | width: 200, 21 | decoration: BoxDecoration( 22 | borderRadius: BorderRadius.circular(20), 23 | boxShadow: [ 24 | BoxShadow( 25 | color: Colors.grey.shade200, 26 | blurRadius: 3, 27 | offset: Offset(5.0, 5.0)), 28 | BoxShadow( 29 | color: Colors.grey.shade200, 30 | blurRadius: 3, 31 | offset: Offset(-5.0, -5.0)) 32 | ], 33 | ), 34 | child: Material( 35 | borderRadius: BorderRadius.circular(20), 36 | clipBehavior: Clip.hardEdge, 37 | child: Container( 38 | child: Image.asset( 39 | "assets/1-$i.jpg", 40 | fit: BoxFit.cover, 41 | ), 42 | ), 43 | ), 44 | ), 45 | ), 46 | ); 47 | }), 48 | ); 49 | 50 | } 51 | } -------------------------------------------------------------------------------- /lib/ui/detail_screen/widget/about_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '/extensions/theme_x.dart'; 4 | import '/ui/detail_screen/widget/about_image_list.dart'; 5 | import '/ui/detail_screen/widget/fold_widget.dart'; 6 | 7 | class AboutWidget extends StatefulWidget { 8 | AboutWidget({Key? key}) : super(key: key); 9 | 10 | @override 11 | _AboutWidgetState createState() => _AboutWidgetState(); 12 | } 13 | 14 | class _AboutWidgetState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | return Stack( 18 | children: [ 19 | SingleChildScrollView( 20 | child: Column( 21 | mainAxisSize: MainAxisSize.max, 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | const SizedBox(height: 45), 25 | Padding( 26 | padding: const EdgeInsets.symmetric(horizontal: 20), 27 | child: Text( 28 | 'The Ambassador', 29 | style: context.headline1, 30 | ), 31 | ), 32 | Padding( 33 | padding: const EdgeInsets.symmetric(horizontal: 20), 34 | child: Text( 35 | 'Heritage 1959', 36 | style: context.headline1, 37 | ), 38 | ), 39 | const SizedBox(height: 10), 40 | Padding( 41 | padding: const EdgeInsets.symmetric(horizontal: 20), 42 | child: Text( 43 | 'Every Second does count', 44 | style: context.bodyText1.copyWith(), 45 | ), 46 | ), 47 | AboutImageList(), 48 | FoldWidget( 49 | title: 'Japanese Quartz Movement', 50 | content: 51 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ', 52 | ), 53 | Divider(), 54 | FoldWidget( 55 | title: 'Luxurios Watch Box', 56 | content: 57 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ', 58 | ), 59 | Divider(), 60 | Padding( 61 | padding: const EdgeInsets.symmetric(horizontal: 20), 62 | child: Text( 63 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum \n\n\n Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?', 64 | style: context.bodyText1, 65 | ), 66 | ), 67 | SizedBox(height: 50), 68 | ], 69 | ), 70 | ), 71 | Container( 72 | width: context.width, 73 | height: 40, 74 | decoration: BoxDecoration( 75 | gradient: LinearGradient( 76 | begin: Alignment.topCenter, 77 | end: Alignment.bottomCenter, 78 | colors: [ 79 | Colors.white, 80 | Colors.white.withOpacity(.8), 81 | Colors.white.withOpacity(0) 82 | ]), 83 | ), 84 | ), 85 | ], 86 | ); 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /lib/ui/detail_screen/widget/fold_custom_painter.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/theme/theme.dart'; 3 | import '/extensions/theme_x.dart'; 4 | 5 | class FoldCustomPainter extends CustomPainter { 6 | final double value; 7 | 8 | FoldCustomPainter(this.value); 9 | 10 | @override 11 | void paint(Canvas canvas, Size size) { 12 | Paint paint = Paint(); 13 | 14 | Path mainBGPath = Path(); 15 | mainBGPath.addRect(Rect.fromLTWH(0.0, 0.0, size.width, 150 * value)); 16 | paint.color = ShopTheme.xBrown; 17 | 18 | canvas.drawPath(mainBGPath, paint); 19 | 20 | Path shadow = Path(); 21 | shadow.addRect(Rect.fromLTWH(0, (size.height - 20.0.newHeight(value)) / 2, 22 | size.width, 20.0.newHeight(value))); 23 | canvas.drawShadow(shadow, Colors.black54, 3, true); 24 | 25 | Path trianglePath = Path(); 26 | trianglePath.moveTo(0, 0); 27 | trianglePath.lineTo((50 - 50 * value), size.height / 2); 28 | trianglePath.lineTo(0, size.height); 29 | trianglePath.close(); 30 | paint.color = Colors.white; 31 | canvas.drawPath(trianglePath, paint); 32 | 33 | Path trianglePath2 = Path(); 34 | trianglePath2.moveTo(size.width, 0); 35 | trianglePath2.lineTo(size.width - (50 - 50 * value), (size.height / 2)); 36 | trianglePath2.lineTo(size.width, size.height); 37 | trianglePath2.close(); 38 | paint.color = Colors.white; 39 | canvas.drawPath(trianglePath2, paint); 40 | } 41 | 42 | @override 43 | bool shouldRepaint(CustomPainter oldDelegate) { 44 | return true; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/ui/detail_screen/widget/fold_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '/extensions/theme_x.dart'; 4 | import '/theme/theme.dart'; 5 | import '/ui/detail_screen/widget/fold_custom_painter.dart'; 6 | 7 | class FoldWidget extends StatefulWidget { 8 | final String title; 9 | final String content; 10 | const FoldWidget({Key? key, required this.title, required this.content}) 11 | : super(key: key); 12 | 13 | @override 14 | _FoldWidgetState createState() => _FoldWidgetState(); 15 | } 16 | 17 | class _FoldWidgetState extends State with TickerProviderStateMixin { 18 | bool isOpenDraw = false; 19 | late AnimationController _animationController; 20 | late Animation _myAnimation; 21 | @override 22 | void initState() { 23 | _animationController = 24 | AnimationController(vsync: this, duration: Duration(milliseconds: 300)); 25 | _myAnimation = 26 | CurvedAnimation(curve: Curves.linear, parent: _animationController); 27 | super.initState(); 28 | } 29 | 30 | @override 31 | void dispose() { 32 | _animationController.dispose(); 33 | super.dispose(); 34 | } 35 | 36 | @override 37 | Widget build(BuildContext context) { 38 | return Container( 39 | width: context.width, 40 | color: Colors.white, 41 | child: Column( 42 | children: [ 43 | GestureDetector( 44 | onTap: () { 45 | if (isOpenDraw) { 46 | _animationController.reverse(); 47 | isOpenDraw = !isOpenDraw; 48 | setState(() {}); 49 | } else { 50 | _animationController.forward(); 51 | isOpenDraw = !isOpenDraw; 52 | setState(() {}); 53 | } 54 | }, 55 | child: Padding( 56 | padding: const EdgeInsets.all(8.0), 57 | child: Row( 58 | children: [ 59 | AnimatedIcon( 60 | icon: AnimatedIcons.menu_close, 61 | progress: _myAnimation, 62 | color: ShopTheme.xBrown, 63 | ), 64 | Text(' ' + widget.title), 65 | ], 66 | ), 67 | ), 68 | ), 69 | AnimatedBuilder( 70 | animation: _animationController, 71 | builder: (context, i) { 72 | return CustomPaint( 73 | painter: FoldCustomPainter(_animationController.value), 74 | child: Container( 75 | height: 150.0 * _animationController.value, 76 | child: Padding( 77 | padding: const EdgeInsets.all(8.0), 78 | child: AnimatedOpacity( 79 | duration: kThemeAnimationDuration, 80 | opacity: isOpenDraw && _animationController.isCompleted 81 | ? 1 82 | : 0, 83 | child: Text( 84 | widget.content, 85 | maxLines: 7, 86 | style: context.bodyText1.copyWith( 87 | color: Colors.white, fontWeight: FontWeight.w100), 88 | ), 89 | ), 90 | ), 91 | ), 92 | ); 93 | }), 94 | ], 95 | ), 96 | ); 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /lib/ui/main_screen/main_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import '/ui/main_screen/widgets/blur_widget.dart'; 5 | import '/ui/main_screen/widgets/list_widget.dart'; 6 | import '/ui/main_screen/widgets/menu_widget.dart'; 7 | import '/ui/main_screen/widgets/topbar_widget.dart'; 8 | 9 | import 'package:one_demo/extensions/theme_x.dart'; 10 | 11 | class MainScreen extends StatefulWidget { 12 | const MainScreen({Key? key}) : super(key: key); 13 | 14 | @override 15 | _MainScreenState createState() => _MainScreenState(); 16 | } 17 | 18 | class _MainScreenState extends State with TickerProviderStateMixin { 19 | bool isBig = false; 20 | double barHeight = 90; 21 | bool scrolling = false; 22 | 23 | @override 24 | void initState() { 25 | super.initState(); 26 | } 27 | 28 | @override 29 | void dispose() { 30 | super.dispose(); 31 | } 32 | 33 | @override 34 | Widget build(BuildContext context) { 35 | return Scaffold( 36 | backgroundColor: Theme.of(context).backgroundColor, 37 | body: Stack( 38 | children: [ 39 | ListWidget( 40 | scrolling: (value) { 41 | this.scrolling = value; 42 | setState(() {}); 43 | }, 44 | ), 45 | Positioned( 46 | top: isBig ? 0 : context.height, 47 | bottom: 0, 48 | left: 0, 49 | right: 0, 50 | child: BlurWidget(isBig: isBig)), 51 | MenuWidget( 52 | scrolling: this.scrolling, 53 | menuChange: (value) { 54 | isBig = value; 55 | setState(() {}); 56 | }, 57 | ), 58 | TopbarWidget( 59 | barHeight: barHeight, 60 | isBig: isBig, 61 | ) 62 | ], 63 | ), 64 | ); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /lib/ui/main_screen/widgets/blur_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '/extensions/theme_x.dart'; 4 | 5 | class BlurWidget extends StatelessWidget { 6 | final bool isBig; 7 | const BlurWidget({Key? key, required this.isBig}) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return AnimatedOpacity( 12 | opacity: isBig ? 1 : 0, 13 | duration: Duration(milliseconds: 400), 14 | child: Container( 15 | color: Colors.white, 16 | width: context.width, 17 | height: context.height, 18 | ), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/ui/main_screen/widgets/list_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/extensions/theme_x.dart'; 3 | import '/ui/detail_screen/detail_screen.dart'; 4 | 5 | class ListWidget extends StatefulWidget { 6 | final ValueChanged? scrolling; 7 | const ListWidget({Key? key, this.scrolling}) : super(key: key); 8 | 9 | @override 10 | _ListWidgetState createState() => _ListWidgetState(); 11 | } 12 | 13 | class _ListWidgetState extends State { 14 | num? speed; 15 | 16 | ValueNotifier speedNotifier = ValueNotifier(0.0); 17 | late double width; 18 | late double height; 19 | List price = [ 20 | "340", 21 | "120", 22 | "123", 23 | "234", 24 | "345", 25 | "456", 26 | "543", 27 | "432", 28 | "312", 29 | "456", 30 | "987", 31 | "272" 32 | ]; 33 | 34 | int lastMillisecond = DateTime.now().millisecondsSinceEpoch; 35 | @override 36 | Widget build(BuildContext context) { 37 | height = context.height; 38 | width = context.width; 39 | return NotificationListener( 40 | onNotification: (notification) { 41 | final now = DateTime.now(); 42 | double timeDiff = 43 | (now.millisecondsSinceEpoch - lastMillisecond).toDouble(); 44 | if (notification is ScrollUpdateNotification) { 45 | speed = (notification.scrollDelta ?? 0.0 / timeDiff); 46 | lastMillisecond = DateTime.now().millisecondsSinceEpoch; 47 | if (speed!.isFinite) speedNotifier.value = speed!; 48 | widget.scrolling!(true); 49 | } 50 | 51 | if (notification is ScrollEndNotification) { 52 | lastMillisecond = DateTime.now().millisecondsSinceEpoch; 53 | speed = 0.0; 54 | speedNotifier.value = 0.0; 55 | widget.scrolling!(false); 56 | } 57 | return true; 58 | }, 59 | child: GridView.builder( 60 | physics: ScrollPhysics(), 61 | itemCount: price.length, 62 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 63 | crossAxisCount: 2, 64 | childAspectRatio: .7, 65 | ), 66 | itemBuilder: (context, index) { 67 | return ValueListenableBuilder( 68 | valueListenable: speedNotifier, 69 | builder: (context, value, child) { 70 | final leftColumn = (-value * 1.4).clamp(-8, 8); 71 | final rightColumn = (value * 1.8).clamp(-8, 8); 72 | final padding; 73 | if (value < 0.0 || value > 0.0) { 74 | padding = index % 2 == 0 75 | ? EdgeInsets.only( 76 | top: 20.0 - leftColumn, bottom: 20.0 + leftColumn) 77 | : EdgeInsets.only( 78 | top: 20.0 - rightColumn, bottom: 20.0 + rightColumn); 79 | } else { 80 | padding = EdgeInsets.only(top: 20, bottom: 20); 81 | } 82 | return watchBox(value, padding, price[index], index); 83 | }, 84 | ); 85 | }), 86 | ); 87 | } 88 | 89 | Widget watchBox(num value, EdgeInsets padding, String price, int i) { 90 | return GestureDetector( 91 | onTap: () { 92 | Navigator.of(context).push( 93 | PageRouteBuilder( 94 | transitionDuration: Duration(milliseconds: 300), 95 | pageBuilder: (BuildContext context, Animation animation, 96 | Animation secondaryAnimation) { 97 | return DetailScreen( 98 | i: i, 99 | ); 100 | }, 101 | transitionsBuilder: (BuildContext context, 102 | Animation animation, 103 | Animation secondaryAnimation, 104 | Widget child) { 105 | return FadeTransition( 106 | opacity: animation, 107 | child: child, 108 | ); 109 | }, 110 | ), 111 | ); 112 | }, 113 | child: AnimatedContainer( 114 | duration: Duration(milliseconds: 100), 115 | transform: (value != 0 116 | ? (Matrix4.identity()..scale(0.99, 0.99)) 117 | : Matrix4.identity()), 118 | padding: padding, 119 | child: Stack( 120 | fit: StackFit.expand, 121 | children: [ 122 | Positioned.fromRelativeRect( 123 | rect: i % 2 == 0 124 | ? RelativeRect.fromLTRB(20, 75, 20, 0) 125 | : RelativeRect.fromLTRB(20, 75, 20, 0), 126 | child: Hero( 127 | tag: 'bg' + i.toString(), 128 | child: ClipRRect( 129 | borderRadius: BorderRadius.circular(12), 130 | child: Container( 131 | color: Color(0xffe3e3e3), 132 | ), 133 | ), 134 | ), 135 | ), 136 | Positioned.fromRect( 137 | rect: Rect.fromCenter( 138 | center: Offset(100, 75), width: 150, height: 150), 139 | child: Hero( 140 | tag: 'ck' + i.toString(), 141 | child: Container( 142 | width: 50, 143 | height: 100, 144 | child: Image.asset('assets/watch.png')), 145 | ), 146 | ), 147 | Positioned.fromRelativeRect( 148 | rect: RelativeRect.fromLTRB(0, width / 2.5, 0, 0), 149 | child: Text( 150 | 'Heritage 1959', 151 | style: context.bodyText1.copyWith( 152 | color: Colors.black, 153 | fontWeight: FontWeight.w300, 154 | fontSize: 16), 155 | textAlign: TextAlign.center, 156 | ), 157 | ), 158 | Positioned.fromRelativeRect( 159 | rect: RelativeRect.fromLTRB(0, width / 2.1, 0, 0), 160 | child: Text( 161 | '\$ $price', 162 | style: context.headline4.copyWith( 163 | color: Color(0xffa67a70), 164 | fontWeight: FontWeight.w500, 165 | fontSize: 18, 166 | ), 167 | textAlign: TextAlign.center, 168 | ), 169 | ), 170 | ], 171 | ), 172 | ), 173 | ); 174 | } 175 | } 176 | -------------------------------------------------------------------------------- /lib/ui/main_screen/widgets/menu_list_widget.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math' as math; 2 | import 'package:flutter/material.dart'; 3 | 4 | import '/extensions/theme_x.dart'; 5 | 6 | class MenuListWidget extends StatefulWidget { 7 | final bool isBig; 8 | const MenuListWidget({Key? key, required this.isBig}) : super(key: key); 9 | 10 | @override 11 | _MenuListWidgetState createState() => _MenuListWidgetState(); 12 | } 13 | 14 | class _MenuListWidgetState extends State { 15 | bool complete = false; 16 | @override 17 | Widget build(BuildContext context) { 18 | return TweenAnimationBuilder( 19 | onEnd: () { 20 | complete = true; 21 | setState(() {}); 22 | }, 23 | tween: widget.isBig ? Tween(begin: 1, end: 0) : Tween(begin: 0, end: 1), 24 | duration: const Duration(milliseconds: 600), 25 | curve: Curves.easeInOutBack, 26 | builder: (context, value, child) { 27 | complete = false; 28 | return Transform.rotate( 29 | alignment: Alignment.bottomCenter, 30 | angle: math.pi * value, 31 | child: child, 32 | ); 33 | }, 34 | child: AnimatedOpacity( 35 | duration: Duration(milliseconds: 500), 36 | opacity: (widget.isBig == false) ? 0 : 1, 37 | child: Container( 38 | width: context.width, 39 | height: context.height / 3, 40 | child: Column( 41 | crossAxisAlignment: CrossAxisAlignment.center, 42 | mainAxisAlignment: MainAxisAlignment.spaceAround, 43 | children: [ 44 | Text( 45 | '๏ Main ๏', 46 | style: context.headline1 47 | .copyWith(color: Colors.white.withOpacity(.8)), 48 | ), 49 | Text( 50 | 'The Colleciton', 51 | style: context.headline1 52 | .copyWith(color: Colors.white.withOpacity(.6)), 53 | ), 54 | Text( 55 | 'Lookbook', 56 | style: context.headline1 57 | .copyWith(color: Colors.white.withOpacity(.6)), 58 | ), 59 | Text( 60 | 'Blog', 61 | style: context.headline1 62 | .copyWith(color: Colors.white.withOpacity(.6)), 63 | ), 64 | Text( 65 | 'Support', 66 | style: context.headline1 67 | .copyWith(color: Colors.white.withOpacity(.6)), 68 | ), 69 | Text( 70 | 'Contact', 71 | style: context.headline1 72 | .copyWith(color: Colors.white.withOpacity(.6)), 73 | ), 74 | ], 75 | ), 76 | ), 77 | ), 78 | ); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /lib/ui/main_screen/widgets/menu_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import '/theme/theme.dart'; 3 | import '/ui/main_screen/widgets/menu_list_widget.dart'; 4 | 5 | import '/extensions/theme_x.dart'; 6 | 7 | class MenuWidget extends StatefulWidget { 8 | final ValueChanged? menuChange; 9 | final bool? scrolling; 10 | const MenuWidget({Key? key, this.menuChange, this.scrolling}) 11 | : super(key: key); 12 | 13 | @override 14 | _MenuWidgetState createState() => _MenuWidgetState(); 15 | } 16 | 17 | class _MenuWidgetState extends State with TickerProviderStateMixin { 18 | double begin = 1; 19 | double end = 1; 20 | bool isBig = false; 21 | bool isNew = false; 22 | double barHeight = 90; 23 | late Animation _myAnimation; 24 | late final AnimationController _controller; 25 | @override 26 | void initState() { 27 | _controller = AnimationController( 28 | duration: const Duration(milliseconds: 500), 29 | vsync: this, 30 | ); 31 | 32 | _myAnimation = CurvedAnimation(curve: Curves.linear, parent: _controller); 33 | super.initState(); 34 | } 35 | 36 | @override 37 | void dispose() { 38 | _controller.dispose(); 39 | super.dispose(); 40 | } 41 | 42 | @override 43 | Widget build(BuildContext context) { 44 | double smallLogo = 0; 45 | double bigLogo = context.height * 2; 46 | return LayoutBuilder( 47 | builder: (BuildContext context, BoxConstraints constraints) { 48 | final Size biggest = constraints.biggest; 49 | return Stack( 50 | children: [ 51 | //büyüme animasyonu başladığında buton tüm sayfayı kapladığı ve 52 | //büyüme sırasında butonun merkezi değiştiği için 53 | //iki farklı widget kullanıldı PositionedTransition pozisyonunu koruyarak büyüme işlemini gerçekleştirir 54 | //Positioned widget üzerinde animasyon olmadığı için konumunu korur 55 | PositionedTransition( 56 | rect: RelativeRectTween( 57 | begin: RelativeRect.fromSize( 58 | Rect.fromLTWH((context.width - smallLogo) / 2, 59 | (context.height * .8), smallLogo, smallLogo), 60 | biggest), 61 | end: RelativeRect.fromSize( 62 | Rect.fromLTWH( 63 | (context.width - bigLogo) / 2, 64 | (context.height * .8) - (bigLogo / 2) * 0.97, 65 | bigLogo, 66 | bigLogo), 67 | biggest), 68 | ).animate(_myAnimation), 69 | child: ClipOval( 70 | child: Container( 71 | width: smallLogo, 72 | height: smallLogo, 73 | decoration: BoxDecoration( 74 | gradient: RadialGradient( 75 | colors: [ 76 | ShopTheme.xBrown, 77 | ShopTheme.xBrown.withOpacity(.8), 78 | ], 79 | ), 80 | ), 81 | child: Container( 82 | width: 48, 83 | height: 48, 84 | )), 85 | ), 86 | ), 87 | Positioned( 88 | left: (context.width - 48) / 2, 89 | right: (context.width - 48) / 2, 90 | bottom: context.height * .15, 91 | child: Hero( 92 | tag: 'menu', 93 | child: GestureDetector( 94 | onTap: () { 95 | if (isBig) { 96 | _controller.reverse(); 97 | isBig = !isBig; 98 | widget.menuChange!(isBig); 99 | } else { 100 | _controller.forward(); 101 | isBig = !isBig; 102 | widget.menuChange!(isBig); 103 | } 104 | setState(() {}); 105 | }, 106 | child: AnimatedOpacity( 107 | duration: kThemeAnimationDuration, 108 | opacity: !widget.scrolling! ? 1 : 0, 109 | child: ClipOval( 110 | child: Container( 111 | width: 48, 112 | height: 48, 113 | color: isBig ? Colors.white : ShopTheme.xBrown, 114 | child: Center( 115 | child: AnimatedIcon( 116 | size: 28, 117 | color: !isBig ? Colors.white : ShopTheme.xBrown, 118 | icon: AnimatedIcons.menu_close, 119 | progress: _myAnimation), 120 | ), 121 | ), 122 | ), 123 | )), 124 | ), 125 | ), 126 | Positioned( 127 | bottom: context.height * .25, 128 | top: barHeight + 25, 129 | child: MenuListWidget( 130 | isBig: isBig, 131 | )) 132 | ], 133 | ); 134 | }, 135 | ); 136 | } 137 | } 138 | -------------------------------------------------------------------------------- /lib/ui/main_screen/widgets/topbar_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import '/extensions/theme_x.dart'; 4 | 5 | class TopbarWidget extends StatelessWidget { 6 | final double barHeight; 7 | final bool isBig; 8 | const TopbarWidget({Key? key, required this.barHeight, required this.isBig}) 9 | : super(key: key); 10 | 11 | @override 12 | Widget build(BuildContext context) { 13 | return Positioned( 14 | top: 30, 15 | child: Container( 16 | width: context.width, 17 | height: barHeight / 2.2, 18 | decoration: BoxDecoration( 19 | color: Colors.transparent, 20 | image: DecorationImage( 21 | image: isBig 22 | ? AssetImage("assets/whitelogo.png") 23 | : AssetImage("assets/blacklogo.png"))), 24 | ), 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.6.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.0" 25 | charcode: 26 | dependency: transitive 27 | description: 28 | name: charcode 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.2.0" 32 | clock: 33 | dependency: transitive 34 | description: 35 | name: clock 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.0" 39 | collection: 40 | dependency: transitive 41 | description: 42 | name: collection 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.15.0" 46 | crypto: 47 | dependency: transitive 48 | description: 49 | name: crypto 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "3.0.1" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.4" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.2.0" 67 | ffi: 68 | dependency: transitive 69 | description: 70 | name: ffi 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.1.2" 74 | file: 75 | dependency: transitive 76 | description: 77 | name: file 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "6.1.2" 81 | flutter: 82 | dependency: "direct main" 83 | description: flutter 84 | source: sdk 85 | version: "0.0.0" 86 | flutter_test: 87 | dependency: "direct dev" 88 | description: flutter 89 | source: sdk 90 | version: "0.0.0" 91 | google_fonts: 92 | dependency: "direct main" 93 | description: 94 | name: google_fonts 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "2.2.0" 98 | http: 99 | dependency: transitive 100 | description: 101 | name: http 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.13.3" 105 | http_parser: 106 | dependency: transitive 107 | description: 108 | name: http_parser 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "4.0.0" 112 | matcher: 113 | dependency: transitive 114 | description: 115 | name: matcher 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "0.12.10" 119 | meta: 120 | dependency: transitive 121 | description: 122 | name: meta 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "1.3.0" 126 | path: 127 | dependency: transitive 128 | description: 129 | name: path 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "1.8.0" 133 | path_provider: 134 | dependency: transitive 135 | description: 136 | name: path_provider 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "2.0.4" 140 | path_provider_linux: 141 | dependency: transitive 142 | description: 143 | name: path_provider_linux 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "2.1.4" 147 | path_provider_macos: 148 | dependency: transitive 149 | description: 150 | name: path_provider_macos 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "2.0.4" 154 | path_provider_platform_interface: 155 | dependency: transitive 156 | description: 157 | name: path_provider_platform_interface 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "2.0.1" 161 | path_provider_windows: 162 | dependency: transitive 163 | description: 164 | name: path_provider_windows 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "2.0.4" 168 | pedantic: 169 | dependency: transitive 170 | description: 171 | name: pedantic 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.11.1" 175 | platform: 176 | dependency: transitive 177 | description: 178 | name: platform 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "3.1.0" 182 | plugin_platform_interface: 183 | dependency: transitive 184 | description: 185 | name: plugin_platform_interface 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "2.0.2" 189 | process: 190 | dependency: transitive 191 | description: 192 | name: process 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "4.2.3" 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.1" 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" 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" 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" 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" 236 | test_api: 237 | dependency: transitive 238 | description: 239 | name: test_api 240 | url: "https://pub.dartlang.org" 241 | source: hosted 242 | version: "0.3.0" 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" 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" 257 | win32: 258 | dependency: transitive 259 | description: 260 | name: win32 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "2.2.10" 264 | xdg_directories: 265 | dependency: transitive 266 | description: 267 | name: xdg_directories 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "0.2.0" 271 | sdks: 272 | dart: ">=2.13.0 <3.0.0" 273 | flutter: ">=2.0.0" 274 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: one_demo 2 | description: A new Flutter project. 3 | version: 1.0.0+1 4 | 5 | environment: 6 | sdk: ">=2.12.0 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | 12 | cupertino_icons: ^1.0.2 13 | google_fonts: ^2.2.0 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | 19 | flutter: 20 | 21 | uses-material-design: true 22 | 23 | assets: 24 | - assets/ -------------------------------------------------------------------------------- /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:one_demo/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/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ersanKolay/flutter-shop-theme/1760bdd3b55fa98327b58807a44ac966cbf875c4/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | one_demo 27 | 28 | 29 | 30 | 33 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "one_demo", 3 | "short_name": "one_demo", 4 | "start_url": ".", 5 | "display": "standalone", 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 | --------------------------------------------------------------------------------