├── flutter ├── lib ├── screens │ ├── screens.dart │ ├── product │ │ ├── widgets │ │ │ ├── widgets.dart │ │ │ ├── product_info │ │ │ │ ├── favourite_button.dart │ │ │ │ ├── add_to_cart_button.dart │ │ │ │ ├── product_info.dart │ │ │ │ ├── plus_minus_incrementer.dart │ │ │ │ ├── info_card.dart │ │ │ │ └── rating.dart │ │ │ ├── product_appbar │ │ │ │ └── product_appbar.dart │ │ │ └── image_page_view │ │ │ │ └── image_page_view.dart │ │ ├── store │ │ │ ├── product_store.dart │ │ │ └── product_store.g.dart │ │ └── product_screen.dart │ └── home │ │ ├── widgets │ │ ├── widgets.dart │ │ ├── home_app_bar │ │ │ ├── search.dart │ │ │ ├── home_app_bar.dart │ │ │ └── tab_bar.dart │ │ ├── hot_items │ │ │ ├── hot_items.dart │ │ │ └── hot_product_card.dart │ │ ├── explore │ │ │ ├── explore_product_card.dart │ │ │ └── explore.dart │ │ └── bottom_bar │ │ │ └── bottom_bar.dart │ │ ├── store │ │ ├── home_store.dart │ │ └── home_store.g.dart │ │ └── home_screen.dart ├── common │ ├── common.dart │ ├── cart_icon.dart │ ├── drawer_icon.dart │ ├── back_icon.dart │ └── product_card.dart ├── theme.dart ├── data_models │ ├── category.dart │ └── product.dart ├── services │ └── database_api.dart ├── main.dart └── store │ ├── store.dart │ └── store.g.dart ├── android ├── gradle.properties ├── app │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── drawable │ │ │ │ │ └── launch_background.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── shoptronics │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── google-services.json │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── settings.gradle └── build.gradle ├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── AppDelegate.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── main.m │ ├── AppDelegate.m │ ├── GoogleService-Info.plist │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Podfile └── Podfile.lock ├── .metadata ├── LICENSE ├── test └── widget_test.dart ├── README.md ├── .gitignore ├── pubspec.yaml ├── pubspec.lock └── assets └── animations └── AnimatedTabBarIndicator.flr /flutter: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/screens/screens.dart: -------------------------------------------------------------------------------- 1 | export 'home/home_screen.dart'; 2 | export 'product/product_screen.dart'; 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /lib/common/common.dart: -------------------------------------------------------------------------------- 1 | export 'drawer_icon.dart'; 2 | export 'cart_icon.dart'; 3 | export 'product_card.dart'; 4 | export 'back_icon.dart'; 5 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /lib/screens/product/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'image_page_view/image_page_view.dart'; 2 | export 'product_appbar/product_appbar.dart'; 3 | export 'product_info/product_info.dart'; 4 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ali-Amin/shopx/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /lib/screens/home/widgets/widgets.dart: -------------------------------------------------------------------------------- 1 | export 'home_app_bar/home_app_bar.dart'; 2 | export 'explore/explore.dart'; 3 | export 'hot_items/hot_items.dart'; 4 | export 'bottom_bar/bottom_bar.dart'; 5 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ShoptronicsTheme { 4 | ThemeData get themeData => ThemeData( 5 | primaryColor: Color(0xFF070B70), 6 | primaryColorLight: Color(0xFF2547F4), 7 | accentColor: Color(0xFFFF7F5D), 8 | buttonColor: Color(0xFFFF7F5D), 9 | ); 10 | } 11 | -------------------------------------------------------------------------------- /.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: 20e59316b8b8474554b38493b8ca888794b0234a 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /lib/screens/home/store/home_store.dart: -------------------------------------------------------------------------------- 1 | import 'package:mobx/mobx.dart'; 2 | part 'home_store.g.dart'; 3 | 4 | class HomeStore = HomeStoreBase with _$HomeStore; 5 | 6 | abstract class HomeStoreBase with Store { 7 | @observable 8 | int activeNavBarIndex = 0; 9 | 10 | @action 11 | void changeNavBarIndex(int index) { 12 | activeNavBarIndex = index; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /lib/data_models/category.dart: -------------------------------------------------------------------------------- 1 | class Category { 2 | final String _name, _uid; 3 | String get name => _name; 4 | String get uid => _uid; 5 | 6 | Category._({String name, String uid}) 7 | : _name = name, 8 | _uid = uid; 9 | factory Category.fromJson(Map json) { 10 | return Category._(name: json['name'], uid: json['uid']); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/example/shoptronics/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.shoptronics; 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | classpath 'com.google.gms:google-services:4.2.0' 10 | } 11 | } 12 | 13 | allprojects { 14 | repositories { 15 | google() 16 | jcenter() 17 | } 18 | } 19 | 20 | rootProject.buildDir = '../build' 21 | subprojects { 22 | project.buildDir = "${rootProject.buildDir}/${project.name}" 23 | } 24 | subprojects { 25 | project.evaluationDependsOn(':app') 26 | } 27 | 28 | task clean(type: Delete) { 29 | delete rootProject.buildDir 30 | } 31 | -------------------------------------------------------------------------------- /lib/services/database_api.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | 3 | class DatabaseAPI { 4 | Firestore _fs = Firestore.instance; 5 | 6 | Future fetchProducts(String categoryUid) { 7 | return _fs 8 | .collection('products') 9 | .where('category', isEqualTo: categoryUid) 10 | .getDocuments(); 11 | } 12 | 13 | Future fetchHotItems() { 14 | return _fs 15 | .collection('products') 16 | .where('isHot', isEqualTo: true) 17 | .getDocuments(); 18 | } 19 | 20 | Future get fetchCategories { 21 | return _fs.collection('categories').getDocuments(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/favourite_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FavouriteButton extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Container( 7 | height: 50, 8 | width: 50, 9 | decoration: BoxDecoration( 10 | borderRadius: BorderRadius.circular(50), 11 | color: Theme.of(context).accentColor, 12 | boxShadow: [ 13 | BoxShadow( 14 | color: Theme.of(context).accentColor, 15 | blurRadius: 20, 16 | ) 17 | ], 18 | ), 19 | child: Icon( 20 | Icons.favorite, 21 | color: Colors.white, 22 | ), 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /lib/common/cart_icon.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CartIcon extends StatelessWidget { 4 | final Color color; 5 | CartIcon({Key key, this.color = Colors.white}) : super(key: key); 6 | @override 7 | Widget build(BuildContext context) { 8 | return SizedBox( 9 | width: 50, 10 | child: Stack( 11 | children: [ 12 | Align( 13 | alignment: Alignment.center, 14 | child: Icon( 15 | Icons.shopping_basket, 16 | color: color, 17 | ), 18 | ), 19 | Align( 20 | alignment: Alignment(0.5, -0.5), 21 | child: CircleAvatar( 22 | radius: 3, 23 | backgroundColor: Theme.of(context).accentColor, 24 | ), 25 | ), 26 | ], 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/common/drawer_icon.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DrawerIcon extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Material( 7 | color: Colors.transparent, 8 | child: InkWell( 9 | onTap: () {}, 10 | splashColor: Colors.white.withAlpha(60), 11 | borderRadius: BorderRadius.circular(20), 12 | child: SizedBox( 13 | width: 50, 14 | child: Stack( 15 | children: [ 16 | Center( 17 | child: CircleAvatar( 18 | backgroundColor: Colors.white.withAlpha(60), 19 | ), 20 | ), 21 | Center( 22 | child: Icon(Icons.menu), 23 | ), 24 | ], 25 | ), 26 | ), 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_appbar/product_appbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ShopX/common/cart_icon.dart'; 3 | import 'package:ShopX/common/common.dart'; 4 | 5 | class ProductScreenAppBar extends StatelessWidget 6 | implements PreferredSizeWidget { 7 | final num height; 8 | ProductScreenAppBar({Key key, @required this.height}) : super(key: key); 9 | 10 | @override 11 | Size get preferredSize => Size.fromHeight(height * 0.1); 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return AppBar( 16 | elevation: 0, 17 | leading: Padding( 18 | padding: const EdgeInsets.only(left: 16.0, top: 16.0), 19 | child: BackIcon(), 20 | ), 21 | actions: [ 22 | Padding( 23 | padding: const EdgeInsets.only(right: 8.0, top: 16.0), 24 | child: CartIcon(), 25 | ), 26 | ], 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/screens/screens.dart'; 4 | import 'package:ShopX/store/store.dart'; 5 | import 'package:ShopX/theme.dart'; 6 | 7 | void main() => runApp(Shoptronics()); 8 | 9 | class Shoptronics extends StatefulWidget { 10 | @override 11 | _ShoptronicsState createState() => _ShoptronicsState(); 12 | } 13 | 14 | class _ShoptronicsState extends State { 15 | AppStore store; 16 | 17 | @override 18 | void initState() { 19 | store = AppStore(); 20 | store.initState(); 21 | super.initState(); 22 | } 23 | 24 | @override 25 | Widget build(BuildContext context) { 26 | return Provider.value( 27 | value: store, 28 | child: MaterialApp( 29 | debugShowCheckedModeBanner: false, 30 | title: 'Flutter Demo', 31 | theme: ShoptronicsTheme().themeData, 32 | home: HomeScreen(), 33 | ), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /lib/screens/product/store/product_store.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:mobx/mobx.dart'; 4 | part 'product_store.g.dart'; 5 | 6 | class ProductStore = ProductStoreBase with _$ProductStore; 7 | 8 | abstract class ProductStoreBase with Store { 9 | @observable 10 | double infoCardVerticalPosition = 250; 11 | 12 | @observable 13 | double infoCardOpacity = 0.1; 14 | 15 | @observable 16 | int page = 0; 17 | 18 | @observable 19 | int quantity = 0; 20 | 21 | @action 22 | void startAnimation() { 23 | Timer(Duration(milliseconds: 50), () { 24 | infoCardVerticalPosition = 0; 25 | infoCardOpacity = 1; 26 | }); 27 | } 28 | 29 | @action 30 | void setPageIndex(int index) { 31 | page = index; 32 | } 33 | 34 | @action 35 | void incrementQuantity() { 36 | quantity++; 37 | } 38 | 39 | @action 40 | void decrementQuantity() { 41 | if (quantity > 0) { 42 | quantity--; 43 | } 44 | } 45 | 46 | @action 47 | void addToCart() { 48 | quantity = 0; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Ali-Amin 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /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:ShopX/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(Shoptronics()); 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 | -------------------------------------------------------------------------------- /ios/Runner/GoogleService-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CLIENT_ID 6 | 171747250732-ds3b0njjqcsl3qqn7qtrvvptfata62pi.apps.googleusercontent.com 7 | REVERSED_CLIENT_ID 8 | com.googleusercontent.apps.171747250732-ds3b0njjqcsl3qqn7qtrvvptfata62pi 9 | API_KEY 10 | AIzaSyAKnPR4GnXIK0Sk6txh5-lZV-niy9hpTcc 11 | GCM_SENDER_ID 12 | 171747250732 13 | PLIST_VERSION 14 | 1 15 | BUNDLE_ID 16 | com.example.shoptronics 17 | PROJECT_ID 18 | shoptronics-fb0e6 19 | STORAGE_BUCKET 20 | shoptronics-fb0e6.appspot.com 21 | IS_ADS_ENABLED 22 | 23 | IS_ANALYTICS_ENABLED 24 | 25 | IS_APPINVITE_ENABLED 26 | 27 | IS_GCM_ENABLED 28 | 29 | IS_SIGNIN_ENABLED 30 | 31 | GOOGLE_APP_ID 32 | 1:171747250732:ios:1299def0260843bb 33 | DATABASE_URL 34 | https://shoptronics-fb0e6.firebaseio.com 35 | 36 | -------------------------------------------------------------------------------- /lib/screens/home/home_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/home/store/home_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:ShopX/screens/home/widgets/widgets.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | class HomeScreen extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return Provider( 10 | builder: (context) => HomeStore(), 11 | child: Scaffold( 12 | appBar: HomeAppBar( 13 | height: MediaQuery.of(context).size.height, 14 | ), 15 | bottomNavigationBar: BottomBar(), 16 | backgroundColor: Theme.of(context).primaryColor, 17 | body: Stack( 18 | children: [ 19 | ListView( 20 | shrinkWrap: true, 21 | physics: BouncingScrollPhysics(), 22 | padding: const EdgeInsets.only(bottom: 64), 23 | children: [ 24 | Padding( 25 | padding: const EdgeInsets.only(top: 24.0), 26 | child: Explore(), 27 | ), 28 | Padding( 29 | padding: const EdgeInsets.only(top: 24.0), 30 | child: HotItems(), 31 | ), 32 | ], 33 | ), 34 | ], 35 | ), 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/add_to_cart_button.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AddToCartButton extends StatelessWidget { 4 | final Function() onPressed; 5 | AddToCartButton({Key key, this.onPressed}) : super(key: key); 6 | @override 7 | Widget build(BuildContext context) { 8 | return Container( 9 | decoration: BoxDecoration( 10 | borderRadius: BorderRadius.circular(20), 11 | boxShadow: [ 12 | BoxShadow( 13 | color: Theme.of(context).accentColor, 14 | blurRadius: 4, 15 | ) 16 | ], 17 | ), 18 | child: Material( 19 | color: Theme.of(context).accentColor, 20 | shadowColor: Theme.of(context).accentColor, 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.circular(20), 23 | ), 24 | child: InkWell( 25 | onTap: onPressed, 26 | splashColor: Colors.white, 27 | borderRadius: BorderRadius.circular(20), 28 | child: Container( 29 | width: 150, 30 | height: 80, 31 | alignment: Alignment.center, 32 | child: Text( 33 | "ADD TO CART", 34 | style: TextStyle( 35 | color: Colors.white, 36 | ), 37 | ), 38 | ), 39 | ), 40 | ), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/home_app_bar/search.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/store/store.dart'; 4 | 5 | class Search extends StatelessWidget { 6 | @override 7 | Widget build(BuildContext context) { 8 | final AppStore store = Provider.of(context); 9 | return Container( 10 | width: MediaQuery.of(context).size.width * 0.85, 11 | padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 20), 12 | decoration: BoxDecoration( 13 | color: Colors.white.withAlpha(60), 14 | borderRadius: BorderRadius.all( 15 | Radius.circular(20), 16 | ), 17 | ), 18 | child: Row( 19 | children: [ 20 | Expanded( 21 | child: TextField( 22 | decoration: InputDecoration( 23 | hintText: "Search for product", 24 | hintStyle: TextStyle( 25 | color: Colors.white.withAlpha(120), 26 | ), 27 | border: InputBorder.none, 28 | ), 29 | onChanged: (String keyword) { 30 | store.setSearchKeyword(keyword); 31 | }, 32 | ), 33 | ), 34 | Icon( 35 | Icons.search, 36 | color: Colors.white.withAlpha(120), 37 | ) 38 | ], 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /android/app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "171747250732", 4 | "firebase_url": "https://shoptronics-fb0e6.firebaseio.com", 5 | "project_id": "shoptronics-fb0e6", 6 | "storage_bucket": "shoptronics-fb0e6.appspot.com" 7 | }, 8 | "client": [ 9 | { 10 | "client_info": { 11 | "mobilesdk_app_id": "1:171747250732:android:1299def0260843bb", 12 | "android_client_info": { 13 | "package_name": "com.example.shoptronics" 14 | } 15 | }, 16 | "oauth_client": [ 17 | { 18 | "client_id": "171747250732-k7r5oe75m1sjd809ur70vpuetfs6hlbc.apps.googleusercontent.com", 19 | "client_type": 3 20 | } 21 | ], 22 | "api_key": [ 23 | { 24 | "current_key": "AIzaSyAb20Et0vwioDtbATCh687c45plK0ui6i4" 25 | } 26 | ], 27 | "services": { 28 | "appinvite_service": { 29 | "other_platform_oauth_client": [ 30 | { 31 | "client_id": "171747250732-k7r5oe75m1sjd809ur70vpuetfs6hlbc.apps.googleusercontent.com", 32 | "client_type": 3 33 | }, 34 | { 35 | "client_id": "171747250732-1jampaltvc4hi02bip8l17vthv6n04qa.apps.googleusercontent.com", 36 | "client_type": 2, 37 | "ios_info": { 38 | "bundle_id": "k" 39 | } 40 | } 41 | ] 42 | } 43 | } 44 | } 45 | ], 46 | "configuration_version": "1" 47 | } -------------------------------------------------------------------------------- /lib/common/back_icon.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class BackIcon extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Material( 7 | color: Colors.transparent, 8 | child: InkWell( 9 | onTap: () { 10 | Navigator.pop(context); 11 | }, 12 | splashColor: Colors.white.withAlpha(60), 13 | borderRadius: BorderRadius.circular(20), 14 | child: SizedBox( 15 | width: 50, 16 | child: Stack( 17 | children: [ 18 | Center( 19 | child: CircleAvatar( 20 | backgroundColor: Colors.white.withAlpha(60), 21 | ), 22 | ), 23 | Center( 24 | child: ClipPath( 25 | clipper: HorizontalClipper(), 26 | child: Icon(Icons.arrow_back), 27 | ), 28 | ), 29 | ], 30 | ), 31 | ), 32 | ), 33 | ); 34 | } 35 | } 36 | 37 | class HorizontalClipper extends CustomClipper { 38 | @override 39 | Path getClip(Size size) { 40 | Path path = Path(); 41 | path.moveTo(-500, 0); 42 | 43 | path.lineTo(0, size.height); 44 | path.lineTo(size.width, size.height); 45 | path.lineTo(size.width, (size.height / 2.0) - 0.7); 46 | path.close(); 47 | return path; 48 | } 49 | 50 | @override 51 | bool shouldReclip(CustomClipper oldClipper) { 52 | return true; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /lib/screens/home/store/home_store.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'home_store.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars 10 | 11 | mixin _$HomeStore on HomeStoreBase, Store { 12 | final _$activeNavBarIndexAtom = Atom(name: 'HomeStoreBase.activeNavBarIndex'); 13 | 14 | @override 15 | int get activeNavBarIndex { 16 | _$activeNavBarIndexAtom.context.enforceReadPolicy(_$activeNavBarIndexAtom); 17 | _$activeNavBarIndexAtom.reportObserved(); 18 | return super.activeNavBarIndex; 19 | } 20 | 21 | @override 22 | set activeNavBarIndex(int value) { 23 | _$activeNavBarIndexAtom.context.conditionallyRunInAction(() { 24 | super.activeNavBarIndex = value; 25 | _$activeNavBarIndexAtom.reportChanged(); 26 | }, _$activeNavBarIndexAtom, name: '${_$activeNavBarIndexAtom.name}_set'); 27 | } 28 | 29 | final _$HomeStoreBaseActionController = 30 | ActionController(name: 'HomeStoreBase'); 31 | 32 | @override 33 | void changeNavBarIndex(int index) { 34 | final _$actionInfo = _$HomeStoreBaseActionController.startAction(); 35 | try { 36 | return super.changeNavBarIndex(index); 37 | } finally { 38 | _$HomeStoreBaseActionController.endAction(_$actionInfo); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ShopX 2 | #### E-Commerce Flutter App Using Firebase and MobX State Management 3 | UI by [Soumitro_Sobuj](https://dribbble.com/shots/6876936-Product-App-Exploration) 4 | 5 | Download [apk](https://github.com/Ali-Amin/shopx/releases/tag/1.0%2B1) 6 | 7 | alt text alt text 8 | 9 | 10 | 11 | 12 | 13 | 14 | ## Features 15 | - [x] Fetch product data from Firebase Cloud Firestore 16 | - [x] View product information 17 | - [x] Use MobX only for state management 18 | - [ ] Cache images 19 | - [ ] Find a more appropriate font 20 | - [ ] Cart 21 | - [ ] Checkout 22 | - [ ] Comments 23 | - [ ] Ratings 24 | - [ ] Favourites 25 | - [ ] Profile 26 | 27 | 28 | ## Firestore structure 29 | ### Collections 30 | #### Categories 31 | ``` 32 | uid: String 33 | name: String 34 | ``` 35 | ![CAT](https://user-images.githubusercontent.com/41022464/63609186-e9575a00-c5d6-11e9-805b-e4f7df9ffe23.PNG) 36 | ### 37 | #### Products 38 | ``` 39 | backgroundColor: String 40 | category: String 41 | description: String 42 | name: String 43 | photos: String[] 44 | price: number 45 | uid: string 46 | ``` 47 | ![PROD](https://user-images.githubusercontent.com/41022464/63609190-ea888700-c5d6-11e9-90e5-bf455d05f056.PNG) 48 | ### Issues 49 | - [ ] Bottom Navigation Bar has blue background, should be transparent 50 | - [ ] AppBar should fade out intro the screen instead of cutting it off 51 | 52 | 53 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/home_app_bar/home_app_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ShopX/common/cart_icon.dart'; 3 | import 'package:ShopX/common/drawer_icon.dart'; 4 | import 'package:ShopX/screens/home/widgets/home_app_bar/search.dart'; 5 | import 'package:ShopX/screens/home/widgets/home_app_bar/tab_bar.dart'; 6 | 7 | class HomeAppBar extends StatelessWidget implements PreferredSizeWidget { 8 | final num height; 9 | HomeAppBar({Key key, @required this.height}) : super(key: key); 10 | 11 | @override 12 | Size get preferredSize => Size.fromHeight(height * 0.28); 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return AppBar( 17 | elevation: 0, 18 | leading: Padding( 19 | padding: const EdgeInsets.only(left: 16.0, top: 16.0), 20 | child: DrawerIcon(), 21 | ), 22 | actions: [ 23 | Padding( 24 | padding: const EdgeInsets.only(right: 8.0, top: 16.0), 25 | child: CartIcon(), 26 | ), 27 | ], 28 | bottom: BottomAppBar(height: height), 29 | ); 30 | } 31 | } 32 | 33 | class BottomAppBar extends StatelessWidget implements PreferredSizeWidget { 34 | final num height; 35 | BottomAppBar({Key key, @required this.height}) : super(key: key); 36 | 37 | @override 38 | Size get preferredSize => Size.fromHeight(height); 39 | 40 | @override 41 | Widget build(BuildContext context) { 42 | return Column( 43 | mainAxisAlignment: MainAxisAlignment.spaceAround, 44 | children: [ 45 | Search(), 46 | SizedBox(height: 20), 47 | HomeTabBar(), 48 | SizedBox(height: 4), 49 | ], 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ShopX 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 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/product_info.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/product/store/product_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:ShopX/screens/product/widgets/product_info/favourite_button.dart'; 4 | import 'package:ShopX/screens/product/widgets/product_info/info_card.dart'; 5 | import 'package:flutter_mobx/flutter_mobx.dart'; 6 | import 'package:provider/provider.dart'; 7 | 8 | class ProductInfo extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | final ProductStore productStore = Provider.of(context); 12 | return Observer( 13 | name: "Product Screen Observer", 14 | builder: (_) { 15 | productStore.startAnimation(); 16 | return AnimatedOpacity( 17 | duration: Duration(milliseconds: 400), 18 | curve: Curves.decelerate, 19 | opacity: productStore.infoCardOpacity, 20 | child: AnimatedContainer( 21 | curve: Curves.decelerate, 22 | duration: Duration(milliseconds: 200), 23 | transform: Matrix4.translationValues( 24 | 0, productStore.infoCardVerticalPosition, 0), 25 | height: 400, 26 | child: Stack( 27 | children: [ 28 | Align( 29 | alignment: Alignment.bottomCenter, 30 | child: InfoCard(), 31 | ), 32 | Align( 33 | alignment: Alignment(0.7, -1), 34 | child: FavouriteButton(), 35 | ), 36 | ], 37 | ), 38 | ), 39 | ); 40 | }); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | /build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/hot_items/hot_items.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_mobx/flutter_mobx.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:ShopX/data_models/product.dart'; 5 | import 'package:ShopX/screens/home/widgets/hot_items/hot_product_card.dart'; 6 | import 'package:ShopX/store/store.dart'; 7 | 8 | class HotItems extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Column( 12 | mainAxisAlignment: MainAxisAlignment.start, 13 | crossAxisAlignment: CrossAxisAlignment.start, 14 | children: [ 15 | Padding( 16 | padding: const EdgeInsets.only(left: 32.0), 17 | child: Text( 18 | "Today's Hot", 19 | style: TextStyle( 20 | fontWeight: FontWeight.w600, 21 | fontSize: 20, 22 | color: Colors.white, 23 | ), 24 | ), 25 | ), 26 | HotProductList(), 27 | ], 28 | ); 29 | } 30 | } 31 | 32 | class HotProductList extends StatelessWidget { 33 | @override 34 | Widget build(BuildContext context) { 35 | final AppStore store = Provider.of(context); 36 | return Observer( 37 | name: "Hot Products Observer", 38 | builder: (_) => SizedBox( 39 | height: 175, 40 | child: ListView.builder( 41 | padding: const EdgeInsets.only(left: 32.0), 42 | physics: BouncingScrollPhysics(), 43 | scrollDirection: Axis.horizontal, 44 | itemCount: store.hotItems.length, 45 | itemBuilder: (context, index) => Provider.value( 46 | value: store.hotItems[index], 47 | child: HotProductCard(), 48 | ), 49 | )), 50 | ); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 9 | 10 | 14 | 21 | 25 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /lib/data_models/product.dart: -------------------------------------------------------------------------------- 1 | class Product { 2 | final String _name, _description, _uid, _category; 3 | final List _photos; 4 | final int _backgroundColor; 5 | final num _price; 6 | final bool _isHot; 7 | 8 | String get name => _name; 9 | String get uid => _uid; 10 | String get category => _category; 11 | List get photos => _photos; 12 | String get defaultPhoto => _photos.first; 13 | num get price => _price; 14 | int get backgroundColor => _backgroundColor; 15 | String get description => _description; 16 | bool get isHot => _isHot; 17 | 18 | Product._({ 19 | String uid, 20 | String name, 21 | String description, 22 | String category, 23 | num price, 24 | List photos, 25 | int backgroundColor, 26 | bool isHot, 27 | }) : _uid = uid, 28 | _name = name, 29 | _description = description, 30 | _category = category, 31 | _price = price, 32 | _photos = photos, 33 | _backgroundColor = backgroundColor, 34 | _isHot = isHot; 35 | 36 | Product({ 37 | String uid, 38 | String name, 39 | String description, 40 | String category, 41 | num price, 42 | String photoUrl, 43 | int backgroundColor, 44 | bool isHot, 45 | }) : _uid = uid, 46 | _name = name, 47 | _description = description, 48 | _category = category, 49 | _price = price, 50 | _photos = [photoUrl], 51 | _backgroundColor = backgroundColor, 52 | _isHot = isHot; 53 | 54 | factory Product.fromJson(Map json) { 55 | List photos = List.castFrom(json['photos']); 56 | int backgroundColor = int.tryParse(json['backgroundColor']); 57 | return Product._( 58 | uid: json['uid'], 59 | name: json['name'], 60 | price: json['price'], 61 | description: json['description'], 62 | category: json['category'], 63 | backgroundColor: backgroundColor, 64 | photos: photos, 65 | ); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /lib/screens/product/product_screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/product/store/product_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:ShopX/screens/product/widgets/widgets.dart'; 5 | import 'package:ShopX/data_models/product.dart'; 6 | 7 | class ProductScreen extends StatelessWidget { 8 | final Product product; 9 | 10 | const ProductScreen({Key key, @required this.product}) : super(key: key); 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Provider( 15 | builder: (_) => ProductStore(), 16 | child: Scaffold( 17 | backgroundColor: Theme.of(context).primaryColor, 18 | appBar: ProductScreenAppBar( 19 | height: MediaQuery.of(context).size.height, 20 | ), 21 | body: Stack( 22 | children: [ 23 | BackgroundContainer(), 24 | Provider.value( 25 | value: product, 26 | child: ListView( 27 | physics: BouncingScrollPhysics(), 28 | shrinkWrap: true, 29 | padding: const EdgeInsets.only(bottom: 80), 30 | children: [ 31 | SizedBox( 32 | height: MediaQuery.of(context).size.height * 0.35, 33 | child: ImagePageView(), 34 | ), 35 | ProductInfo(), 36 | ], 37 | ), 38 | ), 39 | ], 40 | ), 41 | ), 42 | ); 43 | } 44 | } 45 | 46 | class BackgroundContainer extends StatelessWidget { 47 | @override 48 | Widget build(BuildContext context) { 49 | return Container( 50 | decoration: BoxDecoration( 51 | gradient: LinearGradient( 52 | begin: Alignment.topCenter, 53 | end: Alignment.bottomCenter, 54 | colors: [ 55 | Theme.of(context).primaryColor, 56 | Theme.of(context).primaryColorLight, 57 | ], 58 | ), 59 | ), 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /lib/common/product_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/screens/screens.dart'; 4 | import 'package:ShopX/data_models/product.dart'; 5 | 6 | class ProductCard extends StatelessWidget { 7 | ProductCard({ 8 | Key key, 9 | @required this.child, 10 | @required this.width, 11 | @required this.height, 12 | @required this.color, 13 | }) : super(key: key); 14 | final Widget child; 15 | final double width; 16 | final double height; 17 | final Color color; 18 | 19 | @override 20 | Widget build(BuildContext context) { 21 | final Product product = Provider.of(context); 22 | return GestureDetector( 23 | onTap: () { 24 | Navigator.push( 25 | context, 26 | MaterialPageRoute( 27 | builder: (context) => ProductScreen( 28 | product: product, 29 | ), 30 | ), 31 | ); 32 | }, 33 | child: Container( 34 | margin: const EdgeInsets.only(top: 20, right: 16), 35 | decoration: BoxDecoration( 36 | color: color, 37 | borderRadius: BorderRadius.circular(20), 38 | ), 39 | width: width, 40 | height: height, 41 | child: Stack( 42 | children: [ 43 | child, 44 | Align( 45 | alignment: Alignment.bottomRight, 46 | child: _ArrowIcon(), 47 | ), 48 | ], 49 | ), 50 | ), 51 | ); 52 | } 53 | } 54 | 55 | class _ArrowIcon extends StatelessWidget { 56 | @override 57 | Widget build(BuildContext context) { 58 | return Container( 59 | height: 40, 60 | width: 40, 61 | decoration: BoxDecoration( 62 | color: Colors.black.withAlpha(40), 63 | borderRadius: BorderRadius.only( 64 | topLeft: Radius.circular(20), 65 | bottomRight: Radius.circular(20), 66 | ), 67 | ), 68 | child: Icon( 69 | Icons.arrow_forward, 70 | color: Colors.white.withAlpha(200), 71 | ), 72 | ); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /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.shoptronics" 37 | minSdkVersion 16 38 | targetSdkVersion 28 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 42 | multiDexEnabled true 43 | } 44 | 45 | buildTypes { 46 | release { 47 | // TODO: Add your own signing config for the release build. 48 | // Signing with the debug keys for now, so `flutter run --release` works. 49 | signingConfig signingConfigs.debug 50 | } 51 | } 52 | } 53 | 54 | flutter { 55 | source '../..' 56 | } 57 | 58 | dependencies { 59 | testImplementation 'junit:junit:4.12' 60 | androidTestImplementation 'androidx.test:runner:1.1.1' 61 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' 62 | } 63 | apply plugin: 'com.google.gms.google-services' -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/plus_minus_incrementer.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/product/store/product_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:ShopX/screens/product/widgets/product_info/add_to_cart_button.dart'; 4 | import 'package:flutter_mobx/flutter_mobx.dart'; 5 | import 'package:provider/provider.dart'; 6 | 7 | class PlusMinusIncrementer extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | final ProductStore productsStore = Provider.of(context); 11 | return Row( 12 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 13 | children: [ 14 | Container( 15 | width: 100, 16 | height: 35, 17 | decoration: BoxDecoration( 18 | color: Colors.grey[100], 19 | borderRadius: BorderRadius.circular(30), 20 | ), 21 | child: Observer( 22 | name: "Plus Minus Incrementer Observer", 23 | builder: (_) => Row( 24 | mainAxisAlignment: MainAxisAlignment.spaceEvenly, 25 | children: [ 26 | // Gesture detector used instead of IconButton to avoid unnecessary padding 27 | GestureDetector( 28 | onTap: productsStore.decrementQuantity, 29 | child: Icon( 30 | Icons.remove, 31 | color: Colors.grey[400], 32 | size: 18, 33 | ), 34 | ), 35 | Text( 36 | "${productsStore.quantity}", 37 | style: TextStyle( 38 | color: Color(0xFF4209B7), fontWeight: FontWeight.w500), 39 | ), 40 | GestureDetector( 41 | onTap: productsStore.incrementQuantity, 42 | child: Icon( 43 | Icons.add, 44 | color: Colors.grey[400], 45 | size: 18, 46 | ), 47 | ), 48 | ], 49 | ), 50 | ), 51 | ), 52 | AddToCartButton( 53 | onPressed: productsStore.addToCart, 54 | ), 55 | ], 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/explore/explore_product_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/common/product_card.dart'; 4 | import 'package:ShopX/data_models/product.dart'; 5 | 6 | class ExploreProductCard extends StatelessWidget { 7 | Color textColor(Product product) { 8 | switch (product.backgroundColor) { 9 | case 0xFF4769F4: 10 | case 0xFFA26FFF: 11 | return Colors.white; 12 | break; 13 | case 0xFFFFFFFF: 14 | return Color(0xFFA26FFF); 15 | break; 16 | default: 17 | return Colors.white; 18 | break; 19 | } 20 | } 21 | 22 | @override 23 | Widget build(BuildContext context) { 24 | final Product product = Provider.of(context); 25 | return ProductCard( 26 | width: 150, 27 | height: 250, 28 | color: Color(product.backgroundColor), 29 | child: Column( 30 | mainAxisSize: MainAxisSize.max, 31 | children: [ 32 | Container( 33 | height: 65, 34 | padding: const EdgeInsets.only(top: 8, left: 12, right: 12), 35 | child: Text( 36 | product.name, 37 | maxLines: 2, 38 | overflow: TextOverflow.ellipsis, 39 | style: TextStyle( 40 | color: textColor(product), 41 | fontWeight: FontWeight.w700, 42 | fontSize: 20, 43 | ), 44 | ), 45 | ), 46 | Container( 47 | height: 115, 48 | width: 130, 49 | alignment: Alignment.topCenter, 50 | child: Hero( 51 | tag: product.uid, 52 | child: Image.network( 53 | product.defaultPhoto, 54 | ), 55 | ), 56 | ), 57 | Container( 58 | alignment: Alignment.bottomLeft, 59 | padding: const EdgeInsets.only(left: 12), 60 | height: 30, 61 | child: Text( 62 | "\$" + product.price.toStringAsFixed(2), 63 | style: TextStyle( 64 | fontSize: 16, 65 | fontWeight: FontWeight.w300, 66 | color: textColor(product).withAlpha(200), 67 | ), 68 | ), 69 | ) 70 | ], 71 | ), 72 | ); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/bottom_bar/bottom_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/home/store/home_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:ShopX/common/common.dart'; 4 | import 'package:flutter_mobx/flutter_mobx.dart'; 5 | import 'package:provider/provider.dart'; 6 | 7 | class BottomBar extends StatelessWidget { 8 | Color _cartColor(BuildContext context, int index) { 9 | HomeStore homeStore = Provider.of(context); 10 | if (homeStore.activeNavBarIndex == index) { 11 | return Theme.of(context).accentColor; 12 | } 13 | return Colors.grey; 14 | } 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | final HomeStore homeStore = Provider.of(context); 19 | return ClipRRect( 20 | borderRadius: BorderRadius.only( 21 | topRight: Radius.circular(40), 22 | topLeft: Radius.circular(40), 23 | ), 24 | child: Container( 25 | height: 72, 26 | child: Center( 27 | child: Observer( 28 | name: "Bottom Nav Bar Observable", 29 | builder: (_) => BottomNavigationBar( 30 | selectedItemColor: Theme.of(context).accentColor, 31 | type: BottomNavigationBarType.shifting, 32 | showUnselectedLabels: true, 33 | unselectedItemColor: Colors.grey, 34 | unselectedFontSize: 1, 35 | selectedFontSize: 1, 36 | currentIndex: homeStore.activeNavBarIndex, 37 | onTap: (int index) => homeStore.changeNavBarIndex(index), 38 | items: [ 39 | BottomNavigationBarItem( 40 | icon: Icon( 41 | Icons.home, 42 | ), 43 | title: Text(""), 44 | ), 45 | BottomNavigationBarItem( 46 | icon: CartIcon( 47 | color: _cartColor(context, 1), //to check if it is selected 48 | ), 49 | title: Text(""), 50 | ), 51 | BottomNavigationBarItem( 52 | icon: Icon( 53 | Icons.favorite, 54 | ), 55 | title: Text(""), 56 | ), 57 | BottomNavigationBarItem( 58 | icon: Icon( 59 | Icons.person, 60 | ), 61 | title: Text(""), 62 | ), 63 | ], 64 | ), 65 | ), 66 | ), 67 | ), 68 | ); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/info_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/data_models/product.dart'; 4 | import 'package:ShopX/screens/product/widgets/product_info/plus_minus_incrementer.dart'; 5 | import 'package:ShopX/screens/product/widgets/product_info/rating.dart'; 6 | 7 | class InfoCard extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | final Product product = Provider.of(context); 11 | return Container( 12 | height: 380, 13 | width: double.infinity, 14 | decoration: BoxDecoration( 15 | color: Colors.white, 16 | borderRadius: BorderRadius.circular(40), 17 | ), 18 | child: Padding( 19 | padding: const EdgeInsets.symmetric(vertical: 32, horizontal: 24), 20 | child: Column( 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | Flexible( 24 | flex: 1, 25 | child: Text( 26 | product.name, 27 | textAlign: TextAlign.left, 28 | style: TextStyle( 29 | fontSize: 25, 30 | fontWeight: FontWeight.w600, 31 | color: Color(0xFF4209B7), 32 | ), 33 | ), 34 | ), 35 | SizedBox(height: 12), 36 | Flexible( 37 | flex: 1, 38 | child: Text( 39 | "\$" + product.price.toStringAsFixed(2), 40 | style: TextStyle( 41 | fontSize: 16, 42 | fontWeight: FontWeight.w400, 43 | color: Colors.black.withAlpha(150), 44 | ), 45 | ), 46 | ), 47 | SizedBox(height: 12), 48 | Flexible( 49 | flex: 1, 50 | child: Rating(rating: 3.5), 51 | ), 52 | SizedBox(height: 20), 53 | Flexible( 54 | flex: 5, 55 | child: Text( 56 | product.description, 57 | overflow: TextOverflow.ellipsis, 58 | maxLines: 3, 59 | style: TextStyle( 60 | color: Color(0xFF241D8C), 61 | height: 2, 62 | ), 63 | ), 64 | ), 65 | SizedBox(height: 30), 66 | Flexible( 67 | flex: 2, 68 | child: PlusMinusIncrementer(), 69 | ), 70 | ], 71 | ), 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | pods_ary = [] 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) { |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | pods_ary.push({:name => podname, :path => podpath}); 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | } 32 | return pods_ary 33 | end 34 | 35 | target 'Runner' do 36 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 37 | # referring to absolute paths on developers' machines. 38 | system('rm -rf .symlinks') 39 | system('mkdir -p .symlinks/plugins') 40 | 41 | # Flutter Pods 42 | generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') 43 | if generated_xcode_build_settings.empty? 44 | puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first." 45 | end 46 | generated_xcode_build_settings.map { |p| 47 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 48 | symlink = File.join('.symlinks', 'flutter') 49 | File.symlink(File.dirname(p[:path]), symlink) 50 | pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) 51 | end 52 | } 53 | 54 | # Plugin Pods 55 | plugin_pods = parse_KV_file('../.flutter-plugins') 56 | plugin_pods.map { |p| 57 | symlink = File.join('.symlinks', 'plugins', p[:name]) 58 | File.symlink(p[:path], symlink) 59 | pod p[:name], :path => File.join(symlink, 'ios') 60 | } 61 | end 62 | 63 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 64 | install! 'cocoapods', :disable_input_output_paths => true 65 | 66 | post_install do |installer| 67 | installer.pods_project.targets.each do |target| 68 | target.build_configurations.each do |config| 69 | config.build_settings['ENABLE_BITCODE'] = 'NO' 70 | end 71 | end 72 | end 73 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/hot_items/hot_product_card.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | import 'package:ShopX/common/product_card.dart'; 4 | import 'package:ShopX/data_models/product.dart'; 5 | 6 | class HotProductCard extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | final Product product = Provider.of(context); 10 | return ProductCard( 11 | width: 255, 12 | height: 175, 13 | color: Color(product.backgroundColor), 14 | child: Row( 15 | mainAxisAlignment: MainAxisAlignment.start, 16 | children: [ 17 | Container(width: 80, child: HotProductInfo()), 18 | Container( 19 | width: 160, 20 | height: 140, 21 | alignment: Alignment.centerLeft, 22 | child: Hero( 23 | tag: product.uid, 24 | child: Image.network( 25 | product.defaultPhoto, 26 | ), 27 | ), 28 | ), 29 | ], 30 | ), 31 | ); 32 | } 33 | } 34 | 35 | class HotProductInfo extends StatelessWidget { 36 | Color textColor(Product product) { 37 | switch (product.backgroundColor) { 38 | case 0xFF4769F4: 39 | case 0xFFA26FFF: 40 | return Colors.white; 41 | break; 42 | case 0xFFFFFFFF: 43 | return Color(0xFFA26FFF); 44 | break; 45 | default: 46 | return Colors.white; 47 | break; 48 | } 49 | } 50 | 51 | @override 52 | Widget build(BuildContext context) { 53 | final Product product = Provider.of(context); 54 | return Column( 55 | mainAxisSize: MainAxisSize.max, 56 | children: [ 57 | Container( 58 | height: 100, 59 | padding: const EdgeInsets.only(top: 8, left: 12), 60 | child: Text( 61 | product.name, 62 | maxLines: 3, 63 | overflow: TextOverflow.ellipsis, 64 | style: TextStyle( 65 | color: textColor(product), 66 | fontWeight: FontWeight.w700, 67 | fontSize: 20, 68 | ), 69 | ), 70 | ), 71 | Container( 72 | alignment: Alignment.bottomLeft, 73 | padding: const EdgeInsets.only(left: 12), 74 | height: 30, 75 | child: Text( 76 | "\$" + product.price.toStringAsFixed(2), 77 | style: TextStyle( 78 | fontSize: 16, 79 | fontWeight: FontWeight.w300, 80 | color: textColor(product).withAlpha(200), 81 | ), 82 | ), 83 | ) 84 | ], 85 | ); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/explore/explore.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_mobx/flutter_mobx.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'package:ShopX/screens/home/widgets/explore/explore_product_card.dart'; 5 | import 'package:ShopX/store/store.dart'; 6 | import 'package:ShopX/data_models/product.dart'; 7 | 8 | class Explore extends StatelessWidget { 9 | @override 10 | Widget build(BuildContext context) { 11 | return Column( 12 | mainAxisAlignment: MainAxisAlignment.start, 13 | crossAxisAlignment: CrossAxisAlignment.start, 14 | children: [ 15 | Padding( 16 | padding: const EdgeInsets.only(left: 32.0), 17 | child: Text( 18 | "Explore", 19 | style: TextStyle( 20 | fontWeight: FontWeight.w600, 21 | fontSize: 20, 22 | color: Colors.white, 23 | ), 24 | ), 25 | ), 26 | ExploreProductList(), 27 | ], 28 | ); 29 | } 30 | } 31 | 32 | class ExploreProductList extends StatefulWidget { 33 | @override 34 | _ExploreProductListState createState() => _ExploreProductListState(); 35 | } 36 | 37 | class _ExploreProductListState extends State { 38 | ScrollController controller; 39 | @override 40 | void initState() { 41 | controller = ScrollController(); 42 | super.initState(); 43 | } 44 | 45 | @override 46 | void dispose() { 47 | controller.dispose(); 48 | super.dispose(); 49 | } 50 | 51 | void scrollToStart(ScrollController controller) { 52 | if (controller.hasClients) { 53 | controller.animateTo( 54 | 0, 55 | curve: Curves.decelerate, 56 | duration: Duration(milliseconds: 200), 57 | ); 58 | } 59 | } 60 | 61 | @override 62 | Widget build(BuildContext context) { 63 | final AppStore store = Provider.of(context); 64 | return Observer( 65 | name: "Explore Products Observer", 66 | builder: (context) { 67 | scrollToStart(controller); 68 | return SizedBox( 69 | height: 250, 70 | child: ListView( 71 | padding: const EdgeInsets.only(left: 32.0), 72 | physics: BouncingScrollPhysics(), 73 | scrollDirection: Axis.horizontal, 74 | controller: controller, 75 | children: store.filteredProducts.map((Product product) { 76 | return Provider.value( 77 | value: product, 78 | child: ExploreProductCard(), 79 | ); 80 | }).toList(), 81 | ), 82 | ); 83 | }); 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /lib/store/store.dart: -------------------------------------------------------------------------------- 1 | import 'package:cloud_firestore/cloud_firestore.dart'; 2 | import 'package:mobx/mobx.dart'; 3 | import 'package:ShopX/data_models/category.dart'; 4 | import 'package:ShopX/services/database_api.dart'; 5 | 6 | import '../data_models/product.dart'; 7 | part 'store.g.dart'; 8 | 9 | DatabaseAPI _api = DatabaseAPI(); 10 | 11 | class AppStore = AppStoreBase with _$AppStore; 12 | 13 | abstract class AppStoreBase with Store { 14 | @observable 15 | ObservableList categories = ObservableList.of([]); 16 | 17 | @observable 18 | ObservableList products = ObservableList.of([]); 19 | 20 | @observable 21 | ObservableList hotItems = ObservableList.of([]); 22 | 23 | @observable 24 | String searchKeyword; 25 | 26 | @computed 27 | List get filteredProducts { 28 | if (searchKeyword != null) { 29 | return ObservableList.of( 30 | products.where((Product product) { 31 | String productName = product.name.toLowerCase(); 32 | bool inProductName = productName.contains(searchKeyword); 33 | return inProductName; 34 | }).toList(), 35 | ); 36 | } else { 37 | return products; 38 | } 39 | } 40 | 41 | @observable 42 | Category currentlySelectedCategory; 43 | 44 | @action 45 | void initState() { 46 | fetchCategories().then( 47 | (_) { 48 | fetchProducts(categories.first.uid); 49 | currentlySelectedCategory = categories.first; 50 | }, 51 | ); 52 | fetchHotItmes(); 53 | } 54 | 55 | @action 56 | Future fetchCategories() async { 57 | QuerySnapshot query = await _api.fetchCategories; 58 | categories = ObservableList.of( 59 | query.documents 60 | .map((DocumentSnapshot doc) => Category.fromJson(doc.data)) 61 | .toList(), 62 | ); 63 | } 64 | 65 | @action 66 | Future fetchProducts(String categoryUid) async { 67 | QuerySnapshot query = await _api.fetchProducts(categoryUid); 68 | products = ObservableList.of( 69 | query.documents 70 | .map((DocumentSnapshot doc) => Product.fromJson(doc.data)) 71 | .toList(), 72 | ); 73 | } 74 | 75 | @action 76 | Future fetchHotItmes() async { 77 | QuerySnapshot query = await _api.fetchHotItems(); 78 | hotItems = ObservableList.of( 79 | query.documents 80 | .map((DocumentSnapshot doc) => Product.fromJson(doc.data)) 81 | .toList(), 82 | ); 83 | } 84 | 85 | @action 86 | void changeCategory(Category category) { 87 | currentlySelectedCategory = category; 88 | fetchProducts(category.uid); 89 | } 90 | 91 | @action 92 | void setSearchKeyword(String keyword) { 93 | searchKeyword = keyword.toLowerCase(); 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/image_page_view/image_page_view.dart: -------------------------------------------------------------------------------- 1 | import 'package:ShopX/screens/product/store/product_store.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_mobx/flutter_mobx.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:ShopX/data_models/product.dart'; 6 | 7 | class ImagePageView extends StatelessWidget { 8 | @override 9 | Widget build(BuildContext context) { 10 | final Product product = Provider.of(context); 11 | final ProductStore productStore = Provider.of(context); 12 | return Observer( 13 | name: "Product Image Page View Observer", 14 | builder: (_) { 15 | return Column( 16 | children: [ 17 | Hero( 18 | tag: product.uid, 19 | child: SizedBox( 20 | height: MediaQuery.of(context).size.height * 0.30, 21 | child: PageView( 22 | onPageChanged: productStore.setPageIndex, 23 | physics: BouncingScrollPhysics(), 24 | children: product.photos.map((String photoUrl) { 25 | return Image.network(photoUrl); 26 | }).toList(), 27 | ), 28 | ), 29 | ), 30 | SizedBox(height: 20), 31 | PageIndicator( 32 | page: productStore.page, 33 | length: product.photos.length, 34 | ), 35 | ], 36 | ); 37 | }); 38 | } 39 | } 40 | 41 | class PageIndicator extends StatelessWidget { 42 | final int page, length; 43 | 44 | const PageIndicator({ 45 | Key key, 46 | @required this.page, 47 | @required this.length, 48 | }) : super(key: key); 49 | 50 | Color getColor(BuildContext context, int index) { 51 | if (page == index) { 52 | return Theme.of(context).accentColor; 53 | } else { 54 | return Theme.of(context).primaryColor; 55 | } 56 | } 57 | 58 | @override 59 | Widget build(BuildContext context) { 60 | return SizedBox( 61 | width: length * 14.0, 62 | child: Row( 63 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 64 | children: Iterable.generate(length).map((index) { 65 | return Container( 66 | height: 10, 67 | width: 10, 68 | decoration: BoxDecoration( 69 | borderRadius: BorderRadius.circular(10), 70 | color: getColor(context, index), 71 | boxShadow: [ 72 | BoxShadow( 73 | color: getColor(context, index), 74 | blurRadius: 3, 75 | ), 76 | ], 77 | ), 78 | ); 79 | }).toList(), 80 | ), 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /lib/screens/product/widgets/product_info/rating.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Rating extends StatelessWidget { 4 | Rating({Key key, this.rating}); 5 | final double rating; 6 | @override 7 | Widget build(BuildContext context) { 8 | return Row( 9 | children: [ 10 | Stack( 11 | children: [ 12 | EmptyRating(), 13 | ClipPath( 14 | clipper: RatingClipper(rating: rating), 15 | child: FullRating(), 16 | ), 17 | ], 18 | ), 19 | SizedBox(width: 8), 20 | Text.rich( 21 | TextSpan( 22 | children: [ 23 | TextSpan( 24 | text: rating.toString(), 25 | style: TextStyle( 26 | color: Color(0xFF4209B7), 27 | fontSize: 17, 28 | ), 29 | ), 30 | TextSpan( 31 | text: "/5", 32 | style: TextStyle( 33 | color: Colors.grey, 34 | fontSize: 10, 35 | ), 36 | ), 37 | ], 38 | ), 39 | ) 40 | ], 41 | ); 42 | } 43 | } 44 | 45 | class FullRating extends StatelessWidget { 46 | @override 47 | Widget build(BuildContext context) { 48 | return SizedBox( 49 | width: 120, 50 | child: Row( 51 | children: [ 52 | Icon(Icons.star, color: Theme.of(context).primaryColorLight), 53 | Icon(Icons.star, color: Theme.of(context).primaryColorLight), 54 | Icon(Icons.star, color: Theme.of(context).primaryColorLight), 55 | Icon(Icons.star, color: Theme.of(context).primaryColorLight), 56 | Icon(Icons.star, color: Theme.of(context).primaryColorLight), 57 | ], 58 | ), 59 | ); 60 | } 61 | } 62 | 63 | class RatingClipper extends CustomClipper { 64 | RatingClipper({this.rating}); 65 | double rating; 66 | @override 67 | Path getClip(Size size) { 68 | Path path = Path(); 69 | 70 | path.lineTo(0, size.height); 71 | path.lineTo((rating / 5) * size.width, size.height); 72 | path.lineTo((rating / 5) * size.width, 0); 73 | path.close(); 74 | return path; 75 | } 76 | 77 | @override 78 | bool shouldReclip(CustomClipper oldClipper) { 79 | return true; 80 | } 81 | } 82 | 83 | class EmptyRating extends StatelessWidget { 84 | @override 85 | Widget build(BuildContext context) { 86 | return SizedBox( 87 | width: 120, 88 | child: Row( 89 | children: [ 90 | Icon(Icons.star, color: Colors.grey), 91 | Icon(Icons.star, color: Colors.grey), 92 | Icon(Icons.star, color: Colors.grey), 93 | Icon(Icons.star, color: Colors.grey), 94 | Icon(Icons.star, color: Colors.grey), 95 | ], 96 | ), 97 | ); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ShopX 2 | description: A new Flutter project. 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 | 23 | # The following adds the Cupertino Icons font to your application. 24 | # Use with the CupertinoIcons class for iOS style icons. 25 | cupertino_icons: ^0.1.2 26 | flare_flutter: ^1.5.5 27 | mobx: ^0.3.5 28 | mobx_codegen: ^0.3.3+1 29 | flutter_mobx: ^0.3.0+1 30 | build_runner: ^1.6.5 31 | provider: ^3.0.0+1 32 | firebase_core: ^0.4.0+8 33 | cloud_firestore: ^0.12.9 34 | 35 | dev_dependencies: 36 | flutter_test: 37 | sdk: flutter 38 | 39 | 40 | # For information on the generic Dart part of this file, see the 41 | # following page: https://dart.dev/tools/pub/pubspec 42 | 43 | # The following section is specific to Flutter. 44 | flutter: 45 | 46 | # The following line ensures that the Material Icons font is 47 | # included with your application, so that you can use the icons in 48 | # the material Icons class. 49 | uses-material-design: true 50 | 51 | # To add assets to your application, add an assets section, like this: 52 | assets: 53 | - assets/animations/AnimatedTabBarIndicator.flr 54 | # - images/a_dot_ham.jpeg 55 | 56 | # An image asset can refer to one or more resolution-specific "variants", see 57 | # https://flutter.dev/assets-and-images/#resolution-aware. 58 | 59 | # For details regarding adding assets from package dependencies, see 60 | # https://flutter.dev/assets-and-images/#from-packages 61 | 62 | # To add custom fonts to your application, add a fonts section here, 63 | # in this "flutter" section. Each entry in this list should have a 64 | # "family" key with the font family name, and a "fonts" key with a 65 | # list giving the asset and other descriptors for the font. For 66 | # example: 67 | # fonts: 68 | # - family: Schyler 69 | # fonts: 70 | # - asset: fonts/Schyler-Regular.ttf 71 | # - asset: fonts/Schyler-Italic.ttf 72 | # style: italic 73 | # - family: Trajan Pro 74 | # fonts: 75 | # - asset: fonts/TrajanPro.ttf 76 | # - asset: fonts/TrajanPro_Bold.ttf 77 | # weight: 700 78 | # 79 | # For details regarding fonts from package dependencies, 80 | # see https://flutter.dev/custom-fonts/#from-packages 81 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /lib/screens/home/widgets/home_app_bar/tab_bar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flare_flutter/flare_actor.dart'; 3 | import 'package:flutter_mobx/flutter_mobx.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'package:ShopX/data_models/category.dart'; 6 | import 'package:ShopX/store/store.dart'; 7 | 8 | class HomeTabBar extends StatefulWidget { 9 | @override 10 | _HomeTabBarState createState() => _HomeTabBarState(); 11 | } 12 | 13 | class _HomeTabBarState extends State with TickerProviderStateMixin { 14 | TabController tabController; 15 | @override 16 | void initState() { 17 | tabController = TabController(length: 1, vsync: this); 18 | super.initState(); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | final AppStore store = Provider.of(context); 24 | return Container( 25 | color: Theme.of(context).primaryColor, //to remove splash effect 26 | child: Observer( 27 | name: "Category TabBar Observer", 28 | builder: (_) { 29 | tabController = 30 | TabController(length: store.categories.length, vsync: this); 31 | 32 | return TabBar( 33 | controller: tabController, 34 | labelColor: Theme.of(context).accentColor, 35 | indicator: UnderlineTabIndicator(borderSide: BorderSide.none), 36 | indicatorWeight: 0.1, 37 | onTap: (int index) { 38 | store.changeCategory(store.categories[index]); 39 | }, 40 | tabs: store.categories.map((Category category) { 41 | bool isSelected = store.currentlySelectedCategory == category; 42 | return ProductTab( 43 | text: category.name.toUpperCase(), 44 | isSelected: isSelected, 45 | ); 46 | }).toList()); 47 | }, 48 | ), 49 | ); 50 | } 51 | } 52 | 53 | class ProductTab extends StatelessWidget { 54 | final String text; 55 | final bool isSelected; 56 | ProductTab({this.text, this.isSelected}); 57 | 58 | Color textColor(BuildContext context) { 59 | if (isSelected) { 60 | return Theme.of(context).accentColor; 61 | } else { 62 | return Colors.white.withAlpha(230); 63 | } 64 | } 65 | 66 | @override 67 | Widget build(BuildContext context) { 68 | return Column( 69 | crossAxisAlignment: CrossAxisAlignment.center, 70 | mainAxisAlignment: MainAxisAlignment.center, 71 | children: [ 72 | Text( 73 | text, 74 | style: TextStyle( 75 | color: textColor(context), 76 | fontWeight: FontWeight.w300, 77 | ), 78 | ), 79 | SizedBox(height: 8), 80 | Visibility( 81 | visible: isSelected, 82 | child: TabIndicator(), 83 | ) 84 | ], 85 | ); 86 | } 87 | } 88 | 89 | class TabIndicator extends StatelessWidget { 90 | @override 91 | Widget build(BuildContext context) { 92 | return SizedBox( 93 | height: 6, 94 | child: FlareActor( 95 | 'assets/animations/AnimatedTabBarIndicator.flr', 96 | animation: 'Untitled', 97 | fit: BoxFit.contain, 98 | ), 99 | ); 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/screens/product/store/product_store.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'product_store.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars 10 | 11 | mixin _$ProductStore on ProductStoreBase, Store { 12 | final _$infoCardVerticalPositionAtom = 13 | Atom(name: 'ProductStoreBase.infoCardVerticalPosition'); 14 | 15 | @override 16 | double get infoCardVerticalPosition { 17 | _$infoCardVerticalPositionAtom.context 18 | .enforceReadPolicy(_$infoCardVerticalPositionAtom); 19 | _$infoCardVerticalPositionAtom.reportObserved(); 20 | return super.infoCardVerticalPosition; 21 | } 22 | 23 | @override 24 | set infoCardVerticalPosition(double value) { 25 | _$infoCardVerticalPositionAtom.context.conditionallyRunInAction(() { 26 | super.infoCardVerticalPosition = value; 27 | _$infoCardVerticalPositionAtom.reportChanged(); 28 | }, _$infoCardVerticalPositionAtom, 29 | name: '${_$infoCardVerticalPositionAtom.name}_set'); 30 | } 31 | 32 | final _$infoCardOpacityAtom = Atom(name: 'ProductStoreBase.infoCardOpacity'); 33 | 34 | @override 35 | double get infoCardOpacity { 36 | _$infoCardOpacityAtom.context.enforceReadPolicy(_$infoCardOpacityAtom); 37 | _$infoCardOpacityAtom.reportObserved(); 38 | return super.infoCardOpacity; 39 | } 40 | 41 | @override 42 | set infoCardOpacity(double value) { 43 | _$infoCardOpacityAtom.context.conditionallyRunInAction(() { 44 | super.infoCardOpacity = value; 45 | _$infoCardOpacityAtom.reportChanged(); 46 | }, _$infoCardOpacityAtom, name: '${_$infoCardOpacityAtom.name}_set'); 47 | } 48 | 49 | final _$pageAtom = Atom(name: 'ProductStoreBase.page'); 50 | 51 | @override 52 | int get page { 53 | _$pageAtom.context.enforceReadPolicy(_$pageAtom); 54 | _$pageAtom.reportObserved(); 55 | return super.page; 56 | } 57 | 58 | @override 59 | set page(int value) { 60 | _$pageAtom.context.conditionallyRunInAction(() { 61 | super.page = value; 62 | _$pageAtom.reportChanged(); 63 | }, _$pageAtom, name: '${_$pageAtom.name}_set'); 64 | } 65 | 66 | final _$quantityAtom = Atom(name: 'ProductStoreBase.quantity'); 67 | 68 | @override 69 | int get quantity { 70 | _$quantityAtom.context.enforceReadPolicy(_$quantityAtom); 71 | _$quantityAtom.reportObserved(); 72 | return super.quantity; 73 | } 74 | 75 | @override 76 | set quantity(int value) { 77 | _$quantityAtom.context.conditionallyRunInAction(() { 78 | super.quantity = value; 79 | _$quantityAtom.reportChanged(); 80 | }, _$quantityAtom, name: '${_$quantityAtom.name}_set'); 81 | } 82 | 83 | final _$ProductStoreBaseActionController = 84 | ActionController(name: 'ProductStoreBase'); 85 | 86 | @override 87 | void startAnimation() { 88 | final _$actionInfo = _$ProductStoreBaseActionController.startAction(); 89 | try { 90 | return super.startAnimation(); 91 | } finally { 92 | _$ProductStoreBaseActionController.endAction(_$actionInfo); 93 | } 94 | } 95 | 96 | @override 97 | void setPageIndex(int index) { 98 | final _$actionInfo = _$ProductStoreBaseActionController.startAction(); 99 | try { 100 | return super.setPageIndex(index); 101 | } finally { 102 | _$ProductStoreBaseActionController.endAction(_$actionInfo); 103 | } 104 | } 105 | 106 | @override 107 | void incrementQuantity() { 108 | final _$actionInfo = _$ProductStoreBaseActionController.startAction(); 109 | try { 110 | return super.incrementQuantity(); 111 | } finally { 112 | _$ProductStoreBaseActionController.endAction(_$actionInfo); 113 | } 114 | } 115 | 116 | @override 117 | void decrementQuantity() { 118 | final _$actionInfo = _$ProductStoreBaseActionController.startAction(); 119 | try { 120 | return super.decrementQuantity(); 121 | } finally { 122 | _$ProductStoreBaseActionController.endAction(_$actionInfo); 123 | } 124 | } 125 | 126 | @override 127 | void addToCart() { 128 | final _$actionInfo = _$ProductStoreBaseActionController.startAction(); 129 | try { 130 | return super.addToCart(); 131 | } finally { 132 | _$ProductStoreBaseActionController.endAction(_$actionInfo); 133 | } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /lib/store/store.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'store.dart'; 4 | 5 | // ************************************************************************** 6 | // StoreGenerator 7 | // ************************************************************************** 8 | 9 | // ignore_for_file: non_constant_identifier_names, unnecessary_lambdas, prefer_expression_function_bodies, lines_longer_than_80_chars 10 | 11 | mixin _$AppStore on AppStoreBase, Store { 12 | Computed> _$filteredProductsComputed; 13 | 14 | @override 15 | List get filteredProducts => (_$filteredProductsComputed ??= 16 | Computed>(() => super.filteredProducts)) 17 | .value; 18 | 19 | final _$categoriesAtom = Atom(name: 'AppStoreBase.categories'); 20 | 21 | @override 22 | ObservableList get categories { 23 | _$categoriesAtom.context.enforceReadPolicy(_$categoriesAtom); 24 | _$categoriesAtom.reportObserved(); 25 | return super.categories; 26 | } 27 | 28 | @override 29 | set categories(ObservableList value) { 30 | _$categoriesAtom.context.conditionallyRunInAction(() { 31 | super.categories = value; 32 | _$categoriesAtom.reportChanged(); 33 | }, _$categoriesAtom, name: '${_$categoriesAtom.name}_set'); 34 | } 35 | 36 | final _$productsAtom = Atom(name: 'AppStoreBase.products'); 37 | 38 | @override 39 | ObservableList get products { 40 | _$productsAtom.context.enforceReadPolicy(_$productsAtom); 41 | _$productsAtom.reportObserved(); 42 | return super.products; 43 | } 44 | 45 | @override 46 | set products(ObservableList value) { 47 | _$productsAtom.context.conditionallyRunInAction(() { 48 | super.products = value; 49 | _$productsAtom.reportChanged(); 50 | }, _$productsAtom, name: '${_$productsAtom.name}_set'); 51 | } 52 | 53 | final _$hotItemsAtom = Atom(name: 'AppStoreBase.hotItems'); 54 | 55 | @override 56 | ObservableList get hotItems { 57 | _$hotItemsAtom.context.enforceReadPolicy(_$hotItemsAtom); 58 | _$hotItemsAtom.reportObserved(); 59 | return super.hotItems; 60 | } 61 | 62 | @override 63 | set hotItems(ObservableList value) { 64 | _$hotItemsAtom.context.conditionallyRunInAction(() { 65 | super.hotItems = value; 66 | _$hotItemsAtom.reportChanged(); 67 | }, _$hotItemsAtom, name: '${_$hotItemsAtom.name}_set'); 68 | } 69 | 70 | final _$searchKeywordAtom = Atom(name: 'AppStoreBase.searchKeyword'); 71 | 72 | @override 73 | String get searchKeyword { 74 | _$searchKeywordAtom.context.enforceReadPolicy(_$searchKeywordAtom); 75 | _$searchKeywordAtom.reportObserved(); 76 | return super.searchKeyword; 77 | } 78 | 79 | @override 80 | set searchKeyword(String value) { 81 | _$searchKeywordAtom.context.conditionallyRunInAction(() { 82 | super.searchKeyword = value; 83 | _$searchKeywordAtom.reportChanged(); 84 | }, _$searchKeywordAtom, name: '${_$searchKeywordAtom.name}_set'); 85 | } 86 | 87 | final _$currentlySelectedCategoryAtom = 88 | Atom(name: 'AppStoreBase.currentlySelectedCategory'); 89 | 90 | @override 91 | Category get currentlySelectedCategory { 92 | _$currentlySelectedCategoryAtom.context 93 | .enforceReadPolicy(_$currentlySelectedCategoryAtom); 94 | _$currentlySelectedCategoryAtom.reportObserved(); 95 | return super.currentlySelectedCategory; 96 | } 97 | 98 | @override 99 | set currentlySelectedCategory(Category value) { 100 | _$currentlySelectedCategoryAtom.context.conditionallyRunInAction(() { 101 | super.currentlySelectedCategory = value; 102 | _$currentlySelectedCategoryAtom.reportChanged(); 103 | }, _$currentlySelectedCategoryAtom, 104 | name: '${_$currentlySelectedCategoryAtom.name}_set'); 105 | } 106 | 107 | final _$fetchCategoriesAsyncAction = AsyncAction('fetchCategories'); 108 | 109 | @override 110 | Future fetchCategories() { 111 | return _$fetchCategoriesAsyncAction.run(() => super.fetchCategories()); 112 | } 113 | 114 | final _$fetchProductsAsyncAction = AsyncAction('fetchProducts'); 115 | 116 | @override 117 | Future fetchProducts(String categoryUid) { 118 | return _$fetchProductsAsyncAction 119 | .run(() => super.fetchProducts(categoryUid)); 120 | } 121 | 122 | final _$fetchHotItmesAsyncAction = AsyncAction('fetchHotItmes'); 123 | 124 | @override 125 | Future fetchHotItmes() { 126 | return _$fetchHotItmesAsyncAction.run(() => super.fetchHotItmes()); 127 | } 128 | 129 | final _$AppStoreBaseActionController = ActionController(name: 'AppStoreBase'); 130 | 131 | @override 132 | void initState() { 133 | final _$actionInfo = _$AppStoreBaseActionController.startAction(); 134 | try { 135 | return super.initState(); 136 | } finally { 137 | _$AppStoreBaseActionController.endAction(_$actionInfo); 138 | } 139 | } 140 | 141 | @override 142 | void changeCategory(Category category) { 143 | final _$actionInfo = _$AppStoreBaseActionController.startAction(); 144 | try { 145 | return super.changeCategory(category); 146 | } finally { 147 | _$AppStoreBaseActionController.endAction(_$actionInfo); 148 | } 149 | } 150 | 151 | @override 152 | void setSearchKeyword(String keyword) { 153 | final _$actionInfo = _$AppStoreBaseActionController.startAction(); 154 | try { 155 | return super.setSearchKeyword(keyword); 156 | } finally { 157 | _$AppStoreBaseActionController.endAction(_$actionInfo); 158 | } 159 | } 160 | } 161 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BoringSSL-GRPC (0.0.3): 3 | - BoringSSL-GRPC/Implementation (= 0.0.3) 4 | - BoringSSL-GRPC/Interface (= 0.0.3) 5 | - BoringSSL-GRPC/Implementation (0.0.3): 6 | - BoringSSL-GRPC/Interface (= 0.0.3) 7 | - BoringSSL-GRPC/Interface (0.0.3) 8 | - cloud_firestore (0.0.1): 9 | - Firebase/Core 10 | - Firebase/Firestore (~> 6.0) 11 | - Flutter 12 | - Firebase/Core (6.5.0): 13 | - Firebase/CoreOnly 14 | - FirebaseAnalytics (= 6.0.4) 15 | - Firebase/CoreOnly (6.5.0): 16 | - FirebaseCore (= 6.1.0) 17 | - Firebase/Firestore (6.5.0): 18 | - Firebase/CoreOnly 19 | - FirebaseFirestore (~> 1.4.2) 20 | - firebase_core (0.0.1): 21 | - Firebase/Core 22 | - Flutter 23 | - FirebaseAnalytics (6.0.4): 24 | - FirebaseCore (~> 6.1) 25 | - FirebaseInstanceID (~> 4.2) 26 | - GoogleAppMeasurement (= 6.0.4) 27 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 28 | - GoogleUtilities/MethodSwizzler (~> 6.0) 29 | - GoogleUtilities/Network (~> 6.0) 30 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 31 | - nanopb (~> 0.3) 32 | - FirebaseAuthInterop (1.0.0) 33 | - FirebaseCore (6.1.0): 34 | - GoogleUtilities/Environment (~> 6.0) 35 | - GoogleUtilities/Logger (~> 6.0) 36 | - FirebaseFirestore (1.4.2): 37 | - FirebaseAuthInterop (~> 1.0) 38 | - FirebaseCore (~> 6.0) 39 | - FirebaseFirestore/abseil-cpp (= 1.4.2) 40 | - "gRPC-C++ (= 0.0.9)" 41 | - leveldb-library (~> 1.20) 42 | - nanopb (~> 0.3.901) 43 | - Protobuf (~> 3.1) 44 | - FirebaseFirestore/abseil-cpp (1.4.2): 45 | - FirebaseAuthInterop (~> 1.0) 46 | - FirebaseCore (~> 6.0) 47 | - "gRPC-C++ (= 0.0.9)" 48 | - leveldb-library (~> 1.20) 49 | - nanopb (~> 0.3.901) 50 | - Protobuf (~> 3.1) 51 | - FirebaseInstanceID (4.2.2): 52 | - FirebaseCore (~> 6.0) 53 | - GoogleUtilities/Environment (~> 6.0) 54 | - GoogleUtilities/UserDefaults (~> 6.0) 55 | - Flutter (1.0.0) 56 | - GoogleAppMeasurement (6.0.4): 57 | - GoogleUtilities/AppDelegateSwizzler (~> 6.0) 58 | - GoogleUtilities/MethodSwizzler (~> 6.0) 59 | - GoogleUtilities/Network (~> 6.0) 60 | - "GoogleUtilities/NSData+zlib (~> 6.0)" 61 | - nanopb (~> 0.3) 62 | - GoogleUtilities/AppDelegateSwizzler (6.2.3): 63 | - GoogleUtilities/Environment 64 | - GoogleUtilities/Logger 65 | - GoogleUtilities/Network 66 | - GoogleUtilities/Environment (6.2.3) 67 | - GoogleUtilities/Logger (6.2.3): 68 | - GoogleUtilities/Environment 69 | - GoogleUtilities/MethodSwizzler (6.2.3): 70 | - GoogleUtilities/Logger 71 | - GoogleUtilities/Network (6.2.3): 72 | - GoogleUtilities/Logger 73 | - "GoogleUtilities/NSData+zlib" 74 | - GoogleUtilities/Reachability 75 | - "GoogleUtilities/NSData+zlib (6.2.3)" 76 | - GoogleUtilities/Reachability (6.2.3): 77 | - GoogleUtilities/Logger 78 | - GoogleUtilities/UserDefaults (6.2.3): 79 | - GoogleUtilities/Logger 80 | - "gRPC-C++ (0.0.9)": 81 | - "gRPC-C++/Implementation (= 0.0.9)" 82 | - "gRPC-C++/Interface (= 0.0.9)" 83 | - "gRPC-C++/Implementation (0.0.9)": 84 | - "gRPC-C++/Interface (= 0.0.9)" 85 | - gRPC-Core (= 1.21.0) 86 | - nanopb (~> 0.3) 87 | - "gRPC-C++/Interface (0.0.9)" 88 | - gRPC-Core (1.21.0): 89 | - gRPC-Core/Implementation (= 1.21.0) 90 | - gRPC-Core/Interface (= 1.21.0) 91 | - gRPC-Core/Implementation (1.21.0): 92 | - BoringSSL-GRPC (= 0.0.3) 93 | - gRPC-Core/Interface (= 1.21.0) 94 | - nanopb (~> 0.3) 95 | - gRPC-Core/Interface (1.21.0) 96 | - leveldb-library (1.20) 97 | - nanopb (0.3.901): 98 | - nanopb/decode (= 0.3.901) 99 | - nanopb/encode (= 0.3.901) 100 | - nanopb/decode (0.3.901) 101 | - nanopb/encode (0.3.901) 102 | - Protobuf (3.9.0) 103 | 104 | DEPENDENCIES: 105 | - cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) 106 | - firebase_core (from `.symlinks/plugins/firebase_core/ios`) 107 | - Flutter (from `.symlinks/flutter/ios`) 108 | 109 | SPEC REPOS: 110 | https://github.com/cocoapods/specs.git: 111 | - BoringSSL-GRPC 112 | - Firebase 113 | - FirebaseAnalytics 114 | - FirebaseAuthInterop 115 | - FirebaseCore 116 | - FirebaseFirestore 117 | - FirebaseInstanceID 118 | - GoogleAppMeasurement 119 | - GoogleUtilities 120 | - "gRPC-C++" 121 | - gRPC-Core 122 | - leveldb-library 123 | - nanopb 124 | - Protobuf 125 | 126 | EXTERNAL SOURCES: 127 | cloud_firestore: 128 | :path: ".symlinks/plugins/cloud_firestore/ios" 129 | firebase_core: 130 | :path: ".symlinks/plugins/firebase_core/ios" 131 | Flutter: 132 | :path: ".symlinks/flutter/ios" 133 | 134 | SPEC CHECKSUMS: 135 | BoringSSL-GRPC: db8764df3204ccea016e1c8dd15d9a9ad63ff318 136 | cloud_firestore: 41f84086d2e1a5c216a6af07ef050758de825ff0 137 | Firebase: dedc9e48ea3f3649ad5f6b982f8a0c73508a14b5 138 | firebase_core: b3b02d0b5e9d01aab5e50ba7cbcf84c73cb6883c 139 | FirebaseAnalytics: 3fb375bc9d13779add4039716f868d233a473fad 140 | FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc 141 | FirebaseCore: aecf02fb2274ec361b9bebeac112f5daa18273bd 142 | FirebaseFirestore: 41a035642eb017fc7206318985501626993840bd 143 | FirebaseInstanceID: 662b8108a09fe9ed01aafdedba100fde8536b0f6 144 | Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a 145 | GoogleAppMeasurement: 183bd916af7f80deb67c01888368f1108d641832 146 | GoogleUtilities: d2b0e277a95962e09bb27f5cd42f5f0b6a506c7d 147 | "gRPC-C++": 9dfe7b44821e7b3e44aacad2af29d2c21f7cde83 148 | gRPC-Core: c9aef9a261a1247e881b18059b84d597293c9947 149 | leveldb-library: 08cba283675b7ed2d99629a4bc5fd052cd2bb6a5 150 | nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48 151 | Protobuf: 1097ca58584c8d9be81bfbf2c5ff5975648dd87a 152 | 153 | PODFILE CHECKSUM: 7fb83752f59ead6285236625b82473f90b1cb932 154 | 155 | COCOAPODS: 1.7.5 156 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | analyzer: 5 | dependency: transitive 6 | description: 7 | name: analyzer 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "0.36.4" 11 | args: 12 | dependency: transitive 13 | description: 14 | name: args 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.5.2" 18 | async: 19 | dependency: transitive 20 | description: 21 | name: async 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.2.0" 25 | boolean_selector: 26 | dependency: transitive 27 | description: 28 | name: boolean_selector 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.4" 32 | build: 33 | dependency: transitive 34 | description: 35 | name: build 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.1.5" 39 | build_config: 40 | dependency: transitive 41 | description: 42 | name: build_config 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "0.4.1+1" 46 | build_daemon: 47 | dependency: transitive 48 | description: 49 | name: build_daemon 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.0.0" 53 | build_resolvers: 54 | dependency: transitive 55 | description: 56 | name: build_resolvers 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "1.0.6" 60 | build_runner: 61 | dependency: "direct main" 62 | description: 63 | name: build_runner 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.6.5" 67 | build_runner_core: 68 | dependency: transitive 69 | description: 70 | name: build_runner_core 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "3.0.9" 74 | built_collection: 75 | dependency: transitive 76 | description: 77 | name: built_collection 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "4.2.2" 81 | built_value: 82 | dependency: transitive 83 | description: 84 | name: built_value 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "6.7.0" 88 | charcode: 89 | dependency: transitive 90 | description: 91 | name: charcode 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "1.1.2" 95 | checked_yaml: 96 | dependency: transitive 97 | description: 98 | name: checked_yaml 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.0.2" 102 | cloud_firestore: 103 | dependency: "direct main" 104 | description: 105 | name: cloud_firestore 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "0.12.9" 109 | code_builder: 110 | dependency: transitive 111 | description: 112 | name: code_builder 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "3.2.0" 116 | collection: 117 | dependency: transitive 118 | description: 119 | name: collection 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "1.14.11" 123 | convert: 124 | dependency: transitive 125 | description: 126 | name: convert 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "2.1.1" 130 | crypto: 131 | dependency: transitive 132 | description: 133 | name: crypto 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "2.1.1+1" 137 | csslib: 138 | dependency: transitive 139 | description: 140 | name: csslib 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "0.16.1" 144 | cupertino_icons: 145 | dependency: "direct main" 146 | description: 147 | name: cupertino_icons 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "0.1.2" 151 | dart_style: 152 | dependency: transitive 153 | description: 154 | name: dart_style 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "1.2.9" 158 | firebase_core: 159 | dependency: "direct main" 160 | description: 161 | name: firebase_core 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "0.4.0+8" 165 | fixnum: 166 | dependency: transitive 167 | description: 168 | name: fixnum 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "0.10.9" 172 | flare_dart: 173 | dependency: transitive 174 | description: 175 | name: flare_dart 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "1.4.4" 179 | flare_flutter: 180 | dependency: "direct main" 181 | description: 182 | name: flare_flutter 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.5.5" 186 | flutter: 187 | dependency: "direct main" 188 | description: flutter 189 | source: sdk 190 | version: "0.0.0" 191 | flutter_mobx: 192 | dependency: "direct main" 193 | description: 194 | name: flutter_mobx 195 | url: "https://pub.dartlang.org" 196 | source: hosted 197 | version: "0.3.0+1" 198 | flutter_test: 199 | dependency: "direct dev" 200 | description: flutter 201 | source: sdk 202 | version: "0.0.0" 203 | front_end: 204 | dependency: transitive 205 | description: 206 | name: front_end 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "0.1.19" 210 | glob: 211 | dependency: transitive 212 | description: 213 | name: glob 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "1.1.7" 217 | graphs: 218 | dependency: transitive 219 | description: 220 | name: graphs 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "0.2.0" 224 | html: 225 | dependency: transitive 226 | description: 227 | name: html 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "0.14.0+2" 231 | http: 232 | dependency: transitive 233 | description: 234 | name: http 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "0.12.0+2" 238 | http_multi_server: 239 | dependency: transitive 240 | description: 241 | name: http_multi_server 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "2.1.0" 245 | http_parser: 246 | dependency: transitive 247 | description: 248 | name: http_parser 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "3.1.3" 252 | io: 253 | dependency: transitive 254 | description: 255 | name: io 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "0.3.3" 259 | js: 260 | dependency: transitive 261 | description: 262 | name: js 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "0.6.1+1" 266 | json_annotation: 267 | dependency: transitive 268 | description: 269 | name: json_annotation 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "3.0.0" 273 | kernel: 274 | dependency: transitive 275 | description: 276 | name: kernel 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "0.3.19" 280 | logging: 281 | dependency: transitive 282 | description: 283 | name: logging 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "0.11.3+2" 287 | matcher: 288 | dependency: transitive 289 | description: 290 | name: matcher 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "0.12.5" 294 | meta: 295 | dependency: transitive 296 | description: 297 | name: meta 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "1.1.6" 301 | mime: 302 | dependency: transitive 303 | description: 304 | name: mime 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "0.9.6+3" 308 | mobx: 309 | dependency: "direct main" 310 | description: 311 | name: mobx 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "0.3.5" 315 | mobx_codegen: 316 | dependency: "direct main" 317 | description: 318 | name: mobx_codegen 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "0.3.3+1" 322 | package_config: 323 | dependency: transitive 324 | description: 325 | name: package_config 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "1.0.5" 329 | package_resolver: 330 | dependency: transitive 331 | description: 332 | name: package_resolver 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "1.0.10" 336 | path: 337 | dependency: transitive 338 | description: 339 | name: path 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "1.6.2" 343 | pedantic: 344 | dependency: transitive 345 | description: 346 | name: pedantic 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "1.7.0" 350 | pool: 351 | dependency: transitive 352 | description: 353 | name: pool 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "1.4.0" 357 | provider: 358 | dependency: "direct main" 359 | description: 360 | name: provider 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "3.0.0+1" 364 | pub_semver: 365 | dependency: transitive 366 | description: 367 | name: pub_semver 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "1.4.2" 371 | pubspec_parse: 372 | dependency: transitive 373 | description: 374 | name: pubspec_parse 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "0.1.5" 378 | quiver: 379 | dependency: transitive 380 | description: 381 | name: quiver 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "2.0.3" 385 | shelf: 386 | dependency: transitive 387 | description: 388 | name: shelf 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "0.7.5" 392 | shelf_web_socket: 393 | dependency: transitive 394 | description: 395 | name: shelf_web_socket 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "0.2.3" 399 | sky_engine: 400 | dependency: transitive 401 | description: flutter 402 | source: sdk 403 | version: "0.0.99" 404 | source_gen: 405 | dependency: transitive 406 | description: 407 | name: source_gen 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "0.9.4+3" 411 | source_span: 412 | dependency: transitive 413 | description: 414 | name: source_span 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "1.5.5" 418 | stack_trace: 419 | dependency: transitive 420 | description: 421 | name: stack_trace 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "1.9.3" 425 | stream_channel: 426 | dependency: transitive 427 | description: 428 | name: stream_channel 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "2.0.0" 432 | stream_transform: 433 | dependency: transitive 434 | description: 435 | name: stream_transform 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "0.0.19" 439 | string_scanner: 440 | dependency: transitive 441 | description: 442 | name: string_scanner 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "1.0.4" 446 | term_glyph: 447 | dependency: transitive 448 | description: 449 | name: term_glyph 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "1.1.0" 453 | test_api: 454 | dependency: transitive 455 | description: 456 | name: test_api 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "0.2.5" 460 | timing: 461 | dependency: transitive 462 | description: 463 | name: timing 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "0.1.1+2" 467 | typed_data: 468 | dependency: transitive 469 | description: 470 | name: typed_data 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.1.6" 474 | vector_math: 475 | dependency: transitive 476 | description: 477 | name: vector_math 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "2.0.8" 481 | watcher: 482 | dependency: transitive 483 | description: 484 | name: watcher 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "0.9.7+12" 488 | web_socket_channel: 489 | dependency: transitive 490 | description: 491 | name: web_socket_channel 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "1.0.15" 495 | yaml: 496 | dependency: transitive 497 | description: 498 | name: yaml 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "2.1.16" 502 | sdks: 503 | dart: ">=2.3.0 <3.0.0" 504 | flutter: ">=1.7.8+hotfix.3 <2.0.0" 505 | -------------------------------------------------------------------------------- /assets/animations/AnimatedTabBarIndicator.flr: -------------------------------------------------------------------------------- 1 | { 2 | "version": 21, 3 | "artboards": [ 4 | { 5 | "name": "Artboard", 6 | "translation": [ 7 | -1, 8 | 0 9 | ], 10 | "width": 661, 11 | "height": 132, 12 | "origin": [ 13 | 0, 14 | 0 15 | ], 16 | "clipContents": true, 17 | "color": [ 18 | 0.364705890417099, 19 | 0.364705890417099, 20 | 0.364705890417099, 21 | 1 22 | ], 23 | "nodes": [ 24 | { 25 | "name": "Ellipse", 26 | "translation": [ 27 | 743.4998168945312, 28 | 67.99998474121094 29 | ], 30 | "rotation": 0, 31 | "scale": [ 32 | 1, 33 | 1 34 | ], 35 | "opacity": 1, 36 | "isCollapsed": false, 37 | "clips": [], 38 | "isVisible": true, 39 | "blendMode": 3, 40 | "drawOrder": 1, 41 | "type": "shape" 42 | }, 43 | { 44 | "name": "Ellipse Path", 45 | "parent": 0, 46 | "translation": [ 47 | 0, 48 | 0 49 | ], 50 | "rotation": 0, 51 | "scale": [ 52 | 1, 53 | 1 54 | ], 55 | "opacity": 1, 56 | "isCollapsed": false, 57 | "clips": [], 58 | "width": 100, 59 | "height": 100, 60 | "type": "ellipse" 61 | }, 62 | { 63 | "name": "Rectangle", 64 | "translation": [ 65 | 1094.9970703125, 66 | 67.99999237060547 67 | ], 68 | "rotation": 0, 69 | "scale": [ 70 | 1, 71 | 0.42424875497817993 72 | ], 73 | "opacity": 1, 74 | "isCollapsed": false, 75 | "clips": [], 76 | "isVisible": true, 77 | "blendMode": 3, 78 | "drawOrder": 2, 79 | "type": "shape" 80 | }, 81 | { 82 | "name": "Rectangle Path", 83 | "parent": 2, 84 | "translation": [ 85 | 0, 86 | 0 87 | ], 88 | "rotation": 0, 89 | "scale": [ 90 | 1, 91 | 1 92 | ], 93 | "opacity": 1, 94 | "isCollapsed": false, 95 | "clips": [], 96 | "width": 501, 97 | "height": 100, 98 | "cornerRadius": 25, 99 | "type": "rectangle" 100 | }, 101 | { 102 | "name": "Rectangle", 103 | "translation": [ 104 | 405.97222900390625, 105 | 67.99999237060547 106 | ], 107 | "rotation": 0, 108 | "scale": [ 109 | 1, 110 | 0.42424875497817993 111 | ], 112 | "opacity": 1, 113 | "isCollapsed": false, 114 | "clips": [], 115 | "isVisible": true, 116 | "blendMode": 3, 117 | "drawOrder": 4, 118 | "type": "shape" 119 | }, 120 | { 121 | "name": "Rectangle Path", 122 | "parent": 4, 123 | "translation": [ 124 | 0, 125 | 0 126 | ], 127 | "rotation": 0, 128 | "scale": [ 129 | 1, 130 | 1 131 | ], 132 | "opacity": 1, 133 | "isCollapsed": false, 134 | "clips": [], 135 | "width": 501, 136 | "height": 100, 137 | "cornerRadius": 25, 138 | "type": "rectangle" 139 | }, 140 | { 141 | "name": "Ellipse", 142 | "translation": [ 143 | 54.47418212890625, 144 | 67.99998474121094 145 | ], 146 | "rotation": 0, 147 | "scale": [ 148 | 1, 149 | 1 150 | ], 151 | "opacity": 1, 152 | "isCollapsed": false, 153 | "clips": [], 154 | "isVisible": true, 155 | "blendMode": 3, 156 | "drawOrder": 3, 157 | "type": "shape" 158 | }, 159 | { 160 | "name": "Ellipse Path", 161 | "parent": 6, 162 | "translation": [ 163 | 0, 164 | 0 165 | ], 166 | "rotation": 0, 167 | "scale": [ 168 | 1, 169 | 1 170 | ], 171 | "opacity": 1, 172 | "isCollapsed": false, 173 | "clips": [], 174 | "width": 100, 175 | "height": 100, 176 | "type": "ellipse" 177 | }, 178 | { 179 | "name": "Rectangle", 180 | "translation": [ 181 | 334.6266784667969, 182 | 68.72723388671875 183 | ], 184 | "rotation": 0, 185 | "scale": [ 186 | 0.9945446848869324, 187 | 0.7790884971618652 188 | ], 189 | "opacity": 1, 190 | "isCollapsed": false, 191 | "clips": [ 192 | 6, 193 | 4, 194 | 0, 195 | 2 196 | ], 197 | "isVisible": true, 198 | "blendMode": 3, 199 | "drawOrder": 5, 200 | "type": "shape" 201 | }, 202 | { 203 | "name": "Color", 204 | "parent": 8, 205 | "opacity": 1, 206 | "color": [ 207 | 1, 208 | 0.49803921580314636, 209 | 0.364705890417099, 210 | 1 211 | ], 212 | "fillRule": 1, 213 | "type": "colorFill" 214 | }, 215 | { 216 | "name": "Rectangle Path", 217 | "parent": 8, 218 | "translation": [ 219 | 0, 220 | 0 221 | ], 222 | "rotation": 0, 223 | "scale": [ 224 | 1.0099999904632568, 225 | 1 226 | ], 227 | "opacity": 1, 228 | "isCollapsed": false, 229 | "clips": [], 230 | "bones": [], 231 | "isVisible": true, 232 | "isClosed": true, 233 | "points": [ 234 | { 235 | "pointType": 2, 236 | "translation": [ 237 | -333, 238 | -0.8695602416992188 239 | ], 240 | "in": [ 241 | -333, 242 | -0.8695602416992188 243 | ], 244 | "out": [ 245 | -334.06964111328125, 246 | -11.393723487854004 247 | ] 248 | }, 249 | { 250 | "pointType": 2, 251 | "translation": [ 252 | -328.1053466796875, 253 | -32.0865592956543 254 | ], 255 | "in": [ 256 | -331.9374084472656, 257 | -23.56943702697754 258 | ], 259 | "out": [ 260 | -325.9219970703125, 261 | -36.939292907714844 262 | ] 263 | }, 264 | { 265 | "pointType": 2, 266 | "translation": [ 267 | -321.0496826171875, 268 | -45.466278076171875 269 | ], 270 | "in": [ 271 | -324.256591796875, 272 | -41.2958869934082 273 | ], 274 | "out": [ 275 | -316.3528747558594, 276 | -51.57426452636719 277 | ] 278 | }, 279 | { 280 | "pointType": 2, 281 | "translation": [ 282 | -305.5497741699219, 283 | -59.719730377197266 284 | ], 285 | "in": [ 286 | -312.019287109375, 287 | -55.498992919921875 288 | ], 289 | "out": [ 290 | -294.8940124511719, 291 | -66.67147064208984 292 | ] 293 | }, 294 | { 295 | "pointType": 2, 296 | "translation": [ 297 | -265.0001220703125, 298 | -68.9906997680664 299 | ], 300 | "in": [ 301 | -278.6601867675781, 302 | -68.96636199951172 303 | ], 304 | "out": [ 305 | -265.0001220703125, 306 | -68.9906997680664 307 | ] 308 | }, 309 | { 310 | "pointType": 2, 311 | "translation": [ 312 | 254.03611755371094, 313 | -69.91536712646484 314 | ], 315 | "in": [ 316 | 254.03611755371094, 317 | -69.91536712646484 318 | ], 319 | "out": [ 320 | 265.6441345214844, 321 | -69.93604278564453 322 | ] 323 | }, 324 | { 325 | "pointType": 2, 326 | "translation": [ 327 | 287.405517578125, 328 | -64.191162109375 329 | ], 330 | "in": [ 331 | 277.8794860839844, 332 | -69.30217742919922 333 | ], 334 | "out": [ 335 | 297.04107666015625, 336 | -59.021270751953125 337 | ] 338 | }, 339 | { 340 | "pointType": 2, 341 | "translation": [ 342 | 311.6527099609375, 343 | -42.38492965698242 344 | ], 345 | "in": [ 346 | 305.55596923828125, 347 | -51.38991928100586 348 | ], 349 | "out": [ 350 | 319.0289611816406, 351 | -31.490516662597656 352 | ] 353 | }, 354 | { 355 | "pointType": 2, 356 | "translation": [ 357 | 322.90716552734375, 358 | -3.353529214859009 359 | ], 360 | "in": [ 361 | 323.0020446777344, 362 | -17.558753967285156 363 | ], 364 | "out": [ 365 | 322.9154357910156, 366 | -4.669661045074463 367 | ] 368 | }, 369 | { 370 | "pointType": 2, 371 | "translation": [ 372 | 323.1973876953125, 373 | -0.297172874212265 374 | ], 375 | "in": [ 376 | 323.3511047363281, 377 | -0.6731545329093933 378 | ], 379 | "out": [ 380 | 323.1575622558594, 381 | 5.69638204574585 382 | ] 383 | }, 384 | { 385 | "pointType": 2, 386 | "translation": [ 387 | 321.4389953613281, 388 | 16.30552864074707 389 | ], 390 | "in": [ 391 | 322.9320068359375, 392 | 10.76126480102539 393 | ], 394 | "out": [ 395 | 318.500732421875, 396 | 27.216840744018555 397 | ] 398 | }, 399 | { 400 | "pointType": 2, 401 | "translation": [ 402 | 306.3494873046875, 403 | 47.77927780151367 404 | ], 405 | "in": [ 406 | 313.8176574707031, 407 | 39.704368591308594 408 | ], 409 | "out": [ 410 | 300.52227783203125, 411 | 54.0800895690918 412 | ] 413 | }, 414 | { 415 | "pointType": 2, 416 | "translation": [ 417 | 285.1513366699219, 418 | 63.08213424682617 419 | ], 420 | "in": [ 421 | 292.94744873046875, 422 | 59.296180725097656 423 | ], 424 | "out": [ 425 | 276.2043762207031, 426 | 67.42652893066406 427 | ] 428 | }, 429 | { 430 | "pointType": 2, 431 | "translation": [ 432 | 253.12423706054688, 433 | 66.93765258789062 434 | ], 435 | "in": [ 436 | 263.6858825683594, 437 | 66.8811264038086 438 | ], 439 | "out": [ 440 | 253.12423706054688, 441 | 66.93765258789062 442 | ] 443 | }, 444 | { 445 | "pointType": 2, 446 | "translation": [ 447 | -265.0009765625, 448 | 69.71044921875 449 | ], 450 | "in": [ 451 | -265.0009765625, 452 | 69.71044921875 453 | ], 454 | "out": [ 455 | -279.1676940917969, 456 | 69.78626251220703 457 | ] 458 | }, 459 | { 460 | "pointType": 2, 461 | "translation": [ 462 | -303.05792236328125, 463 | 58.96293640136719 464 | ], 465 | "in": [ 466 | -292.16748046875, 467 | 66.316650390625 468 | ], 469 | "out": [ 470 | -311.6289978027344, 471 | 55.08586120605469 472 | ] 473 | }, 474 | { 475 | "pointType": 2, 476 | "translation": [ 477 | -323.5897521972656, 478 | 39.471134185791016 479 | ], 480 | "in": [ 481 | -318.5741882324219, 482 | 47.4459228515625 483 | ], 484 | "out": [ 485 | -326.3711242675781, 486 | 35.04866409301758 487 | ] 488 | }, 489 | { 490 | "pointType": 2, 491 | "translation": [ 492 | -330.34722900390625, 493 | 26.001007080078125 494 | ], 495 | "in": [ 496 | -328.6402282714844, 497 | 31.0388126373291 498 | ], 499 | "out": [ 500 | -332.661865234375, 501 | 19.170026779174805 502 | ] 503 | }, 504 | { 505 | "pointType": 2, 506 | "translation": [ 507 | -333, 508 | 2.0743484497070312 509 | ], 510 | "in": [ 511 | -333, 512 | 9.699225425720215 513 | ], 514 | "out": [ 515 | -333.15289306640625, 516 | 2.0743494033813477 517 | ] 518 | } 519 | ], 520 | "type": "path" 521 | }, 522 | { 523 | "name": "Path", 524 | "parent": 8, 525 | "translation": [ 526 | 0, 527 | 0 528 | ], 529 | "rotation": 0, 530 | "scale": [ 531 | 1, 532 | 1 533 | ], 534 | "opacity": 1, 535 | "isCollapsed": false, 536 | "clips": [], 537 | "bones": [], 538 | "isVisible": true, 539 | "isClosed": false, 540 | "points": [ 541 | { 542 | "pointType": 0, 543 | "translation": [ 544 | -331.259521484375, 545 | -2.889981269836426 546 | ], 547 | "radius": 0 548 | } 549 | ], 550 | "type": "path" 551 | }, 552 | { 553 | "name": "Path", 554 | "parent": 8, 555 | "translation": [ 556 | 0, 557 | 0 558 | ], 559 | "rotation": 0, 560 | "scale": [ 561 | 1, 562 | 1 563 | ], 564 | "opacity": 1, 565 | "isCollapsed": false, 566 | "clips": [], 567 | "bones": [], 568 | "isVisible": true, 569 | "isClosed": false, 570 | "points": [ 571 | { 572 | "pointType": 0, 573 | "translation": [ 574 | 144.72125244140625, 575 | 152.06991577148438 576 | ], 577 | "radius": 0 578 | } 579 | ], 580 | "type": "path" 581 | } 582 | ], 583 | "animations": [ 584 | { 585 | "name": "Untitled", 586 | "fps": 60, 587 | "duration": 0.9833333333333333, 588 | "isLooping": true, 589 | "keyed": [ 590 | { 591 | "component": 0, 592 | "posX": [ 593 | [ 594 | { 595 | "time": 0, 596 | "interpolatorType": 1, 597 | "value": 53.49981689453125 598 | }, 599 | { 600 | "time": 0.9833333333333333, 601 | "interpolatorType": 1, 602 | "value": 743.4998168945312 603 | } 604 | ] 605 | ] 606 | }, 607 | { 608 | "component": 2, 609 | "posX": [ 610 | [ 611 | { 612 | "time": 0, 613 | "interpolatorType": 1, 614 | "value": 404.9970703125 615 | }, 616 | { 617 | "time": 0.9833333333333333, 618 | "interpolatorType": 1, 619 | "value": 1094.9970703125 620 | } 621 | ] 622 | ] 623 | }, 624 | { 625 | "component": 4, 626 | "posX": [ 627 | [ 628 | { 629 | "time": 0, 630 | "interpolatorType": 1, 631 | "value": -284.02777099609375 632 | }, 633 | { 634 | "time": 0.9833333333333333, 635 | "interpolatorType": 1, 636 | "value": 405.97222900390625 637 | } 638 | ] 639 | ] 640 | }, 641 | { 642 | "component": 6, 643 | "posX": [ 644 | [ 645 | { 646 | "time": 0, 647 | "interpolatorType": 1, 648 | "value": -635.5258178710938 649 | }, 650 | { 651 | "time": 0.9833333333333333, 652 | "interpolatorType": 1, 653 | "value": 54.47418212890625 654 | } 655 | ] 656 | ] 657 | } 658 | ], 659 | "animationStart": 0, 660 | "animationEnd": 0.9833333333333333, 661 | "type": "animation" 662 | } 663 | ], 664 | "type": "artboard" 665 | } 666 | ] 667 | } -------------------------------------------------------------------------------- /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 | 1602A96DF7D09EE4210E85EE /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = EA14E0BC9ACC0B83BE9A473A /* libPods-Runner.a */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 41F971C123002DBB00F879E5 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 41F971C023002DBB00F879E5 /* GoogleService-Info.plist */; }; 16 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 17 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 18 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 19 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 20 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 21 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 22 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 23 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXCopyFilesBuildPhase section */ 27 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 28 | isa = PBXCopyFilesBuildPhase; 29 | buildActionMask = 2147483647; 30 | dstPath = ""; 31 | dstSubfolderSpec = 10; 32 | files = ( 33 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 34 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 35 | ); 36 | name = "Embed Frameworks"; 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXCopyFilesBuildPhase section */ 40 | 41 | /* Begin PBXFileReference section */ 42 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 43 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 44 | 1E00BE027C0E18D828BCA15B /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 45 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 46 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 47 | 41F971C023002DBB00F879E5 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; 48 | 6FA0EFCC710309B9009C1F7F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 49 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 50 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 51 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 52 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 53 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 54 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 55 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 57 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 58 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 59 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 60 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | BECD36657FF359475F6D6845 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 62 | EA14E0BC9ACC0B83BE9A473A /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 71 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 72 | 1602A96DF7D09EE4210E85EE /* libPods-Runner.a in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | /* End PBXFrameworksBuildPhase section */ 77 | 78 | /* Begin PBXGroup section */ 79 | 890AA11BEEAD6B7AF4A13C61 /* Pods */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 6FA0EFCC710309B9009C1F7F /* Pods-Runner.debug.xcconfig */, 83 | 1E00BE027C0E18D828BCA15B /* Pods-Runner.release.xcconfig */, 84 | BECD36657FF359475F6D6845 /* Pods-Runner.profile.xcconfig */, 85 | ); 86 | path = Pods; 87 | sourceTree = ""; 88 | }; 89 | 9740EEB11CF90186004384FC /* Flutter */ = { 90 | isa = PBXGroup; 91 | children = ( 92 | 3B80C3931E831B6300D905FE /* App.framework */, 93 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 94 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 95 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 96 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 97 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 98 | ); 99 | name = Flutter; 100 | sourceTree = ""; 101 | }; 102 | 97C146E51CF9000F007C117D = { 103 | isa = PBXGroup; 104 | children = ( 105 | 9740EEB11CF90186004384FC /* Flutter */, 106 | 97C146F01CF9000F007C117D /* Runner */, 107 | 97C146EF1CF9000F007C117D /* Products */, 108 | 890AA11BEEAD6B7AF4A13C61 /* Pods */, 109 | D1C88F5CFA704D3036459E5F /* Frameworks */, 110 | ); 111 | sourceTree = ""; 112 | }; 113 | 97C146EF1CF9000F007C117D /* Products */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 97C146EE1CF9000F007C117D /* Runner.app */, 117 | ); 118 | name = Products; 119 | sourceTree = ""; 120 | }; 121 | 97C146F01CF9000F007C117D /* Runner */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 41F971C023002DBB00F879E5 /* GoogleService-Info.plist */, 125 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 126 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 127 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 128 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 129 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 130 | 97C147021CF9000F007C117D /* Info.plist */, 131 | 97C146F11CF9000F007C117D /* Supporting Files */, 132 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 133 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 134 | ); 135 | path = Runner; 136 | sourceTree = ""; 137 | }; 138 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 97C146F21CF9000F007C117D /* main.m */, 142 | ); 143 | name = "Supporting Files"; 144 | sourceTree = ""; 145 | }; 146 | D1C88F5CFA704D3036459E5F /* Frameworks */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | EA14E0BC9ACC0B83BE9A473A /* libPods-Runner.a */, 150 | ); 151 | name = Frameworks; 152 | sourceTree = ""; 153 | }; 154 | /* End PBXGroup section */ 155 | 156 | /* Begin PBXNativeTarget section */ 157 | 97C146ED1CF9000F007C117D /* Runner */ = { 158 | isa = PBXNativeTarget; 159 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 160 | buildPhases = ( 161 | 5E7EF5005987A84DBCAD3ABE /* [CP] Check Pods Manifest.lock */, 162 | 9740EEB61CF901F6004384FC /* Run Script */, 163 | 97C146EA1CF9000F007C117D /* Sources */, 164 | 97C146EB1CF9000F007C117D /* Frameworks */, 165 | 97C146EC1CF9000F007C117D /* Resources */, 166 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 167 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 168 | 90A6B00816520BB8802D66AF /* [CP] Embed Pods Frameworks */, 169 | D8E2D8FEF63447B1F7F21DC1 /* [CP] Copy Pods Resources */, 170 | ); 171 | buildRules = ( 172 | ); 173 | dependencies = ( 174 | ); 175 | name = Runner; 176 | productName = Runner; 177 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 178 | productType = "com.apple.product-type.application"; 179 | }; 180 | /* End PBXNativeTarget section */ 181 | 182 | /* Begin PBXProject section */ 183 | 97C146E61CF9000F007C117D /* Project object */ = { 184 | isa = PBXProject; 185 | attributes = { 186 | LastUpgradeCheck = 1020; 187 | ORGANIZATIONNAME = "The Chromium Authors"; 188 | TargetAttributes = { 189 | 97C146ED1CF9000F007C117D = { 190 | CreatedOnToolsVersion = 7.3.1; 191 | }; 192 | }; 193 | }; 194 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 195 | compatibilityVersion = "Xcode 3.2"; 196 | developmentRegion = en; 197 | hasScannedForEncodings = 0; 198 | knownRegions = ( 199 | en, 200 | Base, 201 | ); 202 | mainGroup = 97C146E51CF9000F007C117D; 203 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 204 | projectDirPath = ""; 205 | projectRoot = ""; 206 | targets = ( 207 | 97C146ED1CF9000F007C117D /* Runner */, 208 | ); 209 | }; 210 | /* End PBXProject section */ 211 | 212 | /* Begin PBXResourcesBuildPhase section */ 213 | 97C146EC1CF9000F007C117D /* Resources */ = { 214 | isa = PBXResourcesBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 218 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 219 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 220 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 221 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 222 | 41F971C123002DBB00F879E5 /* GoogleService-Info.plist in Resources */, 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | }; 226 | /* End PBXResourcesBuildPhase section */ 227 | 228 | /* Begin PBXShellScriptBuildPhase section */ 229 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 230 | isa = PBXShellScriptBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | ); 234 | inputPaths = ( 235 | ); 236 | name = "Thin Binary"; 237 | outputPaths = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 242 | }; 243 | 5E7EF5005987A84DBCAD3ABE /* [CP] Check Pods Manifest.lock */ = { 244 | isa = PBXShellScriptBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputFileListPaths = ( 249 | ); 250 | inputPaths = ( 251 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 252 | "${PODS_ROOT}/Manifest.lock", 253 | ); 254 | name = "[CP] Check Pods Manifest.lock"; 255 | outputFileListPaths = ( 256 | ); 257 | outputPaths = ( 258 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | shellPath = /bin/sh; 262 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 263 | showEnvVarsInLog = 0; 264 | }; 265 | 90A6B00816520BB8802D66AF /* [CP] Embed Pods Frameworks */ = { 266 | isa = PBXShellScriptBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | ); 270 | inputPaths = ( 271 | ); 272 | name = "[CP] Embed Pods Frameworks"; 273 | outputPaths = ( 274 | ); 275 | runOnlyForDeploymentPostprocessing = 0; 276 | shellPath = /bin/sh; 277 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 278 | showEnvVarsInLog = 0; 279 | }; 280 | 9740EEB61CF901F6004384FC /* Run Script */ = { 281 | isa = PBXShellScriptBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | ); 285 | inputPaths = ( 286 | ); 287 | name = "Run Script"; 288 | outputPaths = ( 289 | ); 290 | runOnlyForDeploymentPostprocessing = 0; 291 | shellPath = /bin/sh; 292 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 293 | }; 294 | D8E2D8FEF63447B1F7F21DC1 /* [CP] Copy Pods Resources */ = { 295 | isa = PBXShellScriptBuildPhase; 296 | buildActionMask = 2147483647; 297 | files = ( 298 | ); 299 | inputPaths = ( 300 | ); 301 | name = "[CP] Copy Pods Resources"; 302 | outputPaths = ( 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; 307 | showEnvVarsInLog = 0; 308 | }; 309 | /* End PBXShellScriptBuildPhase section */ 310 | 311 | /* Begin PBXSourcesBuildPhase section */ 312 | 97C146EA1CF9000F007C117D /* Sources */ = { 313 | isa = PBXSourcesBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 317 | 97C146F31CF9000F007C117D /* main.m in Sources */, 318 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 319 | ); 320 | runOnlyForDeploymentPostprocessing = 0; 321 | }; 322 | /* End PBXSourcesBuildPhase section */ 323 | 324 | /* Begin PBXVariantGroup section */ 325 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 326 | isa = PBXVariantGroup; 327 | children = ( 328 | 97C146FB1CF9000F007C117D /* Base */, 329 | ); 330 | name = Main.storyboard; 331 | sourceTree = ""; 332 | }; 333 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 334 | isa = PBXVariantGroup; 335 | children = ( 336 | 97C147001CF9000F007C117D /* Base */, 337 | ); 338 | name = LaunchScreen.storyboard; 339 | sourceTree = ""; 340 | }; 341 | /* End PBXVariantGroup section */ 342 | 343 | /* Begin XCBuildConfiguration section */ 344 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 345 | isa = XCBuildConfiguration; 346 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 347 | buildSettings = { 348 | ALWAYS_SEARCH_USER_PATHS = NO; 349 | CLANG_ANALYZER_NONNULL = YES; 350 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 351 | CLANG_CXX_LIBRARY = "libc++"; 352 | CLANG_ENABLE_MODULES = YES; 353 | CLANG_ENABLE_OBJC_ARC = YES; 354 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 355 | CLANG_WARN_BOOL_CONVERSION = YES; 356 | CLANG_WARN_COMMA = YES; 357 | CLANG_WARN_CONSTANT_CONVERSION = YES; 358 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 359 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 360 | CLANG_WARN_EMPTY_BODY = YES; 361 | CLANG_WARN_ENUM_CONVERSION = YES; 362 | CLANG_WARN_INFINITE_RECURSION = YES; 363 | CLANG_WARN_INT_CONVERSION = YES; 364 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 365 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 366 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 367 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 368 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 369 | CLANG_WARN_STRICT_PROTOTYPES = YES; 370 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 371 | CLANG_WARN_UNREACHABLE_CODE = YES; 372 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 373 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 374 | COPY_PHASE_STRIP = NO; 375 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 376 | ENABLE_NS_ASSERTIONS = NO; 377 | ENABLE_STRICT_OBJC_MSGSEND = YES; 378 | GCC_C_LANGUAGE_STANDARD = gnu99; 379 | GCC_NO_COMMON_BLOCKS = YES; 380 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 381 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 382 | GCC_WARN_UNDECLARED_SELECTOR = YES; 383 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 384 | GCC_WARN_UNUSED_FUNCTION = YES; 385 | GCC_WARN_UNUSED_VARIABLE = YES; 386 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 387 | MTL_ENABLE_DEBUG_INFO = NO; 388 | SDKROOT = iphoneos; 389 | TARGETED_DEVICE_FAMILY = "1,2"; 390 | VALIDATE_PRODUCT = YES; 391 | }; 392 | name = Profile; 393 | }; 394 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 395 | isa = XCBuildConfiguration; 396 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 397 | buildSettings = { 398 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 399 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 400 | DEVELOPMENT_TEAM = S8QB4VV633; 401 | ENABLE_BITCODE = NO; 402 | FRAMEWORK_SEARCH_PATHS = ( 403 | "$(inherited)", 404 | "$(PROJECT_DIR)/Flutter", 405 | ); 406 | INFOPLIST_FILE = Runner/Info.plist; 407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 408 | LIBRARY_SEARCH_PATHS = ( 409 | "$(inherited)", 410 | "$(PROJECT_DIR)/Flutter", 411 | ); 412 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shoptronics; 413 | PRODUCT_NAME = "$(TARGET_NAME)"; 414 | VERSIONING_SYSTEM = "apple-generic"; 415 | }; 416 | name = Profile; 417 | }; 418 | 97C147031CF9000F007C117D /* Debug */ = { 419 | isa = XCBuildConfiguration; 420 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 421 | buildSettings = { 422 | ALWAYS_SEARCH_USER_PATHS = NO; 423 | CLANG_ANALYZER_NONNULL = YES; 424 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 425 | CLANG_CXX_LIBRARY = "libc++"; 426 | CLANG_ENABLE_MODULES = YES; 427 | CLANG_ENABLE_OBJC_ARC = YES; 428 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 429 | CLANG_WARN_BOOL_CONVERSION = YES; 430 | CLANG_WARN_COMMA = YES; 431 | CLANG_WARN_CONSTANT_CONVERSION = YES; 432 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 433 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 434 | CLANG_WARN_EMPTY_BODY = YES; 435 | CLANG_WARN_ENUM_CONVERSION = YES; 436 | CLANG_WARN_INFINITE_RECURSION = YES; 437 | CLANG_WARN_INT_CONVERSION = YES; 438 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 439 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 440 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 441 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 442 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 443 | CLANG_WARN_STRICT_PROTOTYPES = YES; 444 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 445 | CLANG_WARN_UNREACHABLE_CODE = YES; 446 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 447 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 448 | COPY_PHASE_STRIP = NO; 449 | DEBUG_INFORMATION_FORMAT = dwarf; 450 | ENABLE_STRICT_OBJC_MSGSEND = YES; 451 | ENABLE_TESTABILITY = YES; 452 | GCC_C_LANGUAGE_STANDARD = gnu99; 453 | GCC_DYNAMIC_NO_PIC = NO; 454 | GCC_NO_COMMON_BLOCKS = YES; 455 | GCC_OPTIMIZATION_LEVEL = 0; 456 | GCC_PREPROCESSOR_DEFINITIONS = ( 457 | "DEBUG=1", 458 | "$(inherited)", 459 | ); 460 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 461 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 462 | GCC_WARN_UNDECLARED_SELECTOR = YES; 463 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 464 | GCC_WARN_UNUSED_FUNCTION = YES; 465 | GCC_WARN_UNUSED_VARIABLE = YES; 466 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 467 | MTL_ENABLE_DEBUG_INFO = YES; 468 | ONLY_ACTIVE_ARCH = YES; 469 | SDKROOT = iphoneos; 470 | TARGETED_DEVICE_FAMILY = "1,2"; 471 | }; 472 | name = Debug; 473 | }; 474 | 97C147041CF9000F007C117D /* Release */ = { 475 | isa = XCBuildConfiguration; 476 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 477 | buildSettings = { 478 | ALWAYS_SEARCH_USER_PATHS = NO; 479 | CLANG_ANALYZER_NONNULL = YES; 480 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 481 | CLANG_CXX_LIBRARY = "libc++"; 482 | CLANG_ENABLE_MODULES = YES; 483 | CLANG_ENABLE_OBJC_ARC = YES; 484 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 485 | CLANG_WARN_BOOL_CONVERSION = YES; 486 | CLANG_WARN_COMMA = YES; 487 | CLANG_WARN_CONSTANT_CONVERSION = YES; 488 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 489 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 490 | CLANG_WARN_EMPTY_BODY = YES; 491 | CLANG_WARN_ENUM_CONVERSION = YES; 492 | CLANG_WARN_INFINITE_RECURSION = YES; 493 | CLANG_WARN_INT_CONVERSION = YES; 494 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 495 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 496 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 497 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 498 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 499 | CLANG_WARN_STRICT_PROTOTYPES = YES; 500 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 501 | CLANG_WARN_UNREACHABLE_CODE = YES; 502 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 503 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 504 | COPY_PHASE_STRIP = NO; 505 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 506 | ENABLE_NS_ASSERTIONS = NO; 507 | ENABLE_STRICT_OBJC_MSGSEND = YES; 508 | GCC_C_LANGUAGE_STANDARD = gnu99; 509 | GCC_NO_COMMON_BLOCKS = YES; 510 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 511 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 512 | GCC_WARN_UNDECLARED_SELECTOR = YES; 513 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 514 | GCC_WARN_UNUSED_FUNCTION = YES; 515 | GCC_WARN_UNUSED_VARIABLE = YES; 516 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 517 | MTL_ENABLE_DEBUG_INFO = NO; 518 | SDKROOT = iphoneos; 519 | TARGETED_DEVICE_FAMILY = "1,2"; 520 | VALIDATE_PRODUCT = YES; 521 | }; 522 | name = Release; 523 | }; 524 | 97C147061CF9000F007C117D /* Debug */ = { 525 | isa = XCBuildConfiguration; 526 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 527 | buildSettings = { 528 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 529 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 530 | ENABLE_BITCODE = NO; 531 | FRAMEWORK_SEARCH_PATHS = ( 532 | "$(inherited)", 533 | "$(PROJECT_DIR)/Flutter", 534 | ); 535 | INFOPLIST_FILE = Runner/Info.plist; 536 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 537 | LIBRARY_SEARCH_PATHS = ( 538 | "$(inherited)", 539 | "$(PROJECT_DIR)/Flutter", 540 | ); 541 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shoptronics; 542 | PRODUCT_NAME = "$(TARGET_NAME)"; 543 | VERSIONING_SYSTEM = "apple-generic"; 544 | }; 545 | name = Debug; 546 | }; 547 | 97C147071CF9000F007C117D /* Release */ = { 548 | isa = XCBuildConfiguration; 549 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 550 | buildSettings = { 551 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 552 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 553 | ENABLE_BITCODE = NO; 554 | FRAMEWORK_SEARCH_PATHS = ( 555 | "$(inherited)", 556 | "$(PROJECT_DIR)/Flutter", 557 | ); 558 | INFOPLIST_FILE = Runner/Info.plist; 559 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 560 | LIBRARY_SEARCH_PATHS = ( 561 | "$(inherited)", 562 | "$(PROJECT_DIR)/Flutter", 563 | ); 564 | PRODUCT_BUNDLE_IDENTIFIER = com.example.shoptronics; 565 | PRODUCT_NAME = "$(TARGET_NAME)"; 566 | VERSIONING_SYSTEM = "apple-generic"; 567 | }; 568 | name = Release; 569 | }; 570 | /* End XCBuildConfiguration section */ 571 | 572 | /* Begin XCConfigurationList section */ 573 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 574 | isa = XCConfigurationList; 575 | buildConfigurations = ( 576 | 97C147031CF9000F007C117D /* Debug */, 577 | 97C147041CF9000F007C117D /* Release */, 578 | 249021D3217E4FDB00AE95B9 /* Profile */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 97C147061CF9000F007C117D /* Debug */, 587 | 97C147071CF9000F007C117D /* Release */, 588 | 249021D4217E4FDB00AE95B9 /* Profile */, 589 | ); 590 | defaultConfigurationIsVisible = 0; 591 | defaultConfigurationName = Release; 592 | }; 593 | /* End XCConfigurationList section */ 594 | }; 595 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 596 | } 597 | --------------------------------------------------------------------------------