├── .gitignore
├── .metadata
├── LICENSE.md
├── README.md
├── android
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── fryo
│ │ │ │ └── MainActivity.java
│ │ └── res
│ │ │ ├── drawable
│ │ │ └── launch_background.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ └── values
│ │ │ └── styles.xml
│ │ └── profile
│ │ └── AndroidManifest.xml
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
└── settings.gradle
├── app-release.apk
├── fonts
├── Fryo.ttf
├── Pacifico.ttf
├── Poppins-Bold.ttf
├── Poppins-Medium.ttf
└── Poppins-Regular.ttf
├── fryo.gif
├── images
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
├── 9.png
└── welcome.png
├── ios
├── Flutter
│ ├── AppFrameworkInfo.plist
│ ├── Debug.xcconfig
│ └── Release.xcconfig
├── Runner.xcodeproj
│ ├── project.pbxproj
│ ├── project.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── xcshareddata
│ │ └── xcschemes
│ │ └── Runner.xcscheme
├── Runner.xcworkspace
│ └── contents.xcworkspacedata
└── Runner
│ ├── AppDelegate.h
│ ├── AppDelegate.m
│ ├── Assets.xcassets
│ ├── AppIcon.appiconset
│ │ ├── Contents.json
│ │ ├── Icon-App-1024x1024@1x.png
│ │ ├── Icon-App-20x20@1x.png
│ │ ├── Icon-App-20x20@2x.png
│ │ ├── Icon-App-20x20@3x.png
│ │ ├── Icon-App-29x29@1x.png
│ │ ├── Icon-App-29x29@2x.png
│ │ ├── Icon-App-29x29@3x.png
│ │ ├── Icon-App-40x40@1x.png
│ │ ├── Icon-App-40x40@2x.png
│ │ ├── Icon-App-40x40@3x.png
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ ├── Icon-App-76x76@1x.png
│ │ ├── Icon-App-76x76@2x.png
│ │ └── Icon-App-83.5x83.5@2x.png
│ └── LaunchImage.imageset
│ │ ├── Contents.json
│ │ ├── LaunchImage.png
│ │ ├── LaunchImage@2x.png
│ │ ├── LaunchImage@3x.png
│ │ └── README.md
│ ├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
│ ├── Info.plist
│ └── main.m
├── lib
├── main.dart
└── src
│ ├── screens
│ ├── Dashboard.dart
│ ├── HomePage.dart
│ ├── ProductPage.dart
│ ├── SignInPage.dart
│ ├── SignUpPage.dart
│ └── samplepage.dart
│ └── shared
│ ├── Product.dart
│ ├── buttons.dart
│ ├── colors.dart
│ ├── fryo_icons.dart
│ ├── inputFields.dart
│ ├── partials.dart
│ └── styles.dart
├── pubspec.lock
├── pubspec.yaml
├── screenshots
├── 1.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
└── 6.png
└── test
└── widget_test.dart
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # Visual Studio Code related
19 | .vscode/
20 |
21 | # Flutter/Dart/Pub related
22 | **/doc/api/
23 | .dart_tool/
24 | .flutter-plugins
25 | .packages
26 | .pub-cache/
27 | .pub/
28 | /build/
29 |
30 | # Android related
31 | **/android/**/gradle-wrapper.jar
32 | **/android/.gradle
33 | **/android/captures/
34 | **/android/gradlew
35 | **/android/gradlew.bat
36 | **/android/local.properties
37 | **/android/**/GeneratedPluginRegistrant.java
38 |
39 | # iOS/XCode related
40 | **/ios/**/*.mode1v3
41 | **/ios/**/*.mode2v3
42 | **/ios/**/*.moved-aside
43 | **/ios/**/*.pbxuser
44 | **/ios/**/*.perspectivev3
45 | **/ios/**/*sync/
46 | **/ios/**/.sconsign.dblite
47 | **/ios/**/.tags*
48 | **/ios/**/.vagrant/
49 | **/ios/**/DerivedData/
50 | **/ios/**/Icon?
51 | **/ios/**/Pods/
52 | **/ios/**/.symlinks/
53 | **/ios/**/profile
54 | **/ios/**/xcuserdata
55 | **/ios/.generated/
56 | **/ios/Flutter/App.framework
57 | **/ios/Flutter/Flutter.framework
58 | **/ios/Flutter/Generated.xcconfig
59 | **/ios/Flutter/app.flx
60 | **/ios/Flutter/app.zip
61 | **/ios/Flutter/flutter_assets/
62 | **/ios/ServiceDefinitions.json
63 | **/ios/Runner/GeneratedPluginRegistrant.*
64 |
65 | # Exceptions to above rules.
66 | !**/ios/**/default.mode1v3
67 | !**/ios/**/default.mode2v3
68 | !**/ios/**/default.pbxuser
69 | !**/ios/**/default.perspectivev3
70 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
71 |
--------------------------------------------------------------------------------
/.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: 5391447fae6209bb21a89e6a5a6583cac1af9b4b
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2010-2019 Victor Aremu.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🍔😋 Fryo - Grocery Shopping App template kit [](http://makeapullrequest.com)
2 |
3 | A Flutter UI template of a Grocery Shopping App I found on Uplabs.
4 |
5 | Design screens are on [Uplabs.](https://www.uplabs.com/posts/grocery-shopping-full-app) It's premium, purchase it if you want to use it commercially.
6 |
7 | > **Disclaimer:** I am not in anyway in affiliate with the designer of the screens. I just love the UI and decided to code it in Flutter😽
8 |
9 |
10 |
11 | Don't forget to star⭐ the repo if you like what you see😉.
12 | # 🎥 Demo
13 | 
14 |
15 | # 📸 Screenshots
16 | The screenshots below are taken on a android emulator.
17 |
18 | | 1 | 2|
19 | |------|-------|
20 | |
|
|
21 |
22 | | 3 | 4|
23 | |------|-------|
24 | |
|
|
25 |
26 |
27 | | 5 | 6|
28 | |------|-------|
29 | |
|
|
30 |
31 |
32 |
33 | # ✨ Requirements
34 | - Any Operating System (ie. MacOS X, Linux, Windows)
35 | - Any IDE with Flutter SDK installed (ie. IntelliJ, Android Studio, VSCode etc)
36 | - A little knowledge of Dart and Flutter
37 | - Some fingers to code 😂
38 |
39 | # ☕️ Donate
40 |
41 |
42 | # Getting Started
43 |
44 | This project is a starting point for a Flutter application.
45 |
46 | A few resources to get you started if this is your first Flutter project:
47 |
48 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab)
49 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook)
50 |
51 | For help getting started with Flutter, view our
52 | [online documentation](https://flutter.io/docs), which offers tutorials,
53 | samples, guidance on mobile development, and a full API reference.
54 |
55 | # LICENSE
56 | [MIT](./LICENSE.md)
57 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 28
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.example.fryo"
37 | minSdkVersion 16
38 | targetSdkVersion 28
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | testImplementation 'junit:junit:4.12'
59 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61 | }
62 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
9 |
13 |
20 |
24 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/example/fryo/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.fryo;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.2.1'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/app-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/app-release.apk
--------------------------------------------------------------------------------
/fonts/Fryo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fonts/Fryo.ttf
--------------------------------------------------------------------------------
/fonts/Pacifico.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fonts/Pacifico.ttf
--------------------------------------------------------------------------------
/fonts/Poppins-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fonts/Poppins-Bold.ttf
--------------------------------------------------------------------------------
/fonts/Poppins-Medium.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fonts/Poppins-Medium.ttf
--------------------------------------------------------------------------------
/fonts/Poppins-Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fonts/Poppins-Regular.ttf
--------------------------------------------------------------------------------
/fryo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/fryo.gif
--------------------------------------------------------------------------------
/images/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/1.png
--------------------------------------------------------------------------------
/images/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/2.png
--------------------------------------------------------------------------------
/images/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/3.png
--------------------------------------------------------------------------------
/images/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/4.png
--------------------------------------------------------------------------------
/images/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/5.png
--------------------------------------------------------------------------------
/images/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/6.png
--------------------------------------------------------------------------------
/images/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/7.png
--------------------------------------------------------------------------------
/images/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/8.png
--------------------------------------------------------------------------------
/images/9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/9.png
--------------------------------------------------------------------------------
/images/welcome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/images/welcome.png
--------------------------------------------------------------------------------
/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 "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
13 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
14 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
15 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
16 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
17 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
18 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
19 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
20 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
21 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
22 | /* End PBXBuildFile section */
23 |
24 | /* Begin PBXCopyFilesBuildPhase section */
25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
26 | isa = PBXCopyFilesBuildPhase;
27 | buildActionMask = 2147483647;
28 | dstPath = "";
29 | dstSubfolderSpec = 10;
30 | files = (
31 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
33 | );
34 | name = "Embed Frameworks";
35 | runOnlyForDeploymentPostprocessing = 0;
36 | };
37 | /* End PBXCopyFilesBuildPhase section */
38 |
39 | /* Begin PBXFileReference section */
40 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
41 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
42 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
43 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
44 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
45 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
46 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
47 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
48 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
49 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
50 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
51 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
52 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
54 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
55 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
56 | /* End PBXFileReference section */
57 |
58 | /* Begin PBXFrameworksBuildPhase section */
59 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
60 | isa = PBXFrameworksBuildPhase;
61 | buildActionMask = 2147483647;
62 | files = (
63 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
64 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
65 | );
66 | runOnlyForDeploymentPostprocessing = 0;
67 | };
68 | /* End PBXFrameworksBuildPhase section */
69 |
70 | /* Begin PBXGroup section */
71 | 9740EEB11CF90186004384FC /* Flutter */ = {
72 | isa = PBXGroup;
73 | children = (
74 | 3B80C3931E831B6300D905FE /* App.framework */,
75 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
76 | 9740EEBA1CF902C7004384FC /* Flutter.framework */,
77 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
79 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
80 | );
81 | name = Flutter;
82 | sourceTree = "";
83 | };
84 | 97C146E51CF9000F007C117D = {
85 | isa = PBXGroup;
86 | children = (
87 | 9740EEB11CF90186004384FC /* Flutter */,
88 | 97C146F01CF9000F007C117D /* Runner */,
89 | 97C146EF1CF9000F007C117D /* Products */,
90 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
91 | );
92 | sourceTree = "";
93 | };
94 | 97C146EF1CF9000F007C117D /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 97C146EE1CF9000F007C117D /* Runner.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 97C146F01CF9000F007C117D /* Runner */ = {
103 | isa = PBXGroup;
104 | children = (
105 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
106 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
107 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
108 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
109 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
110 | 97C147021CF9000F007C117D /* Info.plist */,
111 | 97C146F11CF9000F007C117D /* Supporting Files */,
112 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
113 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
114 | );
115 | path = Runner;
116 | sourceTree = "";
117 | };
118 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
119 | isa = PBXGroup;
120 | children = (
121 | 97C146F21CF9000F007C117D /* main.m */,
122 | );
123 | name = "Supporting Files";
124 | sourceTree = "";
125 | };
126 | /* End PBXGroup section */
127 |
128 | /* Begin PBXNativeTarget section */
129 | 97C146ED1CF9000F007C117D /* Runner */ = {
130 | isa = PBXNativeTarget;
131 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
132 | buildPhases = (
133 | 9740EEB61CF901F6004384FC /* Run Script */,
134 | 97C146EA1CF9000F007C117D /* Sources */,
135 | 97C146EB1CF9000F007C117D /* Frameworks */,
136 | 97C146EC1CF9000F007C117D /* Resources */,
137 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
138 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
139 | );
140 | buildRules = (
141 | );
142 | dependencies = (
143 | );
144 | name = Runner;
145 | productName = Runner;
146 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
147 | productType = "com.apple.product-type.application";
148 | };
149 | /* End PBXNativeTarget section */
150 |
151 | /* Begin PBXProject section */
152 | 97C146E61CF9000F007C117D /* Project object */ = {
153 | isa = PBXProject;
154 | attributes = {
155 | LastUpgradeCheck = 0910;
156 | ORGANIZATIONNAME = "The Chromium Authors";
157 | TargetAttributes = {
158 | 97C146ED1CF9000F007C117D = {
159 | CreatedOnToolsVersion = 7.3.1;
160 | };
161 | };
162 | };
163 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
164 | compatibilityVersion = "Xcode 3.2";
165 | developmentRegion = English;
166 | hasScannedForEncodings = 0;
167 | knownRegions = (
168 | en,
169 | Base,
170 | );
171 | mainGroup = 97C146E51CF9000F007C117D;
172 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
173 | projectDirPath = "";
174 | projectRoot = "";
175 | targets = (
176 | 97C146ED1CF9000F007C117D /* Runner */,
177 | );
178 | };
179 | /* End PBXProject section */
180 |
181 | /* Begin PBXResourcesBuildPhase section */
182 | 97C146EC1CF9000F007C117D /* Resources */ = {
183 | isa = PBXResourcesBuildPhase;
184 | buildActionMask = 2147483647;
185 | files = (
186 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
187 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
188 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
189 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
190 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
191 | );
192 | runOnlyForDeploymentPostprocessing = 0;
193 | };
194 | /* End PBXResourcesBuildPhase section */
195 |
196 | /* Begin PBXShellScriptBuildPhase section */
197 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
198 | isa = PBXShellScriptBuildPhase;
199 | buildActionMask = 2147483647;
200 | files = (
201 | );
202 | inputPaths = (
203 | );
204 | name = "Thin Binary";
205 | outputPaths = (
206 | );
207 | runOnlyForDeploymentPostprocessing = 0;
208 | shellPath = /bin/sh;
209 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
210 | };
211 | 9740EEB61CF901F6004384FC /* Run Script */ = {
212 | isa = PBXShellScriptBuildPhase;
213 | buildActionMask = 2147483647;
214 | files = (
215 | );
216 | inputPaths = (
217 | );
218 | name = "Run Script";
219 | outputPaths = (
220 | );
221 | runOnlyForDeploymentPostprocessing = 0;
222 | shellPath = /bin/sh;
223 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
224 | };
225 | /* End PBXShellScriptBuildPhase section */
226 |
227 | /* Begin PBXSourcesBuildPhase section */
228 | 97C146EA1CF9000F007C117D /* Sources */ = {
229 | isa = PBXSourcesBuildPhase;
230 | buildActionMask = 2147483647;
231 | files = (
232 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
233 | 97C146F31CF9000F007C117D /* main.m in Sources */,
234 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | };
238 | /* End PBXSourcesBuildPhase section */
239 |
240 | /* Begin PBXVariantGroup section */
241 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
242 | isa = PBXVariantGroup;
243 | children = (
244 | 97C146FB1CF9000F007C117D /* Base */,
245 | );
246 | name = Main.storyboard;
247 | sourceTree = "";
248 | };
249 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
250 | isa = PBXVariantGroup;
251 | children = (
252 | 97C147001CF9000F007C117D /* Base */,
253 | );
254 | name = LaunchScreen.storyboard;
255 | sourceTree = "";
256 | };
257 | /* End PBXVariantGroup section */
258 |
259 | /* Begin XCBuildConfiguration section */
260 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
261 | isa = XCBuildConfiguration;
262 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
263 | buildSettings = {
264 | ALWAYS_SEARCH_USER_PATHS = NO;
265 | CLANG_ANALYZER_NONNULL = YES;
266 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
267 | CLANG_CXX_LIBRARY = "libc++";
268 | CLANG_ENABLE_MODULES = YES;
269 | CLANG_ENABLE_OBJC_ARC = YES;
270 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
271 | CLANG_WARN_BOOL_CONVERSION = YES;
272 | CLANG_WARN_COMMA = YES;
273 | CLANG_WARN_CONSTANT_CONVERSION = YES;
274 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
275 | CLANG_WARN_EMPTY_BODY = YES;
276 | CLANG_WARN_ENUM_CONVERSION = YES;
277 | CLANG_WARN_INFINITE_RECURSION = YES;
278 | CLANG_WARN_INT_CONVERSION = YES;
279 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
280 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
281 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
282 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
283 | CLANG_WARN_STRICT_PROTOTYPES = YES;
284 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
285 | CLANG_WARN_UNREACHABLE_CODE = YES;
286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
288 | COPY_PHASE_STRIP = NO;
289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
290 | ENABLE_NS_ASSERTIONS = NO;
291 | ENABLE_STRICT_OBJC_MSGSEND = YES;
292 | GCC_C_LANGUAGE_STANDARD = gnu99;
293 | GCC_NO_COMMON_BLOCKS = YES;
294 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
295 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
296 | GCC_WARN_UNDECLARED_SELECTOR = YES;
297 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
298 | GCC_WARN_UNUSED_FUNCTION = YES;
299 | GCC_WARN_UNUSED_VARIABLE = YES;
300 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
301 | MTL_ENABLE_DEBUG_INFO = NO;
302 | SDKROOT = iphoneos;
303 | TARGETED_DEVICE_FAMILY = "1,2";
304 | VALIDATE_PRODUCT = YES;
305 | };
306 | name = Profile;
307 | };
308 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
309 | isa = XCBuildConfiguration;
310 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
311 | buildSettings = {
312 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
313 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
314 | DEVELOPMENT_TEAM = S8QB4VV633;
315 | ENABLE_BITCODE = NO;
316 | FRAMEWORK_SEARCH_PATHS = (
317 | "$(inherited)",
318 | "$(PROJECT_DIR)/Flutter",
319 | );
320 | INFOPLIST_FILE = Runner/Info.plist;
321 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
322 | LIBRARY_SEARCH_PATHS = (
323 | "$(inherited)",
324 | "$(PROJECT_DIR)/Flutter",
325 | );
326 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fryo;
327 | PRODUCT_NAME = "$(TARGET_NAME)";
328 | VERSIONING_SYSTEM = "apple-generic";
329 | };
330 | name = Profile;
331 | };
332 | 97C147031CF9000F007C117D /* Debug */ = {
333 | isa = XCBuildConfiguration;
334 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
335 | buildSettings = {
336 | ALWAYS_SEARCH_USER_PATHS = NO;
337 | CLANG_ANALYZER_NONNULL = YES;
338 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
339 | CLANG_CXX_LIBRARY = "libc++";
340 | CLANG_ENABLE_MODULES = YES;
341 | CLANG_ENABLE_OBJC_ARC = YES;
342 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
343 | CLANG_WARN_BOOL_CONVERSION = YES;
344 | CLANG_WARN_COMMA = YES;
345 | CLANG_WARN_CONSTANT_CONVERSION = YES;
346 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
347 | CLANG_WARN_EMPTY_BODY = YES;
348 | CLANG_WARN_ENUM_CONVERSION = YES;
349 | CLANG_WARN_INFINITE_RECURSION = YES;
350 | CLANG_WARN_INT_CONVERSION = YES;
351 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
352 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
353 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
354 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
355 | CLANG_WARN_STRICT_PROTOTYPES = YES;
356 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
357 | CLANG_WARN_UNREACHABLE_CODE = YES;
358 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
359 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
360 | COPY_PHASE_STRIP = NO;
361 | DEBUG_INFORMATION_FORMAT = dwarf;
362 | ENABLE_STRICT_OBJC_MSGSEND = YES;
363 | ENABLE_TESTABILITY = YES;
364 | GCC_C_LANGUAGE_STANDARD = gnu99;
365 | GCC_DYNAMIC_NO_PIC = NO;
366 | GCC_NO_COMMON_BLOCKS = YES;
367 | GCC_OPTIMIZATION_LEVEL = 0;
368 | GCC_PREPROCESSOR_DEFINITIONS = (
369 | "DEBUG=1",
370 | "$(inherited)",
371 | );
372 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
373 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
374 | GCC_WARN_UNDECLARED_SELECTOR = YES;
375 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
376 | GCC_WARN_UNUSED_FUNCTION = YES;
377 | GCC_WARN_UNUSED_VARIABLE = YES;
378 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
379 | MTL_ENABLE_DEBUG_INFO = YES;
380 | ONLY_ACTIVE_ARCH = YES;
381 | SDKROOT = iphoneos;
382 | TARGETED_DEVICE_FAMILY = "1,2";
383 | };
384 | name = Debug;
385 | };
386 | 97C147041CF9000F007C117D /* Release */ = {
387 | isa = XCBuildConfiguration;
388 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
389 | buildSettings = {
390 | ALWAYS_SEARCH_USER_PATHS = NO;
391 | CLANG_ANALYZER_NONNULL = YES;
392 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
393 | CLANG_CXX_LIBRARY = "libc++";
394 | CLANG_ENABLE_MODULES = YES;
395 | CLANG_ENABLE_OBJC_ARC = YES;
396 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
397 | CLANG_WARN_BOOL_CONVERSION = YES;
398 | CLANG_WARN_COMMA = YES;
399 | CLANG_WARN_CONSTANT_CONVERSION = YES;
400 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
401 | CLANG_WARN_EMPTY_BODY = YES;
402 | CLANG_WARN_ENUM_CONVERSION = YES;
403 | CLANG_WARN_INFINITE_RECURSION = YES;
404 | CLANG_WARN_INT_CONVERSION = YES;
405 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
406 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
407 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
408 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
409 | CLANG_WARN_STRICT_PROTOTYPES = YES;
410 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
411 | CLANG_WARN_UNREACHABLE_CODE = YES;
412 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
413 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
414 | COPY_PHASE_STRIP = NO;
415 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
416 | ENABLE_NS_ASSERTIONS = NO;
417 | ENABLE_STRICT_OBJC_MSGSEND = YES;
418 | GCC_C_LANGUAGE_STANDARD = gnu99;
419 | GCC_NO_COMMON_BLOCKS = YES;
420 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
421 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
422 | GCC_WARN_UNDECLARED_SELECTOR = YES;
423 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
424 | GCC_WARN_UNUSED_FUNCTION = YES;
425 | GCC_WARN_UNUSED_VARIABLE = YES;
426 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
427 | MTL_ENABLE_DEBUG_INFO = NO;
428 | SDKROOT = iphoneos;
429 | TARGETED_DEVICE_FAMILY = "1,2";
430 | VALIDATE_PRODUCT = YES;
431 | };
432 | name = Release;
433 | };
434 | 97C147061CF9000F007C117D /* Debug */ = {
435 | isa = XCBuildConfiguration;
436 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
437 | buildSettings = {
438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
439 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
440 | ENABLE_BITCODE = NO;
441 | FRAMEWORK_SEARCH_PATHS = (
442 | "$(inherited)",
443 | "$(PROJECT_DIR)/Flutter",
444 | );
445 | INFOPLIST_FILE = Runner/Info.plist;
446 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
447 | LIBRARY_SEARCH_PATHS = (
448 | "$(inherited)",
449 | "$(PROJECT_DIR)/Flutter",
450 | );
451 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fryo;
452 | PRODUCT_NAME = "$(TARGET_NAME)";
453 | VERSIONING_SYSTEM = "apple-generic";
454 | };
455 | name = Debug;
456 | };
457 | 97C147071CF9000F007C117D /* Release */ = {
458 | isa = XCBuildConfiguration;
459 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
460 | buildSettings = {
461 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
462 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
463 | ENABLE_BITCODE = NO;
464 | FRAMEWORK_SEARCH_PATHS = (
465 | "$(inherited)",
466 | "$(PROJECT_DIR)/Flutter",
467 | );
468 | INFOPLIST_FILE = Runner/Info.plist;
469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
470 | LIBRARY_SEARCH_PATHS = (
471 | "$(inherited)",
472 | "$(PROJECT_DIR)/Flutter",
473 | );
474 | PRODUCT_BUNDLE_IDENTIFIER = com.example.fryo;
475 | PRODUCT_NAME = "$(TARGET_NAME)";
476 | VERSIONING_SYSTEM = "apple-generic";
477 | };
478 | name = Release;
479 | };
480 | /* End XCBuildConfiguration section */
481 |
482 | /* Begin XCConfigurationList section */
483 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
484 | isa = XCConfigurationList;
485 | buildConfigurations = (
486 | 97C147031CF9000F007C117D /* Debug */,
487 | 97C147041CF9000F007C117D /* Release */,
488 | 249021D3217E4FDB00AE95B9 /* Profile */,
489 | );
490 | defaultConfigurationIsVisible = 0;
491 | defaultConfigurationName = Release;
492 | };
493 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
494 | isa = XCConfigurationList;
495 | buildConfigurations = (
496 | 97C147061CF9000F007C117D /* Debug */,
497 | 97C147071CF9000F007C117D /* Release */,
498 | 249021D4217E4FDB00AE95B9 /* Profile */,
499 | );
500 | defaultConfigurationIsVisible = 0;
501 | defaultConfigurationName = Release;
502 | };
503 | /* End XCConfigurationList section */
504 | };
505 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
506 | }
507 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
75 |
77 |
83 |
84 |
85 |
86 |
88 |
89 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/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 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | fryo
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './src/screens/SignInPage.dart';
3 | import './src/screens/SignUpPage.dart';
4 | import './src/screens/HomePage.dart';
5 | import './src/screens/Dashboard.dart';
6 | import './src/screens/ProductPage.dart';
7 |
8 |
9 |
10 | void main() => runApp(MyApp());
11 |
12 | class MyApp extends StatelessWidget {
13 | // This widget is the root of your application.
14 | @override
15 | Widget build(BuildContext context) {
16 | return MaterialApp(
17 | title: 'Fryo',
18 | theme: ThemeData(
19 | primarySwatch: Colors.green,
20 | ),
21 | home: HomePage(pageTitle: 'Welcome'),
22 | routes: {
23 | '/signup': (BuildContext context) => SignUpPage(),
24 | '/signin': (BuildContext context) => SignInPage(),
25 | '/dashboard': (BuildContext context) => Dashboard(),
26 | '/productPage': (BuildContext context) => ProductPage(),
27 | },
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/lib/src/screens/Dashboard.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/styles.dart';
3 | import '../shared/colors.dart';
4 | import '../shared/fryo_icons.dart';
5 | import './ProductPage.dart';
6 | import '../shared/Product.dart';
7 | import '../shared/partials.dart';
8 |
9 | class Dashboard extends StatefulWidget {
10 | final String pageTitle;
11 |
12 | Dashboard({Key key, this.pageTitle}) : super(key: key);
13 |
14 | @override
15 | _DashboardState createState() => _DashboardState();
16 | }
17 |
18 | class _DashboardState extends State {
19 | int _selectedIndex = 0;
20 |
21 | @override
22 | Widget build(BuildContext context) {
23 | final _tabs = [
24 | storeTab(context),
25 | Text('Tab2'),
26 | Text('Tab3'),
27 | Text('Tab4'),
28 | Text('Tab5'),
29 | ];
30 |
31 | return Scaffold(
32 | backgroundColor: bgColor,
33 | appBar: AppBar(
34 | centerTitle: true,
35 | elevation: 0,
36 | leading: IconButton(
37 | onPressed: () {},
38 | iconSize: 21,
39 | icon: Icon(Fryo.funnel),
40 | ),
41 | backgroundColor: primaryColor,
42 | title:
43 | Text('Fryo', style: logoWhiteStyle, textAlign: TextAlign.center),
44 | actions: [
45 | IconButton(
46 | padding: EdgeInsets.all(0),
47 | onPressed: () {},
48 | iconSize: 21,
49 | icon: Icon(Fryo.magnifier),
50 | ),
51 | IconButton(
52 | padding: EdgeInsets.all(0),
53 | onPressed: () {},
54 | iconSize: 21,
55 | icon: Icon(Fryo.alarm),
56 | )
57 | ],
58 | ),
59 | body: _tabs[_selectedIndex],
60 | bottomNavigationBar: BottomNavigationBar(
61 | items: [
62 | BottomNavigationBarItem(
63 | icon: Icon(Fryo.shop),
64 | title: Text(
65 | 'Store',
66 | style: tabLinkStyle,
67 | )),
68 | BottomNavigationBarItem(
69 | icon: Icon(Fryo.cart),
70 | title: Text(
71 | 'My Cart',
72 | style: tabLinkStyle,
73 | )),
74 | BottomNavigationBarItem(
75 | icon: Icon(Fryo.heart_1),
76 | title: Text(
77 | 'Favourites',
78 | style: tabLinkStyle,
79 | )),
80 | BottomNavigationBarItem(
81 | icon: Icon(Fryo.user_1),
82 | title: Text(
83 | 'Profile',
84 | style: tabLinkStyle,
85 | )),
86 | BottomNavigationBarItem(
87 | icon: Icon(Fryo.cog_1),
88 | title: Text(
89 | 'Settings',
90 | style: tabLinkStyle,
91 | ))
92 | ],
93 | currentIndex: _selectedIndex,
94 | type: BottomNavigationBarType.fixed,
95 | fixedColor: Colors.green[600],
96 | onTap: _onItemTapped,
97 | ));
98 | }
99 |
100 | void _onItemTapped(int index) {
101 | setState(() {
102 | _selectedIndex = index;
103 | });
104 | }
105 | }
106 |
107 | Widget storeTab(BuildContext context) {
108 |
109 | // will pick it up from here
110 | // am to start another template
111 | List foods = [
112 | Product(
113 | name: "Hamburger",
114 | image: "images/3.png",
115 | price: "\$25.00",
116 | userLiked: true,
117 | discount: 10),
118 | Product(
119 | name: "Pasta",
120 | image: "images/5.png",
121 | price: "\$150.00",
122 | userLiked: false,
123 | discount: 7.8),
124 | Product(
125 | name: "Akara",
126 | image: 'images/2.png',
127 | price: '\$10.99',
128 | userLiked: false,
129 | ),
130 | Product(
131 | name: "Strawberry",
132 | image: "images/1.png",
133 | price: '\$50.00',
134 | userLiked: true,
135 | discount: 14)
136 | ];
137 |
138 | List drinks = [
139 | Product(
140 | name: "Coca-Cola",
141 | image: "images/6.png",
142 | price: "\$45.12",
143 | userLiked: true,
144 | discount: 2),
145 | Product(
146 | name: "Lemonade",
147 | image: "images/7.png",
148 | price: "\$28.00",
149 | userLiked: false,
150 | discount: 5.2),
151 | Product(
152 | name: "Vodka",
153 | image: "images/8.png",
154 | price: "\$78.99",
155 | userLiked: false),
156 | Product(
157 | name: "Tequila",
158 | image: "images/9.png",
159 | price: "\$168.99",
160 | userLiked: true,
161 | discount: 3.4)
162 | ];
163 |
164 | return ListView(children: [
165 | headerTopCategories(),
166 | deals('Hot Deals', onViewMore: () {}, items: [
167 | foodItem(foods[0], onTapped: () {
168 | Navigator.push(
169 | context,
170 | MaterialPageRoute(
171 | builder: (context) {
172 | return new ProductPage(
173 | productData: foods[0],
174 | );
175 | },
176 | ),
177 | );
178 | }, onLike: () {}),
179 | foodItem(foods[1], onTapped: () {
180 | Navigator.push(
181 | context,
182 | MaterialPageRoute(
183 | builder: (context) {
184 | return new ProductPage(
185 | productData: foods[1],
186 | );
187 | },
188 | ),
189 | );
190 | }, imgWidth: 250, onLike: () {
191 |
192 | }),
193 | foodItem(foods[2], onTapped: () {
194 | Navigator.push(
195 | context,
196 | MaterialPageRoute(
197 | builder: (context) {
198 | return new ProductPage(
199 | productData: foods[2],
200 | );
201 | },
202 | ),
203 | );
204 | }, imgWidth: 200, onLike: () {
205 |
206 | }),
207 | foodItem(foods[3], onTapped: () {
208 | Navigator.push(
209 | context,
210 | MaterialPageRoute(
211 | builder: (context) {
212 | return new ProductPage(
213 | productData: foods[3],
214 | );
215 | },
216 | ),
217 | );
218 | }, onLike: () {
219 |
220 | }),
221 | ]),
222 | deals('Drinks Parol', onViewMore: () {}, items: [
223 | foodItem(drinks[0], onTapped: () {
224 | Navigator.push(
225 | context,
226 | MaterialPageRoute(
227 | builder: (context) {
228 | return new ProductPage(
229 | productData: drinks[0],
230 | );
231 | },
232 | ),
233 | );
234 | }, onLike: () {}, imgWidth: 60),
235 | foodItem(drinks[1], onTapped: () {
236 | Navigator.push(
237 | context,
238 | MaterialPageRoute(
239 | builder: (context) {
240 | return new ProductPage(
241 | productData: drinks[1],
242 | );
243 | },
244 | ),
245 | );
246 | }, onLike: () {}, imgWidth: 75),
247 | foodItem(drinks[2], onTapped: () {
248 | Navigator.push(
249 | context,
250 | MaterialPageRoute(
251 | builder: (context) {
252 | return new ProductPage(
253 | productData: drinks[2],
254 | );
255 | },
256 | ),
257 | );
258 | }, imgWidth: 110, onLike: () {}),
259 | foodItem(drinks[3], onTapped: () {
260 | Navigator.push(
261 | context,
262 | MaterialPageRoute(
263 | builder: (context) {
264 | return new ProductPage(
265 | productData: drinks[3],
266 | );
267 | },
268 | ),
269 | );
270 | }, onLike: () {}),
271 | ])
272 | ]);
273 | }
274 |
275 | Widget sectionHeader(String headerTitle, {onViewMore}) {
276 | return Row(
277 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
278 | crossAxisAlignment: CrossAxisAlignment.start,
279 | children: [
280 | Container(
281 | margin: EdgeInsets.only(left: 15, top: 10),
282 | child: Text(headerTitle, style: h4),
283 | ),
284 | Container(
285 | margin: EdgeInsets.only(left: 15, top: 2),
286 | child: FlatButton(
287 | onPressed: onViewMore,
288 | child: Text('View all ›', style: contrastText),
289 | ),
290 | )
291 | ],
292 | );
293 | }
294 |
295 | // wrap the horizontal listview inside a sizedBox..
296 | Widget headerTopCategories() {
297 | return Column(
298 | mainAxisAlignment: MainAxisAlignment.center,
299 | crossAxisAlignment: CrossAxisAlignment.center,
300 | children: [
301 | sectionHeader('All Categories', onViewMore: () {}),
302 | SizedBox(
303 | height: 130,
304 | child: ListView(
305 | scrollDirection: Axis.horizontal,
306 | shrinkWrap: true,
307 | children: [
308 | headerCategoryItem('Frieds', Fryo.dinner, onPressed: () {}),
309 | headerCategoryItem('Fast Food', Fryo.food, onPressed: () {}),
310 | headerCategoryItem('Creamery', Fryo.poop, onPressed: () {}),
311 | headerCategoryItem('Hot Drinks', Fryo.coffee_cup, onPressed: () {}),
312 | headerCategoryItem('Vegetables', Fryo.leaf, onPressed: () {}),
313 | ],
314 | ),
315 | )
316 | ],
317 | );
318 | }
319 |
320 | Widget headerCategoryItem(String name, IconData icon, {onPressed}) {
321 | return Container(
322 | margin: EdgeInsets.only(left: 15),
323 | child: Column(
324 | mainAxisAlignment: MainAxisAlignment.start,
325 | crossAxisAlignment: CrossAxisAlignment.center,
326 | children: [
327 | Container(
328 | margin: EdgeInsets.only(bottom: 10),
329 | width: 86,
330 | height: 86,
331 | child: FloatingActionButton(
332 | shape: CircleBorder(),
333 | heroTag: name,
334 | onPressed: onPressed,
335 | backgroundColor: white,
336 | child: Icon(icon, size: 35, color: Colors.black87),
337 | )),
338 | Text(name + ' ›', style: categoryText)
339 | ],
340 | ),
341 | );
342 | }
343 |
344 | Widget deals(String dealTitle, {onViewMore, List items}) {
345 | return Container(
346 | margin: EdgeInsets.only(top: 5),
347 | child: Column(
348 | mainAxisAlignment: MainAxisAlignment.center,
349 | crossAxisAlignment: CrossAxisAlignment.center,
350 | children: [
351 | sectionHeader(dealTitle, onViewMore: onViewMore),
352 | SizedBox(
353 | height: 250,
354 | child: ListView(
355 | scrollDirection: Axis.horizontal,
356 | children: (items != null)
357 | ? items
358 | : [
359 | Container(
360 | margin: EdgeInsets.only(left: 15),
361 | child: Text('No items available at this moment.',
362 | style: taglineText),
363 | )
364 | ],
365 | ),
366 | )
367 | ],
368 | ),
369 | );
370 | }
371 |
--------------------------------------------------------------------------------
/lib/src/screens/HomePage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/styles.dart';
3 | import '../shared/colors.dart';
4 | import '../shared/buttons.dart';
5 |
6 | import 'package:page_transition/page_transition.dart';
7 | import './SignUpPage.dart';
8 | import './SignInPage.dart';
9 |
10 | class HomePage extends StatefulWidget {
11 | final String pageTitle;
12 |
13 | HomePage({Key key, this.pageTitle}) : super(key: key);
14 |
15 | @override
16 | _HomePageState createState() => _HomePageState();
17 | }
18 |
19 | class _HomePageState extends State {
20 | @override
21 | Widget build(BuildContext context) {
22 | return Scaffold(
23 | body: Center(
24 | child: Column(
25 | mainAxisAlignment: MainAxisAlignment.center,
26 | crossAxisAlignment: CrossAxisAlignment.center,
27 | children: [
28 | Image.asset('images/welcome.png', width: 190, height: 190),
29 | Container(
30 | margin: EdgeInsets.only(bottom: 10, top: 0),
31 | child: Text('Fryo!', style: logoStyle),
32 | ),
33 | Container(
34 | width: 200,
35 | margin: EdgeInsets.only(bottom: 0),
36 | child: froyoFlatBtn('Sign In', (){
37 |
38 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rotate, duration: Duration(seconds: 1), child: SignInPage()));
39 | }),
40 | ),
41 | Container(
42 | width: 200,
43 | padding: EdgeInsets.all(0),
44 | child: froyoOutlineBtn('Sign Up', (){
45 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rotate, duration: Duration(seconds: 1), child: SignUpPage()));
46 | // Navigator.of(context).pushReplacementNamed('/signup');
47 | }),
48 | ),
49 | Container(
50 | margin: EdgeInsets.only(top: 25),
51 | child: Row(
52 | mainAxisAlignment: MainAxisAlignment.center,
53 | crossAxisAlignment: CrossAxisAlignment.center,
54 |
55 | children: [
56 | Text('Langauage:', style: TextStyle(color: darkText)),
57 | Container(
58 | margin: EdgeInsets.only(left: 6),
59 | child: Text('English ›', style: TextStyle(color: Colors.black, fontWeight: FontWeight.w500)),
60 | )
61 | ],
62 | ),
63 | )
64 | ],
65 | )),
66 | backgroundColor: bgColor,
67 | );
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/lib/src/screens/ProductPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/Product.dart';
3 | import '../shared/styles.dart';
4 | import '../shared/colors.dart';
5 | import '../shared/partials.dart';
6 | import '../shared/buttons.dart';
7 | import 'package:smooth_star_rating/smooth_star_rating.dart';
8 |
9 | class ProductPage extends StatefulWidget {
10 | final String pageTitle;
11 | final Product productData;
12 |
13 | ProductPage({Key key, this.pageTitle, this.productData}) : super(key: key);
14 |
15 | @override
16 | _ProductPageState createState() => _ProductPageState();
17 | }
18 |
19 | class _ProductPageState extends State {
20 | double _rating = 4;
21 | int _quantity = 1;
22 | @override
23 | Widget build(BuildContext context) {
24 | return Scaffold(
25 | backgroundColor: bgColor,
26 | appBar: AppBar(
27 | elevation: 0,
28 | backgroundColor: bgColor,
29 | centerTitle: true,
30 | leading: BackButton(
31 | color: darkText,
32 | ),
33 | title: Text(widget.productData.name, style: h4),
34 | ),
35 | body: ListView(
36 | children: [
37 | Container(
38 | margin: EdgeInsets.only(top: 20),
39 | child: Center(
40 | child: Stack(
41 | children: [
42 | Align(
43 | alignment: Alignment.center,
44 | child: Container(
45 | margin: EdgeInsets.only(top: 100, bottom: 100),
46 | padding: EdgeInsets.only(top: 100, bottom: 50),
47 | width: MediaQuery.of(context).size.width * 0.85,
48 | child: Column(
49 | mainAxisAlignment: MainAxisAlignment.start,
50 | crossAxisAlignment: CrossAxisAlignment.center,
51 | children: [
52 | Text(widget.productData.name, style: h5),
53 | Text(widget.productData.price, style: h3),
54 | Container(
55 | margin: EdgeInsets.only(top: 5, bottom: 20),
56 | child: SmoothStarRating(
57 | allowHalfRating: false,
58 | onRatingChanged: (v) {
59 | setState(() {
60 | _rating = v;
61 | });
62 | },
63 | starCount: 5,
64 | rating: _rating,
65 | size: 27.0,
66 | color: Colors.orange,
67 | borderColor: Colors.orange,
68 | ),
69 | ),
70 | Container(
71 | margin: EdgeInsets.only(top: 10, bottom: 25),
72 | child: Column(
73 | children: [
74 | Container(
75 | child: Text('Quantity', style: h6),
76 | margin: EdgeInsets.only(bottom: 15),
77 | ),
78 | Row(
79 | mainAxisAlignment: MainAxisAlignment.center,
80 | crossAxisAlignment: CrossAxisAlignment.center,
81 | children: [
82 | Container(
83 | width: 55,
84 | height: 55,
85 | child: OutlineButton(
86 | onPressed: () {
87 | setState(() {
88 | _quantity += 1;
89 | });
90 | },
91 | child: Icon(Icons.add),
92 | ),
93 | ),
94 | Container(
95 | margin:
96 | EdgeInsets.only(left: 20, right: 20),
97 | child: Text(_quantity.toString(), style: h3),
98 | ),
99 | Container(
100 | width: 55,
101 | height: 55,
102 | child: OutlineButton(
103 | onPressed: () {
104 | setState(() {
105 | if(_quantity == 1) return;
106 | _quantity -= 1;
107 | });
108 | },
109 | child: Icon(Icons.remove),
110 | ),
111 | )
112 | ],
113 | )
114 | ],
115 | ),
116 | ),
117 | Container(
118 | width: 180,
119 | child: froyoOutlineBtn('Buy Now', () {}),
120 | ),
121 | Container(
122 | width: 180,
123 | child: froyoFlatBtn('Add to Cart', () {}),
124 | )
125 | ],
126 | ),
127 | decoration: BoxDecoration(
128 | color: white,
129 | borderRadius: BorderRadius.circular(10),
130 | boxShadow: [
131 | BoxShadow(
132 | blurRadius: 15,
133 | spreadRadius: 5,
134 | color: Color.fromRGBO(0, 0, 0, .05))
135 | ]),
136 | ),
137 | ),
138 | Align(
139 | alignment: Alignment.center,
140 | child: SizedBox(
141 | width: 200,
142 | height: 160,
143 | child: foodItem(widget.productData,
144 | isProductPage: true,
145 | onTapped: () {},
146 | imgWidth: 250,
147 | onLike: () {}),
148 | ),
149 | )
150 | ],
151 | ),
152 | ),
153 | )
154 | ],
155 | ));
156 | }
157 | }
158 |
--------------------------------------------------------------------------------
/lib/src/screens/SignInPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/styles.dart';
3 | import '../shared/colors.dart';
4 | import '../shared/inputFields.dart';
5 | import 'package:page_transition/page_transition.dart';
6 | import './SignUpPage.dart';
7 | import './Dashboard.dart';
8 |
9 | class SignInPage extends StatefulWidget {
10 | final String pageTitle;
11 |
12 | SignInPage({Key key, this.pageTitle}) : super(key: key);
13 |
14 | @override
15 | _SignInPageState createState() => _SignInPageState();
16 | }
17 |
18 | class _SignInPageState extends State {
19 | @override
20 | Widget build(BuildContext context) {
21 | return Scaffold(
22 | appBar: AppBar(
23 | elevation: 0,
24 | backgroundColor: white,
25 | title: Text('Sign In',
26 | style: TextStyle(
27 | color: Colors.grey, fontFamily: 'Poppins', fontSize: 15)),
28 | actions: [
29 | FlatButton(
30 | onPressed: () {
31 | // Navigator.of(context).pushReplacementNamed('/signup');
32 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rightToLeft, child: SignUpPage()));
33 |
34 | },
35 | child: Text('Sign Up', style: contrastText),
36 | )
37 | ],
38 | ),
39 | body: ListView(
40 | shrinkWrap: true,
41 | children: [
42 | Container(
43 | padding: EdgeInsets.only(left: 18, right: 18),
44 | child: Stack(
45 | children: [
46 | Column(
47 | mainAxisAlignment: MainAxisAlignment.start,
48 | crossAxisAlignment: CrossAxisAlignment.start,
49 | children: [
50 | Text('Welcome Back!', style: h3),
51 | Text('Howdy, let\'s authenticate', style: taglineText),
52 | fryoTextInput('Username'),
53 | fryoPasswordInput('Password'),
54 | FlatButton(
55 | onPressed: () {},
56 | child: Text('Forgot Password?', style: contrastTextBold),
57 | )
58 | ],
59 | ),
60 | Positioned(
61 | bottom: 15,
62 | right: -15,
63 | child: FlatButton(
64 | onPressed: () {
65 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rightToLeft, child: Dashboard()));
66 | },
67 | color: primaryColor,
68 | padding: EdgeInsets.all(13),
69 | shape: CircleBorder(),
70 | child: Icon(Icons.arrow_forward, color: white),
71 | ),
72 | )
73 | ],
74 | ),
75 | height: 245,
76 |
77 | width: double.infinity,
78 | decoration: authPlateDecoration,
79 | ),
80 | ],
81 | )
82 | );
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/lib/src/screens/SignUpPage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/styles.dart';
3 | import '../shared/colors.dart';
4 | import '../shared/inputFields.dart';
5 | import 'package:page_transition/page_transition.dart';
6 | import './SignInPage.dart';
7 | import './Dashboard.dart';
8 |
9 |
10 | class SignUpPage extends StatefulWidget {
11 | final String pageTitle;
12 |
13 | SignUpPage({Key key, this.pageTitle}) : super(key: key);
14 |
15 | @override
16 | _SignUpPageState createState() => _SignUpPageState();
17 | }
18 |
19 | class _SignUpPageState extends State {
20 | @override
21 | Widget build(BuildContext context) {
22 | return Scaffold(
23 | appBar: AppBar(
24 | elevation: 0,
25 | backgroundColor: white,
26 | title: Text('Sign Up',
27 | style: TextStyle(
28 | color: Colors.grey, fontFamily: 'Poppins', fontSize: 15)),
29 | actions: [
30 | FlatButton(
31 | onPressed: () {
32 | // Navigator.of(context).pushReplacementNamed('/signin');
33 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rightToLeft, child: SignInPage()));
34 |
35 | },
36 | child: Text('Sign In', style: contrastText),
37 | )
38 | ],
39 | ),
40 | body: ListView(
41 | shrinkWrap: true,
42 | children: [
43 | Container(
44 | padding: EdgeInsets.only(left: 18, right: 18),
45 | child: Stack(
46 | children: [
47 | Column(
48 | mainAxisAlignment: MainAxisAlignment.start,
49 | crossAxisAlignment: CrossAxisAlignment.start,
50 | children: [
51 | Text('Welcome to Fryo!', style: h3),
52 | Text('Let\'s get started', style: taglineText),
53 | fryoTextInput('Username'),
54 | fryoTextInput('Full Name'),
55 | fryoEmailInput('Email Address'),
56 | fryoPasswordInput('Password')
57 | ],
58 | ),
59 | Positioned(
60 | bottom: 15,
61 | right: -15,
62 | child: FlatButton(
63 | onPressed: () {
64 | Navigator.pushReplacement(context, PageTransition(type: PageTransitionType.rightToLeft, child: Dashboard()));
65 | },
66 | color: primaryColor,
67 | padding: EdgeInsets.all(13),
68 | shape: CircleBorder(),
69 | child: Icon(Icons.arrow_forward, color: white),
70 | ),
71 | )
72 | ],
73 | ),
74 | height: 360,
75 |
76 | width: double.infinity,
77 | decoration: authPlateDecoration,
78 | ),
79 | ],
80 | )
81 | );
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/lib/src/screens/samplepage.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class SamplePage extends StatefulWidget
4 | {
5 | final String pageTitle;
6 |
7 | SamplePage({Key key, this.pageTitle }) : super(key: key);
8 |
9 | @override
10 | _SamplePageState createState() => _SamplePageState();
11 | }
12 |
13 | class _SamplePageState extends State
14 | {
15 | @override
16 | Widget build(BuildContext context)
17 | {
18 | return Scaffold();
19 | }
20 | }
--------------------------------------------------------------------------------
/lib/src/shared/Product.dart:
--------------------------------------------------------------------------------
1 | class Product
2 | {
3 | String name,
4 | price,
5 | image;
6 | bool userLiked;
7 | double discount;
8 |
9 | Product({
10 | this.name,
11 | this.price,
12 | this.discount,
13 | this.image,
14 | this.userLiked
15 | });
16 |
17 | }
--------------------------------------------------------------------------------
/lib/src/shared/buttons.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './colors.dart';
3 |
4 | FlatButton froyoFlatBtn(String text, onPressed) {
5 | return FlatButton(
6 | onPressed: onPressed,
7 | child: Text(text),
8 | textColor: white,
9 | color: primaryColor,
10 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
11 | );
12 | }
13 |
14 | OutlineButton froyoOutlineBtn(String text, onPressed) {
15 | return OutlineButton(
16 | onPressed: onPressed,
17 | child: Text(text),
18 | textColor: primaryColor,
19 | highlightedBorderColor: highlightColor,
20 | borderSide: BorderSide(color: primaryColor),
21 | shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4)),
22 | );
23 | }
24 |
--------------------------------------------------------------------------------
/lib/src/shared/colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const Color bgColor = Color(0xffF4F7FA);
4 | // const Color primaryColor = Colors.green;
5 | const Color primaryColor = Color(0xff44c662);
6 | const Color white = Colors.white;
7 | const Color darkText = Colors.black54;
8 | const Color highlightColor = Colors.green;
9 |
--------------------------------------------------------------------------------
/lib/src/shared/fryo_icons.dart:
--------------------------------------------------------------------------------
1 | /// Flutter icons Fryo
2 | /// Copyright (C) 2019 by original authors @ fluttericon.com, fontello.com
3 | /// This font was generated by FlutterIcon.com, which is derived from Fontello.
4 | ///
5 | /// To use this font, place it in your fonts/ directory and include the
6 | /// following in your pubspec.yaml
7 | ///
8 | /// flutter:
9 | /// fonts:
10 | /// - family: Fryo
11 | /// fonts:
12 | /// - asset: fonts/Fryo.ttf
13 | ///
14 | ///
15 | /// * Linecons, Copyright (C) 2013 by Designmodo
16 | /// Author: Designmodo for Smashing Magazine
17 | /// License: CC BY ()
18 | /// Homepage: http://designmodo.com/linecons-free/
19 | /// * Linearicons Free, Copyright (C) Linearicons.com
20 | /// Author: Perxis
21 | /// License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
22 | /// Homepage: https://linearicons.com
23 | ///
24 | import 'package:flutter/widgets.dart';
25 |
26 | class Fryo {
27 | Fryo._();
28 |
29 | static const _kFontFam = 'Fryo';
30 |
31 | static const IconData music = const IconData(0xe800, fontFamily: _kFontFam);
32 | static const IconData search = const IconData(0xe801, fontFamily: _kFontFam);
33 | static const IconData magic_wand = const IconData(0xe802, fontFamily: _kFontFam);
34 | static const IconData mail = const IconData(0xe803, fontFamily: _kFontFam);
35 | static const IconData heart = const IconData(0xe804, fontFamily: _kFontFam);
36 | static const IconData star = const IconData(0xe805, fontFamily: _kFontFam);
37 | static const IconData user = const IconData(0xe806, fontFamily: _kFontFam);
38 | static const IconData videocam = const IconData(0xe807, fontFamily: _kFontFam);
39 | static const IconData camera = const IconData(0xe808, fontFamily: _kFontFam);
40 | static const IconData photo = const IconData(0xe809, fontFamily: _kFontFam);
41 | static const IconData attach = const IconData(0xe80a, fontFamily: _kFontFam);
42 | static const IconData lock = const IconData(0xe80b, fontFamily: _kFontFam);
43 | static const IconData eye = const IconData(0xe80c, fontFamily: _kFontFam);
44 | static const IconData tag = const IconData(0xe80d, fontFamily: _kFontFam);
45 | static const IconData thumbs_up = const IconData(0xe80e, fontFamily: _kFontFam);
46 | static const IconData pencil_1 = const IconData(0xe80f, fontFamily: _kFontFam);
47 | static const IconData comment = const IconData(0xe810, fontFamily: _kFontFam);
48 | static const IconData location = const IconData(0xe811, fontFamily: _kFontFam);
49 | static const IconData cup = const IconData(0xe812, fontFamily: _kFontFam);
50 | static const IconData trash = const IconData(0xe813, fontFamily: _kFontFam);
51 | static const IconData doc = const IconData(0xe814, fontFamily: _kFontFam);
52 | static const IconData note = const IconData(0xe815, fontFamily: _kFontFam);
53 | static const IconData cog = const IconData(0xe816, fontFamily: _kFontFam);
54 | static const IconData params = const IconData(0xe817, fontFamily: _kFontFam);
55 | static const IconData calendar = const IconData(0xe818, fontFamily: _kFontFam);
56 | static const IconData sound = const IconData(0xe819, fontFamily: _kFontFam);
57 | static const IconData clock = const IconData(0xe81a, fontFamily: _kFontFam);
58 | static const IconData lightbulb = const IconData(0xe81b, fontFamily: _kFontFam);
59 | static const IconData tv = const IconData(0xe81c, fontFamily: _kFontFam);
60 | static const IconData desktop = const IconData(0xe81d, fontFamily: _kFontFam);
61 | static const IconData mobile = const IconData(0xe81e, fontFamily: _kFontFam);
62 | static const IconData cd = const IconData(0xe81f, fontFamily: _kFontFam);
63 | static const IconData inbox = const IconData(0xe820, fontFamily: _kFontFam);
64 | static const IconData globe = const IconData(0xe821, fontFamily: _kFontFam);
65 | static const IconData cloud = const IconData(0xe822, fontFamily: _kFontFam);
66 | static const IconData paper_plane = const IconData(0xe823, fontFamily: _kFontFam);
67 | static const IconData fire = const IconData(0xe824, fontFamily: _kFontFam);
68 | static const IconData graduation_cap = const IconData(0xe825, fontFamily: _kFontFam);
69 | static const IconData megaphone = const IconData(0xe826, fontFamily: _kFontFam);
70 | static const IconData database = const IconData(0xe827, fontFamily: _kFontFam);
71 | static const IconData key = const IconData(0xe828, fontFamily: _kFontFam);
72 | static const IconData beaker = const IconData(0xe829, fontFamily: _kFontFam);
73 | static const IconData truck = const IconData(0xe82a, fontFamily: _kFontFam);
74 | static const IconData money = const IconData(0xe82b, fontFamily: _kFontFam);
75 | static const IconData food = const IconData(0xe82c, fontFamily: _kFontFam);
76 | static const IconData shop = const IconData(0xe82d, fontFamily: _kFontFam);
77 | static const IconData diamond_1 = const IconData(0xe82e, fontFamily: _kFontFam);
78 | static const IconData t_shirt = const IconData(0xe82f, fontFamily: _kFontFam);
79 | static const IconData wallet = const IconData(0xe830, fontFamily: _kFontFam);
80 | static const IconData home = const IconData(0xe831, fontFamily: _kFontFam);
81 | static const IconData apartment = const IconData(0xe832, fontFamily: _kFontFam);
82 | static const IconData drop = const IconData(0xe833, fontFamily: _kFontFam);
83 | static const IconData lighter = const IconData(0xe834, fontFamily: _kFontFam);
84 | static const IconData poop = const IconData(0xe835, fontFamily: _kFontFam);
85 | static const IconData sun = const IconData(0xe836, fontFamily: _kFontFam);
86 | static const IconData moon = const IconData(0xe837, fontFamily: _kFontFam);
87 | static const IconData cloud_1 = const IconData(0xe838, fontFamily: _kFontFam);
88 | static const IconData cloud_upload = const IconData(0xe839, fontFamily: _kFontFam);
89 | static const IconData cloud_download = const IconData(0xe83a, fontFamily: _kFontFam);
90 | static const IconData cloud_sync = const IconData(0xe83b, fontFamily: _kFontFam);
91 | static const IconData cloud_check = const IconData(0xe83c, fontFamily: _kFontFam);
92 | static const IconData database_1 = const IconData(0xe83d, fontFamily: _kFontFam);
93 | static const IconData lock_1 = const IconData(0xe83e, fontFamily: _kFontFam);
94 | static const IconData cog_1 = const IconData(0xe83f, fontFamily: _kFontFam);
95 | static const IconData trash_1 = const IconData(0xe840, fontFamily: _kFontFam);
96 | static const IconData dice = const IconData(0xe841, fontFamily: _kFontFam);
97 | static const IconData heart_1 = const IconData(0xe842, fontFamily: _kFontFam);
98 | static const IconData coffee_cup = const IconData(0xe843, fontFamily: _kFontFam);
99 | static const IconData leaf = const IconData(0xe844, fontFamily: _kFontFam);
100 | static const IconData paw = const IconData(0xe845, fontFamily: _kFontFam);
101 | static const IconData rocket = const IconData(0xe846, fontFamily: _kFontFam);
102 | static const IconData briefcase = const IconData(0xe847, fontFamily: _kFontFam);
103 | static const IconData star_1 = const IconData(0xe848, fontFamily: _kFontFam);
104 | static const IconData star_half = const IconData(0xe849, fontFamily: _kFontFam);
105 | static const IconData star_empty = const IconData(0xe84a, fontFamily: _kFontFam);
106 | static const IconData flag = const IconData(0xe84b, fontFamily: _kFontFam);
107 | static const IconData envelope = const IconData(0xe84c, fontFamily: _kFontFam);
108 | static const IconData paperclip = const IconData(0xe84d, fontFamily: _kFontFam);
109 | static const IconData inbox_1 = const IconData(0xe84e, fontFamily: _kFontFam);
110 | static const IconData eye_1 = const IconData(0xe84f, fontFamily: _kFontFam);
111 | static const IconData printer = const IconData(0xe850, fontFamily: _kFontFam);
112 | static const IconData file_empty = const IconData(0xe851, fontFamily: _kFontFam);
113 | static const IconData file_add = const IconData(0xe852, fontFamily: _kFontFam);
114 | static const IconData enter = const IconData(0xe853, fontFamily: _kFontFam);
115 | static const IconData sad = const IconData(0xe854, fontFamily: _kFontFam);
116 | static const IconData exit = const IconData(0xe855, fontFamily: _kFontFam);
117 | static const IconData graduation_hat = const IconData(0xe856, fontFamily: _kFontFam);
118 | static const IconData license = const IconData(0xe857, fontFamily: _kFontFam);
119 | static const IconData music_note = const IconData(0xe858, fontFamily: _kFontFam);
120 | static const IconData film_play = const IconData(0xe859, fontFamily: _kFontFam);
121 | static const IconData camera_video = const IconData(0xe85a, fontFamily: _kFontFam);
122 | static const IconData camera_1 = const IconData(0xe85b, fontFamily: _kFontFam);
123 | static const IconData picture = const IconData(0xe85c, fontFamily: _kFontFam);
124 | static const IconData book = const IconData(0xe85d, fontFamily: _kFontFam);
125 | static const IconData bookmark = const IconData(0xe85e, fontFamily: _kFontFam);
126 | static const IconData user_1 = const IconData(0xe85f, fontFamily: _kFontFam);
127 | static const IconData users = const IconData(0xe860, fontFamily: _kFontFam);
128 | static const IconData shirt = const IconData(0xe861, fontFamily: _kFontFam);
129 | static const IconData store = const IconData(0xe862, fontFamily: _kFontFam);
130 | static const IconData cart = const IconData(0xe863, fontFamily: _kFontFam);
131 | static const IconData tag_1 = const IconData(0xe864, fontFamily: _kFontFam);
132 | static const IconData phone_handset = const IconData(0xe865, fontFamily: _kFontFam);
133 | static const IconData phone = const IconData(0xe866, fontFamily: _kFontFam);
134 | static const IconData pushpin = const IconData(0xe867, fontFamily: _kFontFam);
135 | static const IconData map_marker = const IconData(0xe868, fontFamily: _kFontFam);
136 | static const IconData map = const IconData(0xe869, fontFamily: _kFontFam);
137 | static const IconData location_1 = const IconData(0xe86a, fontFamily: _kFontFam);
138 | static const IconData calendar_full = const IconData(0xe86b, fontFamily: _kFontFam);
139 | static const IconData keyboard = const IconData(0xe86c, fontFamily: _kFontFam);
140 | static const IconData spell_check = const IconData(0xe86d, fontFamily: _kFontFam);
141 | static const IconData screen = const IconData(0xe86e, fontFamily: _kFontFam);
142 | static const IconData smartphone = const IconData(0xe86f, fontFamily: _kFontFam);
143 | static const IconData tablet = const IconData(0xe870, fontFamily: _kFontFam);
144 | static const IconData laptop = const IconData(0xe871, fontFamily: _kFontFam);
145 | static const IconData laptop_phone = const IconData(0xe872, fontFamily: _kFontFam);
146 | static const IconData power_swtich = const IconData(0xe873, fontFamily: _kFontFam);
147 | static const IconData lnr_bubble = const IconData(0xe874, fontFamily: _kFontFam);
148 | static const IconData heart_pulse = const IconData(0xe875, fontFamily: _kFontFam);
149 | static const IconData construction = const IconData(0xe876, fontFamily: _kFontFam);
150 | static const IconData pie_chart = const IconData(0xe877, fontFamily: _kFontFam);
151 | static const IconData bus = const IconData(0xe878, fontFamily: _kFontFam);
152 | static const IconData car = const IconData(0xe879, fontFamily: _kFontFam);
153 | static const IconData train = const IconData(0xe87a, fontFamily: _kFontFam);
154 | static const IconData bicycle = const IconData(0xe87b, fontFamily: _kFontFam);
155 | static const IconData wheelchair = const IconData(0xe87c, fontFamily: _kFontFam);
156 | static const IconData select = const IconData(0xe87d, fontFamily: _kFontFam);
157 | static const IconData earth = const IconData(0xe87e, fontFamily: _kFontFam);
158 | static const IconData neutral = const IconData(0xe87f, fontFamily: _kFontFam);
159 | static const IconData mustache = const IconData(0xe880, fontFamily: _kFontFam);
160 | static const IconData alarm = const IconData(0xe881, fontFamily: _kFontFam);
161 | static const IconData bullhorn = const IconData(0xe882, fontFamily: _kFontFam);
162 | static const IconData volume_high = const IconData(0xe883, fontFamily: _kFontFam);
163 | static const IconData volume_medium = const IconData(0xe884, fontFamily: _kFontFam);
164 | static const IconData volume_low = const IconData(0xe885, fontFamily: _kFontFam);
165 | static const IconData volume = const IconData(0xe886, fontFamily: _kFontFam);
166 | static const IconData mic = const IconData(0xe887, fontFamily: _kFontFam);
167 | static const IconData hourglass = const IconData(0xe888, fontFamily: _kFontFam);
168 | static const IconData undo = const IconData(0xe889, fontFamily: _kFontFam);
169 | static const IconData redo = const IconData(0xe88a, fontFamily: _kFontFam);
170 | static const IconData sync_icon = const IconData(0xe88b, fontFamily: _kFontFam);
171 | static const IconData history = const IconData(0xe88c, fontFamily: _kFontFam);
172 | static const IconData clock_1 = const IconData(0xe88d, fontFamily: _kFontFam);
173 | static const IconData download = const IconData(0xe88e, fontFamily: _kFontFam);
174 | static const IconData upload = const IconData(0xe88f, fontFamily: _kFontFam);
175 | static const IconData enter_down = const IconData(0xe890, fontFamily: _kFontFam);
176 | static const IconData exit_up = const IconData(0xe891, fontFamily: _kFontFam);
177 | static const IconData bug = const IconData(0xe892, fontFamily: _kFontFam);
178 | static const IconData code = const IconData(0xe893, fontFamily: _kFontFam);
179 | static const IconData link = const IconData(0xe894, fontFamily: _kFontFam);
180 | static const IconData unlink = const IconData(0xe895, fontFamily: _kFontFam);
181 | static const IconData thumbs_up_1 = const IconData(0xe896, fontFamily: _kFontFam);
182 | static const IconData thumbs_down = const IconData(0xe897, fontFamily: _kFontFam);
183 | static const IconData magnifier = const IconData(0xe898, fontFamily: _kFontFam);
184 | static const IconData cross = const IconData(0xe899, fontFamily: _kFontFam);
185 | static const IconData menu = const IconData(0xe89a, fontFamily: _kFontFam);
186 | static const IconData list = const IconData(0xe89b, fontFamily: _kFontFam);
187 | static const IconData chevron_up = const IconData(0xe89c, fontFamily: _kFontFam);
188 | static const IconData chevron_down = const IconData(0xe89d, fontFamily: _kFontFam);
189 | static const IconData chevron_left = const IconData(0xe89e, fontFamily: _kFontFam);
190 | static const IconData chevron_right = const IconData(0xe89f, fontFamily: _kFontFam);
191 | static const IconData arrow_up = const IconData(0xe8a0, fontFamily: _kFontFam);
192 | static const IconData arrow_down = const IconData(0xe8a1, fontFamily: _kFontFam);
193 | static const IconData arrow_left = const IconData(0xe8a2, fontFamily: _kFontFam);
194 | static const IconData arrow_right = const IconData(0xe8a3, fontFamily: _kFontFam);
195 | static const IconData move = const IconData(0xe8a4, fontFamily: _kFontFam);
196 | static const IconData warning = const IconData(0xe8a5, fontFamily: _kFontFam);
197 | static const IconData question_circle = const IconData(0xe8a6, fontFamily: _kFontFam);
198 | static const IconData menu_circle = const IconData(0xe8a7, fontFamily: _kFontFam);
199 | static const IconData checkmark_cicle = const IconData(0xe8a8, fontFamily: _kFontFam);
200 | static const IconData cross_circle = const IconData(0xe8a9, fontFamily: _kFontFam);
201 | static const IconData plus_circle = const IconData(0xe8aa, fontFamily: _kFontFam);
202 | static const IconData circle_minus = const IconData(0xe8ab, fontFamily: _kFontFam);
203 | static const IconData arrow_up_circle = const IconData(0xe8ac, fontFamily: _kFontFam);
204 | static const IconData arrow_down_circle = const IconData(0xe8ad, fontFamily: _kFontFam);
205 | static const IconData arrow_left_circle = const IconData(0xe8ae, fontFamily: _kFontFam);
206 | static const IconData arrow_right_circle = const IconData(0xe8af, fontFamily: _kFontFam);
207 | static const IconData chevron_up_circle = const IconData(0xe8b0, fontFamily: _kFontFam);
208 | static const IconData chevron_down_circle = const IconData(0xe8b1, fontFamily: _kFontFam);
209 | static const IconData chevron_left_circle = const IconData(0xe8b2, fontFamily: _kFontFam);
210 | static const IconData chevron_right_circle = const IconData(0xe8b3, fontFamily: _kFontFam);
211 | static const IconData crop = const IconData(0xe8b4, fontFamily: _kFontFam);
212 | static const IconData frame_expand = const IconData(0xe8b5, fontFamily: _kFontFam);
213 | static const IconData frame_contract = const IconData(0xe8b6, fontFamily: _kFontFam);
214 | static const IconData layers = const IconData(0xe8b7, fontFamily: _kFontFam);
215 | static const IconData funnel = const IconData(0xe8b8, fontFamily: _kFontFam);
216 | static const IconData text_format = const IconData(0xe8b9, fontFamily: _kFontFam);
217 | static const IconData text_format_remove = const IconData(0xe8ba, fontFamily: _kFontFam);
218 | static const IconData text_size = const IconData(0xe8bb, fontFamily: _kFontFam);
219 | static const IconData bold = const IconData(0xe8bc, fontFamily: _kFontFam);
220 | static const IconData italic = const IconData(0xe8bd, fontFamily: _kFontFam);
221 | static const IconData underline = const IconData(0xe8be, fontFamily: _kFontFam);
222 | static const IconData strikethrough = const IconData(0xe8bf, fontFamily: _kFontFam);
223 | static const IconData highlight = const IconData(0xe8c0, fontFamily: _kFontFam);
224 | static const IconData text_align_left = const IconData(0xe8c1, fontFamily: _kFontFam);
225 | static const IconData text_align_center = const IconData(0xe8c2, fontFamily: _kFontFam);
226 | static const IconData text_align_right = const IconData(0xe8c3, fontFamily: _kFontFam);
227 | static const IconData text_align_justify = const IconData(0xe8c4, fontFamily: _kFontFam);
228 | static const IconData line_spacing = const IconData(0xe8c5, fontFamily: _kFontFam);
229 | static const IconData indent_increase = const IconData(0xe8c6, fontFamily: _kFontFam);
230 | static const IconData indent_decrease = const IconData(0xe8c7, fontFamily: _kFontFam);
231 | static const IconData pilcrow = const IconData(0xe8c8, fontFamily: _kFontFam);
232 | static const IconData direction_ltr = const IconData(0xe8c9, fontFamily: _kFontFam);
233 | static const IconData direction_rtl = const IconData(0xe8ca, fontFamily: _kFontFam);
234 | static const IconData page_break = const IconData(0xe8cb, fontFamily: _kFontFam);
235 | static const IconData sort_alpha_asc = const IconData(0xe8cc, fontFamily: _kFontFam);
236 | static const IconData sort_amount_asc = const IconData(0xe8cd, fontFamily: _kFontFam);
237 | static const IconData hand = const IconData(0xe8ce, fontFamily: _kFontFam);
238 | static const IconData pointer_up = const IconData(0xe8cf, fontFamily: _kFontFam);
239 | static const IconData pointer_right = const IconData(0xe8d0, fontFamily: _kFontFam);
240 | static const IconData pointer_down = const IconData(0xe8d1, fontFamily: _kFontFam);
241 | static const IconData pointer_left = const IconData(0xe8d2, fontFamily: _kFontFam);
242 | static const IconData dinner = const IconData(0xe8d3, fontFamily: _kFontFam);
243 | static const IconData diamond = const IconData(0xe8d4, fontFamily: _kFontFam);
244 | static const IconData chart_bars = const IconData(0xe8d5, fontFamily: _kFontFam);
245 | static const IconData gift = const IconData(0xe8d6, fontFamily: _kFontFam);
246 | static const IconData linearicons = const IconData(0xe8d7, fontFamily: _kFontFam);
247 | static const IconData smile = const IconData(0xe8d8, fontFamily: _kFontFam);
248 | static const IconData pencil = const IconData(0xe8d9, fontFamily: _kFontFam);
249 | }
250 |
--------------------------------------------------------------------------------
/lib/src/shared/inputFields.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './colors.dart';
3 | import './styles.dart';
4 |
5 | Container fryoTextInput(String hintText,
6 | {onTap, onChanged, onEditingComplete, onSubmitted}) {
7 | return Container(
8 | margin: EdgeInsets.only(top: 13),
9 | child: TextField(
10 | onTap: onTap,
11 | onChanged: onChanged,
12 | onEditingComplete: onEditingComplete,
13 | onSubmitted: onSubmitted,
14 | cursorColor: primaryColor,
15 | style: inputFieldTextStyle,
16 | decoration: InputDecoration(
17 | hintText: hintText,
18 | hintStyle: inputFieldHintTextStyle,
19 | focusedBorder: inputFieldFocusedBorderStyle,
20 | contentPadding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
21 | border: inputFieldDefaultBorderStyle),
22 | ),
23 | );
24 | }
25 |
26 | Container fryoEmailInput(String hintText,
27 | {onTap, onChanged, onEditingComplete, onSubmitted}) {
28 | return Container(
29 | margin: EdgeInsets.only(top: 13),
30 | child: TextField(
31 | onTap: onTap,
32 | onChanged: onChanged,
33 | onEditingComplete: onEditingComplete,
34 | onSubmitted: onSubmitted,
35 | keyboardType: TextInputType.emailAddress,
36 | cursorColor: primaryColor,
37 | style: inputFieldTextStyle,
38 | decoration: InputDecoration(
39 | hintText: hintText,
40 | hintStyle: inputFieldHintTextStyle,
41 | focusedBorder: inputFieldFocusedBorderStyle,
42 | contentPadding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
43 | border: inputFieldDefaultBorderStyle),
44 | ),
45 | );
46 | }
47 |
48 |
49 | Container fryoPasswordInput(String hintText,
50 | {onTap, onChanged, onEditingComplete, onSubmitted}) {
51 | return Container(
52 | margin: EdgeInsets.only(top: 13),
53 | child: TextField(
54 | onTap: onTap,
55 | onChanged: onChanged,
56 | onEditingComplete: onEditingComplete,
57 | onSubmitted: onSubmitted,
58 | obscureText: true,
59 | cursorColor: primaryColor,
60 | style: inputFieldHintPaswordTextStyle,
61 | decoration: InputDecoration(
62 | hintText: hintText,
63 | hintStyle: inputFieldHintPaswordTextStyle,
64 | focusedBorder: inputFieldFocusedBorderStyle,
65 | contentPadding: EdgeInsets.symmetric(horizontal: 20, vertical: 10),
66 | border: inputFieldDefaultBorderStyle),
67 | ),
68 | );
69 | }
70 |
--------------------------------------------------------------------------------
/lib/src/shared/partials.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import '../shared/Product.dart';
3 | import '../shared/colors.dart';
4 | import '../shared/styles.dart';
5 |
6 | Widget foodItem(Product food,
7 | {double imgWidth, onLike, onTapped, bool isProductPage = false}) {
8 |
9 | return Container(
10 | width: 180,
11 | height: 180,
12 | // color: Colors.red,
13 | margin: EdgeInsets.only(left: 20),
14 | child: Stack(
15 | children: [
16 | Container(
17 | width: 180,
18 | height: 180,
19 | child: RaisedButton(
20 | color: white,
21 | elevation: (isProductPage) ? 20 : 12,
22 | shape: RoundedRectangleBorder(
23 | borderRadius: BorderRadius.circular(5)),
24 | onPressed: onTapped,
25 | child: Hero(
26 | transitionOnUserGestures: true,
27 | tag: food.name,
28 | child: Image.asset(food.image,
29 | width: (imgWidth != null) ? imgWidth : 100)))),
30 | Positioned(
31 | bottom: (isProductPage) ? 10 : 70,
32 | right: 0,
33 | child: FlatButton(
34 | padding: EdgeInsets.all(20),
35 | shape: CircleBorder(),
36 | onPressed: onLike,
37 | child: Icon(
38 | (food.userLiked) ? Icons.favorite : Icons.favorite_border,
39 | color: (food.userLiked) ? primaryColor : darkText,
40 | size: 30,
41 | ),
42 | ),
43 | ),
44 | Positioned(
45 | bottom: 0,
46 | left: 0,
47 | child: (!isProductPage)
48 | ? Column(
49 | mainAxisAlignment: MainAxisAlignment.start,
50 | crossAxisAlignment: CrossAxisAlignment.start,
51 | children: [
52 | Text(food.name, style: foodNameText),
53 | Text(food.price, style: priceText),
54 | ],
55 | )
56 | : Text(' '),
57 | ),
58 | Positioned(
59 | top: 10,
60 | left: 10,
61 | child: (food.discount != null)
62 | ? Container(
63 | padding:
64 | EdgeInsets.only(top: 5, left: 10, right: 10, bottom: 5),
65 | decoration: BoxDecoration(
66 | color: Colors.grey[600],
67 | borderRadius: BorderRadius.circular(50)),
68 | child: Text('-' + food.discount.toString() + '%',
69 | style: TextStyle(
70 | color: Colors.white, fontWeight: FontWeight.w700)),
71 | )
72 | : SizedBox(width: 0))
73 | ],
74 | ),
75 | );
76 | }
77 |
--------------------------------------------------------------------------------
/lib/src/shared/styles.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import './colors.dart';
3 |
4 | /////////////////////////////////
5 | /// TEXT STYLES
6 | ////////////////////////////////
7 |
8 | const logoStyle = TextStyle(
9 | fontFamily: 'Pacifico',
10 | fontSize: 30,
11 | color: Colors.black54,
12 | letterSpacing: 2);
13 |
14 | const logoWhiteStyle = TextStyle(
15 | fontFamily: 'Pacifico',
16 | fontSize: 21,
17 | letterSpacing: 2,
18 | color: Colors.white);
19 | const whiteText = TextStyle(color: Colors.white, fontFamily: 'Poppins');
20 | const disabledText = TextStyle(color: Colors.grey, fontFamily: 'Poppins');
21 | const contrastText = TextStyle(color: primaryColor, fontFamily: 'Poppins');
22 | const contrastTextBold = TextStyle(
23 | color: primaryColor, fontFamily: 'Poppins', fontWeight: FontWeight.w600);
24 |
25 | const h3 = TextStyle(
26 | color: Colors.black,
27 | fontSize: 24,
28 | fontWeight: FontWeight.w800,
29 | fontFamily: 'Poppins');
30 |
31 | const h4 = TextStyle(
32 | color: Colors.black,
33 | fontSize: 18,
34 | fontWeight: FontWeight.w700,
35 | fontFamily: 'Poppins');
36 |
37 | const h5 = TextStyle(
38 | color: Colors.black,
39 | fontSize: 18,
40 | fontWeight: FontWeight.w500,
41 | fontFamily: 'Poppins');
42 |
43 | const h6 = TextStyle(
44 | color: Colors.black,
45 | fontSize: 16,
46 | fontWeight: FontWeight.w500,
47 | fontFamily: 'Poppins');
48 |
49 |
50 | const priceText = TextStyle(
51 | color: Colors.black,
52 | fontSize: 19,
53 | fontWeight: FontWeight.w800,
54 | fontFamily: 'Poppins');
55 |
56 | const foodNameText = TextStyle(
57 | color: Colors.black,
58 | fontSize: 17,
59 | fontWeight: FontWeight.w600,
60 | fontFamily: 'Poppins');
61 |
62 | const tabLinkStyle =
63 | TextStyle(fontWeight: FontWeight.w500);
64 |
65 | const taglineText = TextStyle(color: Colors.grey, fontFamily: 'Poppins');
66 | const categoryText = TextStyle(
67 | color: Color(0xff444444),
68 | fontWeight: FontWeight.w700,
69 | fontFamily: 'Poppins');
70 |
71 | const inputFieldTextStyle =
72 | TextStyle(fontFamily: 'Poppins', fontWeight: FontWeight.w500);
73 |
74 | const inputFieldHintTextStyle =
75 | TextStyle(fontFamily: 'Poppins', color: Color(0xff444444));
76 |
77 | const inputFieldPasswordTextStyle = TextStyle(
78 | fontFamily: 'Poppins', fontWeight: FontWeight.w500, letterSpacing: 3);
79 |
80 | const inputFieldHintPaswordTextStyle = TextStyle(
81 | fontFamily: 'Poppins', color: Color(0xff444444), letterSpacing: 2);
82 |
83 | ///////////////////////////////////
84 | /// BOX DECORATION STYLES
85 | //////////////////////////////////
86 |
87 | const authPlateDecoration = BoxDecoration(
88 | color: white,
89 | boxShadow: [
90 | BoxShadow(
91 | color: Color.fromRGBO(0, 0, 0, .1),
92 | blurRadius: 10,
93 | spreadRadius: 5,
94 | offset: Offset(0, 1))
95 | ],
96 | borderRadius: BorderRadiusDirectional.only(
97 | bottomEnd: Radius.circular(20), bottomStart: Radius.circular(20)));
98 |
99 | /////////////////////////////////////
100 | /// INPUT FIELD DECORATION STYLES
101 | ////////////////////////////////////
102 |
103 | const inputFieldFocusedBorderStyle = OutlineInputBorder(
104 | borderRadius: BorderRadius.all(Radius.circular(6)),
105 | borderSide: BorderSide(
106 | color: primaryColor,
107 | ));
108 |
109 | const inputFieldDefaultBorderStyle = OutlineInputBorder(
110 | gapPadding: 0, borderRadius: BorderRadius.all(Radius.circular(6)));
111 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://www.dartlang.org/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.0.8"
11 | boolean_selector:
12 | dependency: transitive
13 | description:
14 | name: boolean_selector
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "1.0.4"
18 | charcode:
19 | dependency: transitive
20 | description:
21 | name: charcode
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "1.1.2"
25 | collection:
26 | dependency: transitive
27 | description:
28 | name: collection
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.14.11"
32 | cupertino_icons:
33 | dependency: "direct main"
34 | description:
35 | name: cupertino_icons
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "0.1.2"
39 | flutter:
40 | dependency: "direct main"
41 | description: flutter
42 | source: sdk
43 | version: "0.0.0"
44 | flutter_test:
45 | dependency: "direct dev"
46 | description: flutter
47 | source: sdk
48 | version: "0.0.0"
49 | matcher:
50 | dependency: transitive
51 | description:
52 | name: matcher
53 | url: "https://pub.dartlang.org"
54 | source: hosted
55 | version: "0.12.3+1"
56 | meta:
57 | dependency: transitive
58 | description:
59 | name: meta
60 | url: "https://pub.dartlang.org"
61 | source: hosted
62 | version: "1.1.6"
63 | page_transition:
64 | dependency: "direct main"
65 | description:
66 | name: page_transition
67 | url: "https://pub.dartlang.org"
68 | source: hosted
69 | version: "1.1.4"
70 | path:
71 | dependency: transitive
72 | description:
73 | name: path
74 | url: "https://pub.dartlang.org"
75 | source: hosted
76 | version: "1.6.2"
77 | pedantic:
78 | dependency: transitive
79 | description:
80 | name: pedantic
81 | url: "https://pub.dartlang.org"
82 | source: hosted
83 | version: "1.4.0"
84 | quiver:
85 | dependency: transitive
86 | description:
87 | name: quiver
88 | url: "https://pub.dartlang.org"
89 | source: hosted
90 | version: "2.0.1"
91 | sky_engine:
92 | dependency: transitive
93 | description: flutter
94 | source: sdk
95 | version: "0.0.99"
96 | smooth_star_rating:
97 | dependency: "direct main"
98 | description:
99 | name: smooth_star_rating
100 | url: "https://pub.dartlang.org"
101 | source: hosted
102 | version: "1.0.2"
103 | source_span:
104 | dependency: transitive
105 | description:
106 | name: source_span
107 | url: "https://pub.dartlang.org"
108 | source: hosted
109 | version: "1.5.4"
110 | stack_trace:
111 | dependency: transitive
112 | description:
113 | name: stack_trace
114 | url: "https://pub.dartlang.org"
115 | source: hosted
116 | version: "1.9.3"
117 | stream_channel:
118 | dependency: transitive
119 | description:
120 | name: stream_channel
121 | url: "https://pub.dartlang.org"
122 | source: hosted
123 | version: "1.6.8"
124 | string_scanner:
125 | dependency: transitive
126 | description:
127 | name: string_scanner
128 | url: "https://pub.dartlang.org"
129 | source: hosted
130 | version: "1.0.4"
131 | term_glyph:
132 | dependency: transitive
133 | description:
134 | name: term_glyph
135 | url: "https://pub.dartlang.org"
136 | source: hosted
137 | version: "1.1.0"
138 | test_api:
139 | dependency: transitive
140 | description:
141 | name: test_api
142 | url: "https://pub.dartlang.org"
143 | source: hosted
144 | version: "0.2.2"
145 | typed_data:
146 | dependency: transitive
147 | description:
148 | name: typed_data
149 | url: "https://pub.dartlang.org"
150 | source: hosted
151 | version: "1.1.6"
152 | vector_math:
153 | dependency: transitive
154 | description:
155 | name: vector_math
156 | url: "https://pub.dartlang.org"
157 | source: hosted
158 | version: "2.0.8"
159 | sdks:
160 | dart: ">=2.1.0 <3.0.0"
161 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: fryo
2 | description: A food ordering app template kit.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # In Android, build-name is used as versionName while build-number used as versionCode.
10 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
11 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
12 | # Read more about iOS versioning at
13 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
14 | version: 1.0.0+1
15 |
16 | environment:
17 | sdk: ">=2.1.0 <3.0.0"
18 |
19 | dependencies:
20 | flutter:
21 | sdk: flutter
22 | page_transition: '^1.0.9'
23 | smooth_star_rating: '1.0.2'
24 |
25 | # The following adds the Cupertino Icons font to your application.
26 | # Use with the CupertinoIcons class for iOS style icons.
27 | cupertino_icons: ^0.1.2
28 |
29 | dev_dependencies:
30 | flutter_test:
31 | sdk: flutter
32 |
33 |
34 | # For information on the generic Dart part of this file, see the
35 | # following page: https://www.dartlang.org/tools/pub/pubspec
36 |
37 | # The following section is specific to Flutter.
38 | flutter:
39 |
40 | # The following line ensures that the Material Icons font is
41 | # included with your application, so that you can use the icons in
42 | # the material Icons class.
43 | uses-material-design: true
44 |
45 | # To add assets to your application, add an assets section, like this:
46 | assets:
47 | - images/welcome.png
48 | - images/1.png
49 | - images/2.png
50 | - images/3.png
51 | - images/4.png
52 | - images/5.png
53 | - images/6.png
54 | - images/7.png
55 | - images/8.png
56 | - images/9.png
57 |
58 |
59 |
60 |
61 |
62 |
63 | # An image asset can refer to one or more resolution-specific "variants", see
64 | # https://flutter.io/assets-and-images/#resolution-aware.
65 |
66 | # For details regarding adding assets from package dependencies, see
67 | # https://flutter.io/assets-and-images/#from-packages
68 |
69 | # To add custom fonts to your application, add a fonts section here,
70 | # in this "flutter" section. Each entry in this list should have a
71 | # "family" key with the font family name, and a "fonts" key with a
72 | # list giving the asset and other descriptors for the font. For
73 | # example:
74 | # fonts:
75 | # - family: Schyler
76 | # fonts:
77 | # - asset: fonts/Schyler-Regular.ttf
78 | # - asset: fonts/Schyler-Italic.ttf
79 | # style: italic
80 | # - family: Trajan Pro
81 | # fonts:
82 | # - asset: fonts/TrajanPro.ttf
83 | # - asset: fonts/TrajanPro_Bold.ttf
84 | # weight: 700
85 | #
86 |
87 | fonts:
88 | - family: Poppins
89 | fonts:
90 | - asset: fonts/Poppins-Regular.ttf
91 | - asset: fonts/Poppins-Medium.ttf
92 | - asset: fonts/Poppins-Bold.ttf
93 | weight: 700
94 | - family: Pacifico
95 | fonts:
96 | - asset: fonts/Pacifico.ttf
97 | - family: Fryo
98 | fonts:
99 | - asset: fonts/Fryo.ttf
100 |
101 |
102 |
103 | # For details regarding fonts from package dependencies,
104 | # see https://flutter.io/custom-fonts/#from-packages
105 |
--------------------------------------------------------------------------------
/screenshots/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/1.png
--------------------------------------------------------------------------------
/screenshots/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/2.png
--------------------------------------------------------------------------------
/screenshots/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/3.png
--------------------------------------------------------------------------------
/screenshots/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/4.png
--------------------------------------------------------------------------------
/screenshots/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/5.png
--------------------------------------------------------------------------------
/screenshots/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ahkohd/FlutterGrocery-ShoppingAppUI/ab88cfd5a9a5b0b7b31cae506b85aea0681dd2c8/screenshots/6.png
--------------------------------------------------------------------------------
/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:fryo/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 |
--------------------------------------------------------------------------------