├── ios ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner │ ├── Runner-Bridging-Header.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 │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist └── .gitignore ├── 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 │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ ├── values │ │ │ │ │ └── styles.xml │ │ │ │ └── values-night │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── clean_architecture │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── lib ├── feature │ └── home │ │ ├── binding.dart │ │ ├── view │ │ └── HomePage.dart │ │ ├── controller │ │ └── HomeController.dart │ │ └── model │ │ ├── BloodFinderResources.dart │ │ └── BloodFinder.dart ├── core │ ├── database │ │ ├── entity │ │ │ └── person.dart │ │ ├── dao │ │ │ └── person_dao.dart │ │ ├── database.dart │ │ └── database.g.dart │ └── network │ │ └── rest_client.dart ├── base │ └── BaseController.dart └── main.dart ├── .metadata ├── .gitignore ├── test └── widget_test.dart ├── README.md ├── pubspec.yaml └── pubspec.lock /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shaon2016/Flutter-GetX-Clean-Architecture/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/shaon2016/Flutter-GetX-Clean-Architecture/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/clean_architecture/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.clean_architecture 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip 7 | -------------------------------------------------------------------------------- /lib/feature/home/binding.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/feature/home/controller/HomeController.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class HomeBinding extends Bindings { 5 | @override 6 | void dependencies() { 7 | Get.lazyPut(() => HomeController()); 8 | } 9 | } -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /lib/core/database/entity/person.dart: -------------------------------------------------------------------------------- 1 | import 'package:floor/floor.dart'; 2 | import 'package:flutter/cupertino.dart'; 3 | 4 | @entity 5 | class Person { 6 | // @PrimaryKey(autoGenerate: true) 7 | @PrimaryKey() 8 | final int id ; 9 | 10 | final String name ; 11 | 12 | Person({required this.id, required this.name}); 13 | } 14 | -------------------------------------------------------------------------------- /lib/base/BaseController.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/core/network/rest_client.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class BaseController extends GetxController { 5 | late RestClient restClient; 6 | 7 | @override 8 | onInit() { 9 | super.onInit(); 10 | restClient = Get.find(); 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /.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: 5bedb7b1d5698ce2c1c67aaf9afae7b3948b172a 8 | channel: beta 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /lib/core/database/dao/person_dao.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/core/database/entity/person.dart'; 2 | import 'package:floor/floor.dart'; 3 | 4 | @dao 5 | abstract class PersonDao { 6 | @Query('SELECT * FROM Person') 7 | Future> findAllPersons(); 8 | 9 | @Query('SELECT * FROM Person WHERE id is not null and id = :id') 10 | Future findPersonById(int id); 11 | 12 | @insert 13 | Future insertPerson(Person person); 14 | } -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/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 | -------------------------------------------------------------------------------- /lib/core/database/database.dart: -------------------------------------------------------------------------------- 1 | // required package imports 2 | import 'dart:async'; 3 | import 'package:sqflite/sqflite.dart' as sqflite; 4 | import 'package:floor/floor.dart'; 5 | 6 | import 'package:clean_architecture/core/database/dao/person_dao.dart'; 7 | import 'package:clean_architecture/core/database/entity/person.dart'; 8 | 9 | part 'database.g.dart'; 10 | 11 | @Database(version: 1, entities: [Person]) 12 | abstract class AppDb extends FloorDatabase { 13 | PersonDao get personDao; 14 | 15 | static Future init() async { 16 | AppDb instance = await $FloorAppDb.databaseBuilder("db_name").build(); 17 | return instance; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/ephemeral/ 22 | Flutter/app.flx 23 | Flutter/app.zip 24 | Flutter/flutter_assets/ 25 | Flutter/flutter_export_environment.sh 26 | ServiceDefinitions.json 27 | Runner/GeneratedPluginRegistrant.* 28 | 29 | # Exceptions to above rules. 30 | !default.mode1v3 31 | !default.mode2v3 32 | !default.pbxuser 33 | !default.perspectivev3 34 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:4.1.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | **/ios/Flutter/.last_build_id 26 | .dart_tool/ 27 | .flutter-plugins 28 | .flutter-plugins-dependencies 29 | .packages 30 | .pub-cache/ 31 | .pub/ 32 | /build/ 33 | 34 | # Web related 35 | lib/generated_plugin_registrant.dart 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/core/database/database.dart'; 2 | import 'package:clean_architecture/core/network/rest_client.dart'; 3 | import 'package:clean_architecture/feature/home/binding.dart'; 4 | import 'package:clean_architecture/feature/home/view/HomePage.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:get/get.dart'; 7 | 8 | void main() { 9 | initServices(); 10 | runApp(MyApp()); 11 | } 12 | 13 | initServices() async { 14 | await Get.putAsync(() => RestClient().init()); 15 | await Get.putAsync(() => AppDb.init()); 16 | } 17 | 18 | class MyApp extends StatelessWidget { 19 | @override 20 | Widget build(BuildContext context) { 21 | return GetMaterialApp( 22 | title: 'Flutter Clean Architecture Demo', 23 | initialRoute: HomePage.routeName, 24 | getPages: [ 25 | GetPage( 26 | name: HomePage.routeName, 27 | page: () => HomePage(), 28 | binding: HomeBinding(), 29 | ), 30 | ], 31 | ); 32 | } 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /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:clean_architecture/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /lib/feature/home/view/HomePage.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/feature/home/controller/HomeController.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get_state_manager/get_state_manager.dart'; 4 | 5 | class HomePage extends GetView { 6 | static final routeName = "/home"; 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return Scaffold( 11 | appBar: AppBar( 12 | title: Text("Clean Architecture"), 13 | ), 14 | body: controller.obx((state) => ListView.builder( 15 | controller: controller.scroll, 16 | itemBuilder: (ctx, index) { 17 | if (controller.isToLoadMore && 18 | controller.donors.length - 1 == index) 19 | return Center( 20 | child: CircularProgressIndicator(), 21 | ); 22 | return ListTile( 23 | title: Text(controller.donors[index].name), 24 | subtitle: Text(controller.donors[index].designation), 25 | ); 26 | 27 | }, 28 | itemCount: controller.donors.length, 29 | ))); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /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 | clean_architecture 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/feature/home/controller/HomeController.dart: -------------------------------------------------------------------------------- 1 | import 'package:clean_architecture/base/BaseController.dart'; 2 | import 'package:clean_architecture/core/network/rest_client.dart'; 3 | import 'package:clean_architecture/feature/home/model/BloodFinder.dart'; 4 | import 'package:dio/dio.dart' as d; 5 | import 'package:get/get.dart'; 6 | import 'package:get/get_rx/get_rx.dart'; 7 | 8 | class HomeController extends BaseController with StateMixin, ScrollMixin { 9 | final donors = [].obs; 10 | var page = 1; 11 | var isToLoadMore = true; 12 | 13 | @override 14 | onInit() { 15 | super.onInit(); 16 | 17 | loadData(); 18 | } 19 | 20 | loadData() async { 21 | final map = Map(); 22 | map['page'] = page; 23 | 24 | try { 25 | final result = await restClient.request("blood-finder", Method.GET, map); 26 | 27 | if (result != null) { 28 | if (result is d.Response) { 29 | var data = BloodDonor.fromJson(result.data).data; 30 | if (data != null) { 31 | donors.addAll(data.data); 32 | isToLoadMore = true; 33 | change(donors, status: RxStatus.success()); 34 | } else { 35 | isToLoadMore = false; 36 | } 37 | } 38 | } else { 39 | isToLoadMore = false; 40 | } 41 | } on Exception catch (e) { 42 | Get.showSnackbar(GetBar( 43 | message: "$e", 44 | duration: Duration(milliseconds: 3000), 45 | )); 46 | } 47 | } 48 | 49 | @override 50 | Future onEndScroll() async { 51 | if (isToLoadMore) { 52 | page++; 53 | await loadData(); 54 | } 55 | print("onEngScroll: Called"); 56 | } 57 | 58 | @override 59 | Future onTopScroll() async { 60 | print("onTopScroll: Called"); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 30 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | defaultConfig { 36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 37 | applicationId "com.example.clean_architecture" 38 | minSdkVersion 16 39 | targetSdkVersion 30 40 | versionCode flutterVersionCode.toInteger() 41 | versionName flutterVersionName 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 59 | } 60 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 13 | 17 | 21 | 26 | 30 | 31 | 32 | 33 | 34 | 35 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /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/core/network/rest_client.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/foundation.dart'; 4 | import 'package:dio/dio.dart'; 5 | import 'package:get/get_state_manager/src/rx_flutter/rx_disposable.dart'; 6 | 7 | enum Method { POST, GET, PUT, DELETE, PATCH } 8 | 9 | const BASE_URL = "https://hris.sslwireless.com/api/v1/"; 10 | 11 | class RestClient extends GetxService { 12 | late Dio _dio; 13 | 14 | //this is for header 15 | static header() => { 16 | 'Content-Type': 'application/json', 17 | }; 18 | 19 | Future init() async { 20 | _dio = Dio(BaseOptions(baseUrl: BASE_URL, headers: header())); 21 | initInterceptors(); 22 | return this; 23 | } 24 | 25 | void initInterceptors() { 26 | _dio.interceptors.add(InterceptorsWrapper(onRequest: (options, handler) { 27 | print('REQUEST[${options.method}] => PATH: ${options.path} ' 28 | '=> Request Values: ${options.queryParameters}, => HEADERS: ${options.headers}'); 29 | return handler.next(options); 30 | }, onResponse: (response, handler) { 31 | print('RESPONSE[${response.statusCode}] => DATA: ${response.data}'); 32 | return handler.next(response); 33 | }, onError: (err, handler) { 34 | print('ERROR[${err.response?.statusCode}]'); 35 | return handler.next(err); 36 | })); 37 | } 38 | 39 | Future request( 40 | String url, Method method, Map? params) async { 41 | Response response; 42 | 43 | try { 44 | if (method == Method.POST) { 45 | response = await _dio.post(url, data: params); 46 | } else if (method == Method.DELETE) { 47 | response = await _dio.delete(url); 48 | } else if (method == Method.PATCH) { 49 | response = await _dio.patch(url); 50 | } else { 51 | response = await _dio.get( 52 | url, 53 | queryParameters: params, 54 | ); 55 | } 56 | 57 | if (response.statusCode == 200) { 58 | 59 | return response; 60 | } else if (response.statusCode == 401) { 61 | throw Exception("Unauthorized"); 62 | } else if (response.statusCode == 500) { 63 | throw Exception("Server Error"); 64 | } else { 65 | throw Exception("Something Went Wrong"); 66 | } 67 | } on SocketException catch(e) { 68 | throw Exception("No Internet Connection"); 69 | } on FormatException { 70 | throw Exception("Bad Response Format!"); 71 | } on DioError catch (e){ 72 | throw Exception(e); 73 | } catch (e) { 74 | throw Exception("Something Went Wrong"); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | In this project we implemented Database using flutter floor package, Networking using flutter Dio package and managed state using GetX package. 2 | 3 | Here is some of its view... 4 | 5 | # Initializing our services 6 | 7 | ``` 8 | void main() { 9 | initServices(); 10 | runApp(MyApp()); 11 | } 12 | 13 | initServices() async { 14 | await Get.putAsync(() => RestClient().init()); 15 | await Get.putAsync(() => AppDb.init()); 16 | } 17 | ``` 18 | 19 | # Networking 20 | 21 | Calling and handling errors 22 | 23 | ``` 24 | Future request( 25 | String url, Method method, Map? params) async { 26 | Response response; 27 | 28 | try { 29 | if (method == Method.POST) { 30 | response = await _dio.post(url, data: params); 31 | } else if (method == Method.DELETE) { 32 | response = await _dio.delete(url); 33 | } else if (method == Method.PATCH) { 34 | response = await _dio.patch(url); 35 | } else { 36 | response = await _dio.get( 37 | url, 38 | queryParameters: params, 39 | ); 40 | } 41 | 42 | if (response.statusCode == 200) { 43 | 44 | return response; 45 | } else if (response.statusCode == 401) { 46 | throw Exception("Unauthorized"); 47 | } else if (response.statusCode == 500) { 48 | throw Exception("Server Error"); 49 | } else { 50 | throw Exception("Something Went Wrong"); 51 | } 52 | } on SocketException catch(e) { 53 | throw Exception("No Internet Connection"); 54 | } on FormatException { 55 | throw Exception("Bad Response Format!"); 56 | } on DioError catch (e){ 57 | throw Exception(e); 58 | } catch (e) { 59 | throw Exception("Something Went Wrong"); 60 | } 61 | } 62 | ``` 63 | 64 | Calling from controller 65 | 66 | ``` 67 | loadData() async { 68 | final map = Map(); 69 | map['page'] = page; 70 | 71 | try { 72 | final result = await restClient.request("url", Method.GET, map); 73 | 74 | if (result != null) { 75 | if (result is d.Response) { 76 | var data = BloodDonor.fromJson(result.data).data; 77 | if (data != null) { 78 | donors.addAll(data.data); 79 | isToLoadMore = true; 80 | change(donors, status: RxStatus.success()); 81 | } else { 82 | isToLoadMore = false; 83 | } 84 | } 85 | } else { 86 | isToLoadMore = false; 87 | } 88 | } on Exception catch (e) { 89 | Get.showSnackbar(GetBar( 90 | message: "$e", 91 | duration: Duration(milliseconds: 3000), 92 | )); 93 | } 94 | } 95 | ``` 96 | 97 | # Database 98 | 99 | ``` 100 | @Database(version: 1, entities: [Person]) 101 | abstract class AppDb extends FloorDatabase { 102 | PersonDao get personDao; 103 | 104 | static Future init() async { 105 | AppDb instance = await $FloorAppDb.databaseBuilder("db_name").build(); 106 | return instance; 107 | } 108 | } 109 | ``` 110 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: clean_architecture 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.12.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | dio: ^4.0.0 27 | get: ^4.1.4 28 | floor: ^1.1.0 29 | 30 | # The following adds the Cupertino Icons font to your application. 31 | # Use with the CupertinoIcons class for iOS style icons. 32 | cupertino_icons: ^1.0.2 33 | 34 | dev_dependencies: 35 | flutter_test: 36 | sdk: flutter 37 | floor_generator: ^1.1.0 38 | build_runner: ^2.0.0 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 | # - images/a_dot_burr.jpeg 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 | -------------------------------------------------------------------------------- /lib/feature/home/model/BloodFinderResources.dart: -------------------------------------------------------------------------------- 1 | class BloodFinderResources { 2 | late int code; 3 | late List messages; 4 | late Data data; 5 | 6 | BloodFinderResources({required this.code, required this.messages, required this.data}); 7 | 8 | BloodFinderResources.fromJson(Map json) { 9 | code = json['code']; 10 | messages = json['messages'].cast(); 11 | data = (json['data'] != null ? new Data.fromJson(json['data']) : null)!; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['code'] = this.code; 17 | data['messages'] = this.messages; 18 | if (this.data != null) { 19 | data['data'] = this.data.toJson(); 20 | } 21 | return data; 22 | } 23 | } 24 | 25 | class Data { 26 | late List bloodGroups; 27 | late List companies; 28 | 29 | Data({required this.bloodGroups, required this.companies}); 30 | 31 | Data.fromJson(Map json) { 32 | if (json['blood_groups'] != null) { 33 | bloodGroups = []; 34 | json['blood_groups'].forEach((v) { 35 | bloodGroups.add(new BloodGroups.fromJson(v)); 36 | }); 37 | } 38 | if (json['companies'] != null) { 39 | companies = []; 40 | json['companies'].forEach((v) { 41 | companies.add(new Companies.fromJson(v)); 42 | }); 43 | } 44 | } 45 | 46 | Map toJson() { 47 | final Map data = new Map(); 48 | if (this.bloodGroups != null) { 49 | data['blood_groups'] = this.bloodGroups.map((v) => v.toJson()).toList(); 50 | } 51 | if (this.companies != null) { 52 | data['companies'] = this.companies.map((v) => v.toJson()).toList(); 53 | } 54 | return data; 55 | } 56 | } 57 | 58 | class BloodGroups { 59 | late String bloodGroup; 60 | 61 | BloodGroups({required this.bloodGroup}); 62 | 63 | BloodGroups.fromJson(Map json) { 64 | bloodGroup = json['blood_group']; 65 | } 66 | 67 | Map toJson() { 68 | final Map data = new Map(); 69 | data['blood_group'] = this.bloodGroup; 70 | return data; 71 | } 72 | } 73 | 74 | class Companies { 75 | late String companyName; 76 | late List departments; 77 | 78 | Companies({required this.companyName, required this.departments}); 79 | 80 | Companies.fromJson(Map json) { 81 | companyName = json['company_name']; 82 | if (json['departments'] != null) { 83 | departments = []; 84 | json['departments'].forEach((v) { 85 | departments.add(new Departments.fromJson(v)); 86 | }); 87 | } 88 | } 89 | 90 | Map toJson() { 91 | final Map data = new Map(); 92 | data['company_name'] = this.companyName; 93 | if (this.departments != null) { 94 | data['departments'] = this.departments.map((v) => v.toJson()).toList(); 95 | } 96 | return data; 97 | } 98 | } 99 | 100 | class Departments { 101 | late String departmentName; 102 | 103 | Departments({required this.departmentName}); 104 | 105 | Departments.fromJson(Map json) { 106 | departmentName = json['department_name']; 107 | } 108 | 109 | Map toJson() { 110 | final Map data = new Map(); 111 | data['department_name'] = this.departmentName; 112 | return data; 113 | } 114 | } -------------------------------------------------------------------------------- /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/feature/home/model/BloodFinder.dart: -------------------------------------------------------------------------------- 1 | class BloodDonor { 2 | late int code; 3 | late List messages; 4 | Data? data; 5 | 6 | BloodDonor({required this.code, required this.messages, this.data}); 7 | 8 | BloodDonor.fromJson(Map json) { 9 | code = json['code']; 10 | messages = json['messages'].cast(); 11 | data = json['data'] != null ? Data.fromJson(json['data']) : null; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['code'] = this.code; 17 | data['messages'] = this.messages; 18 | if (this.data != null) { 19 | data['data'] = this.data!.toJson(); 20 | } 21 | return data; 22 | } 23 | } 24 | 25 | class Data { 26 | late int total; 27 | late int perPage; 28 | late int currentPage; 29 | late int lastPage; 30 | late String nextPageUrl; 31 | late String? prevPageUrl; 32 | late int from; 33 | late int to; 34 | late List data; 35 | 36 | Data( 37 | {required this.total, 38 | required this.perPage, 39 | required this.currentPage, 40 | required this.lastPage, 41 | required this.nextPageUrl, 42 | required this.prevPageUrl, 43 | required this.from, 44 | required this.to, 45 | required this.data}); 46 | 47 | Data.fromJson(Map json) { 48 | total = json['total']; 49 | perPage = json['per_page']; 50 | currentPage = json['current_page']; 51 | lastPage = json['last_page']; 52 | nextPageUrl = json['next_page_url']; 53 | prevPageUrl = json['prev_page_url']; 54 | from = json['from']; 55 | to = json['to']; 56 | if (json['data'] != null) { 57 | data = []; 58 | json['data'].forEach((v) { 59 | data.add(new BloodDonors.fromJson(v)); 60 | }); 61 | } 62 | } 63 | 64 | Map toJson() { 65 | final Map data = new Map(); 66 | data['total'] = this.total; 67 | data['per_page'] = this.perPage; 68 | data['current_page'] = this.currentPage; 69 | data['last_page'] = this.lastPage; 70 | data['next_page_url'] = this.nextPageUrl; 71 | data['prev_page_url'] = this.prevPageUrl; 72 | data['from'] = this.from; 73 | data['to'] = this.to; 74 | if (this.data != null) { 75 | data['data'] = this.data.map((v) => v.toJson()).toList(); 76 | } 77 | return data; 78 | } 79 | } 80 | 81 | class BloodDonors { 82 | late int id; 83 | late String name; 84 | late String companyName; 85 | late String designation; 86 | late String empId; 87 | late String department; 88 | late String dateOfBirth; 89 | late int age; 90 | late String gender; 91 | late String bloodGroup; 92 | late String cellNo; 93 | late int status; 94 | 95 | BloodDonors( 96 | {required this.id, 97 | required this.name, 98 | required this.companyName, 99 | required this.designation, 100 | required this.empId, 101 | required this.department, 102 | required this.dateOfBirth, 103 | required this.age, 104 | required this.gender, 105 | required this.bloodGroup, 106 | required this.cellNo, 107 | required this.status}); 108 | 109 | BloodDonors.fromJson(Map json) { 110 | id = json['id']; 111 | name = json['name']; 112 | companyName = json['company_name']; 113 | designation = json['designation']; 114 | empId = json['emp_id']; 115 | department = json['department']; 116 | dateOfBirth = json['date_of_birth']; 117 | age = json['age']; 118 | gender = json['gender']; 119 | bloodGroup = json['blood_group']; 120 | cellNo = json['cell_no']; 121 | status = json['status']; 122 | } 123 | 124 | Map toJson() { 125 | final Map data = new Map(); 126 | data['id'] = this.id; 127 | data['name'] = this.name; 128 | data['company_name'] = this.companyName; 129 | data['designation'] = this.designation; 130 | data['emp_id'] = this.empId; 131 | data['department'] = this.department; 132 | data['date_of_birth'] = this.dateOfBirth; 133 | data['age'] = this.age; 134 | data['gender'] = this.gender; 135 | data['blood_group'] = this.bloodGroup; 136 | data['cell_no'] = this.cellNo; 137 | data['status'] = this.status; 138 | return data; 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /lib/core/database/database.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'database.dart'; 4 | 5 | // ************************************************************************** 6 | // FloorGenerator 7 | // ************************************************************************** 8 | 9 | class $FloorAppDb { 10 | /// Creates a database builder for a persistent database. 11 | /// Once a database is built, you should keep a reference to it and re-use it. 12 | static _$AppDbBuilder databaseBuilder(String name) => _$AppDbBuilder(name); 13 | 14 | /// Creates a database builder for an in memory database. 15 | /// Information stored in an in memory database disappears when the process is killed. 16 | /// Once a database is built, you should keep a reference to it and re-use it. 17 | static _$AppDbBuilder inMemoryDatabaseBuilder() => _$AppDbBuilder(null); 18 | } 19 | 20 | class _$AppDbBuilder { 21 | _$AppDbBuilder(this.name); 22 | 23 | final String? name; 24 | 25 | final List _migrations = []; 26 | 27 | Callback? _callback; 28 | 29 | /// Adds migrations to the builder. 30 | _$AppDbBuilder addMigrations(List migrations) { 31 | _migrations.addAll(migrations); 32 | return this; 33 | } 34 | 35 | /// Adds a database [Callback] to the builder. 36 | _$AppDbBuilder addCallback(Callback callback) { 37 | _callback = callback; 38 | return this; 39 | } 40 | 41 | /// Creates the database and initializes it. 42 | Future build() async { 43 | final path = name != null 44 | ? await sqfliteDatabaseFactory.getDatabasePath(name!) 45 | : ':memory:'; 46 | final database = _$AppDb(); 47 | database.database = await database.open( 48 | path, 49 | _migrations, 50 | _callback, 51 | ); 52 | return database; 53 | } 54 | } 55 | 56 | class _$AppDb extends AppDb { 57 | _$AppDb([StreamController? listener]) { 58 | changeListener = listener ?? StreamController.broadcast(); 59 | } 60 | 61 | PersonDao? _personDaoInstance; 62 | 63 | Future open(String path, List migrations, 64 | [Callback? callback]) async { 65 | final databaseOptions = sqflite.OpenDatabaseOptions( 66 | version: 1, 67 | onConfigure: (database) async { 68 | await database.execute('PRAGMA foreign_keys = ON'); 69 | await callback?.onConfigure?.call(database); 70 | }, 71 | onOpen: (database) async { 72 | await callback?.onOpen?.call(database); 73 | }, 74 | onUpgrade: (database, startVersion, endVersion) async { 75 | await MigrationAdapter.runMigrations( 76 | database, startVersion, endVersion, migrations); 77 | 78 | await callback?.onUpgrade?.call(database, startVersion, endVersion); 79 | }, 80 | onCreate: (database, version) async { 81 | await database.execute( 82 | 'CREATE TABLE IF NOT EXISTS `Person` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, PRIMARY KEY (`id`))'); 83 | 84 | await callback?.onCreate?.call(database, version); 85 | }, 86 | ); 87 | return sqfliteDatabaseFactory.openDatabase(path, options: databaseOptions); 88 | } 89 | 90 | @override 91 | PersonDao get personDao { 92 | return _personDaoInstance ??= _$PersonDao(database, changeListener); 93 | } 94 | } 95 | 96 | class _$PersonDao extends PersonDao { 97 | _$PersonDao(this.database, this.changeListener) 98 | : _queryAdapter = QueryAdapter(database), 99 | _personInsertionAdapter = InsertionAdapter( 100 | database, 101 | 'Person', 102 | (Person item) => 103 | {'id': item.id, 'name': item.name}); 104 | 105 | final sqflite.DatabaseExecutor database; 106 | 107 | final StreamController changeListener; 108 | 109 | final QueryAdapter _queryAdapter; 110 | 111 | final InsertionAdapter _personInsertionAdapter; 112 | 113 | @override 114 | Future> findAllPersons() async { 115 | return _queryAdapter.queryList('SELECT * FROM Person', 116 | mapper: (Map row) => 117 | Person(id: row['id'] as int, name: row['name'] as String)); 118 | } 119 | 120 | @override 121 | Future findPersonById(int id) async { 122 | return _queryAdapter.query( 123 | 'SELECT * FROM Person WHERE id is not null and id = ?1', 124 | mapper: (Map row) => 125 | Person(id: row['id'] as int, name: row['name'] as String), 126 | arguments: [id]); 127 | } 128 | 129 | @override 130 | Future insertPerson(Person person) async { 131 | await _personInsertionAdapter.insert(person, OnConflictStrategy.abort); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | _fe_analyzer_shared: 5 | dependency: transitive 6 | description: 7 | name: _fe_analyzer_shared 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "22.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "1.7.1" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "2.1.1" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.5.0" 32 | boolean_selector: 33 | dependency: transitive 34 | description: 35 | name: boolean_selector 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "2.1.0" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.0.2" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.0.0" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "3.0.0" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "2.0.3" 67 | build_runner: 68 | dependency: "direct dev" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "2.0.4" 74 | build_runner_core: 75 | dependency: transitive 76 | description: 77 | name: build_runner_core 78 | url: "https://pub.dartlang.org" 79 | source: hosted 80 | version: "7.0.0" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "5.1.0" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "8.0.6" 95 | characters: 96 | dependency: transitive 97 | description: 98 | name: characters 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.1.0" 102 | charcode: 103 | dependency: transitive 104 | description: 105 | name: charcode 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.2.0" 109 | checked_yaml: 110 | dependency: transitive 111 | description: 112 | name: checked_yaml 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "2.0.1" 116 | cli_util: 117 | dependency: transitive 118 | description: 119 | name: cli_util 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.3.0" 123 | clock: 124 | dependency: transitive 125 | description: 126 | name: clock 127 | url: "https://pub.dartlang.org" 128 | source: hosted 129 | version: "1.1.0" 130 | code_builder: 131 | dependency: transitive 132 | description: 133 | name: code_builder 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "4.0.0" 137 | collection: 138 | dependency: transitive 139 | description: 140 | name: collection 141 | url: "https://pub.dartlang.org" 142 | source: hosted 143 | version: "1.15.0" 144 | convert: 145 | dependency: transitive 146 | description: 147 | name: convert 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "3.0.0" 151 | crypto: 152 | dependency: transitive 153 | description: 154 | name: crypto 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "3.0.1" 158 | cupertino_icons: 159 | dependency: "direct main" 160 | description: 161 | name: cupertino_icons 162 | url: "https://pub.dartlang.org" 163 | source: hosted 164 | version: "1.0.3" 165 | dart_style: 166 | dependency: transitive 167 | description: 168 | name: dart_style 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "2.0.1" 172 | dio: 173 | dependency: "direct main" 174 | description: 175 | name: dio 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "4.0.0" 179 | fake_async: 180 | dependency: transitive 181 | description: 182 | name: fake_async 183 | url: "https://pub.dartlang.org" 184 | source: hosted 185 | version: "1.2.0" 186 | ffi: 187 | dependency: transitive 188 | description: 189 | name: ffi 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "1.1.2" 193 | file: 194 | dependency: transitive 195 | description: 196 | name: file 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "6.1.1" 200 | fixnum: 201 | dependency: transitive 202 | description: 203 | name: fixnum 204 | url: "https://pub.dartlang.org" 205 | source: hosted 206 | version: "1.0.0" 207 | floor: 208 | dependency: "direct main" 209 | description: 210 | name: floor 211 | url: "https://pub.dartlang.org" 212 | source: hosted 213 | version: "1.1.0" 214 | floor_annotation: 215 | dependency: transitive 216 | description: 217 | name: floor_annotation 218 | url: "https://pub.dartlang.org" 219 | source: hosted 220 | version: "1.0.0" 221 | floor_generator: 222 | dependency: "direct dev" 223 | description: 224 | name: floor_generator 225 | url: "https://pub.dartlang.org" 226 | source: hosted 227 | version: "1.1.0" 228 | flutter: 229 | dependency: "direct main" 230 | description: flutter 231 | source: sdk 232 | version: "0.0.0" 233 | flutter_test: 234 | dependency: "direct dev" 235 | description: flutter 236 | source: sdk 237 | version: "0.0.0" 238 | frontend_server_client: 239 | dependency: transitive 240 | description: 241 | name: frontend_server_client 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "2.1.0" 245 | get: 246 | dependency: "direct main" 247 | description: 248 | name: get 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "4.1.4" 252 | glob: 253 | dependency: transitive 254 | description: 255 | name: glob 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "2.0.1" 259 | graphs: 260 | dependency: transitive 261 | description: 262 | name: graphs 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "2.0.0" 266 | http_multi_server: 267 | dependency: transitive 268 | description: 269 | name: http_multi_server 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "3.0.1" 273 | http_parser: 274 | dependency: transitive 275 | description: 276 | name: http_parser 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "4.0.0" 280 | io: 281 | dependency: transitive 282 | description: 283 | name: io 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "1.0.0" 287 | js: 288 | dependency: transitive 289 | description: 290 | name: js 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "0.6.3" 294 | json_annotation: 295 | dependency: transitive 296 | description: 297 | name: json_annotation 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "4.0.1" 301 | logging: 302 | dependency: transitive 303 | description: 304 | name: logging 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "1.0.1" 308 | matcher: 309 | dependency: transitive 310 | description: 311 | name: matcher 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "0.12.10" 315 | meta: 316 | dependency: transitive 317 | description: 318 | name: meta 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "1.3.0" 322 | mime: 323 | dependency: transitive 324 | description: 325 | name: mime 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "1.0.0" 329 | package_config: 330 | dependency: transitive 331 | description: 332 | name: package_config 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "2.0.0" 336 | path: 337 | dependency: transitive 338 | description: 339 | name: path 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "1.8.0" 343 | pedantic: 344 | dependency: transitive 345 | description: 346 | name: pedantic 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "1.11.0" 350 | pool: 351 | dependency: transitive 352 | description: 353 | name: pool 354 | url: "https://pub.dartlang.org" 355 | source: hosted 356 | version: "1.5.0" 357 | pub_semver: 358 | dependency: transitive 359 | description: 360 | name: pub_semver 361 | url: "https://pub.dartlang.org" 362 | source: hosted 363 | version: "2.0.0" 364 | pubspec_parse: 365 | dependency: transitive 366 | description: 367 | name: pubspec_parse 368 | url: "https://pub.dartlang.org" 369 | source: hosted 370 | version: "1.0.0" 371 | shelf: 372 | dependency: transitive 373 | description: 374 | name: shelf 375 | url: "https://pub.dartlang.org" 376 | source: hosted 377 | version: "1.1.4" 378 | shelf_web_socket: 379 | dependency: transitive 380 | description: 381 | name: shelf_web_socket 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "1.0.1" 385 | sky_engine: 386 | dependency: transitive 387 | description: flutter 388 | source: sdk 389 | version: "0.0.99" 390 | source_gen: 391 | dependency: transitive 392 | description: 393 | name: source_gen 394 | url: "https://pub.dartlang.org" 395 | source: hosted 396 | version: "1.0.2" 397 | source_span: 398 | dependency: transitive 399 | description: 400 | name: source_span 401 | url: "https://pub.dartlang.org" 402 | source: hosted 403 | version: "1.8.1" 404 | sqflite: 405 | dependency: transitive 406 | description: 407 | name: sqflite 408 | url: "https://pub.dartlang.org" 409 | source: hosted 410 | version: "2.0.0+3" 411 | sqflite_common: 412 | dependency: transitive 413 | description: 414 | name: sqflite_common 415 | url: "https://pub.dartlang.org" 416 | source: hosted 417 | version: "2.0.0+2" 418 | sqflite_common_ffi: 419 | dependency: transitive 420 | description: 421 | name: sqflite_common_ffi 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "2.0.0+1" 425 | sqlite3: 426 | dependency: transitive 427 | description: 428 | name: sqlite3 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "1.1.2" 432 | stack_trace: 433 | dependency: transitive 434 | description: 435 | name: stack_trace 436 | url: "https://pub.dartlang.org" 437 | source: hosted 438 | version: "1.10.0" 439 | stream_channel: 440 | dependency: transitive 441 | description: 442 | name: stream_channel 443 | url: "https://pub.dartlang.org" 444 | source: hosted 445 | version: "2.1.0" 446 | stream_transform: 447 | dependency: transitive 448 | description: 449 | name: stream_transform 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "2.0.0" 453 | string_scanner: 454 | dependency: transitive 455 | description: 456 | name: string_scanner 457 | url: "https://pub.dartlang.org" 458 | source: hosted 459 | version: "1.1.0" 460 | synchronized: 461 | dependency: transitive 462 | description: 463 | name: synchronized 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "3.0.0" 467 | term_glyph: 468 | dependency: transitive 469 | description: 470 | name: term_glyph 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "1.2.0" 474 | test_api: 475 | dependency: transitive 476 | description: 477 | name: test_api 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "0.2.19" 481 | timing: 482 | dependency: transitive 483 | description: 484 | name: timing 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "1.0.0" 488 | typed_data: 489 | dependency: transitive 490 | description: 491 | name: typed_data 492 | url: "https://pub.dartlang.org" 493 | source: hosted 494 | version: "1.3.0" 495 | vector_math: 496 | dependency: transitive 497 | description: 498 | name: vector_math 499 | url: "https://pub.dartlang.org" 500 | source: hosted 501 | version: "2.1.0" 502 | watcher: 503 | dependency: transitive 504 | description: 505 | name: watcher 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "1.0.0" 509 | web_socket_channel: 510 | dependency: transitive 511 | description: 512 | name: web_socket_channel 513 | url: "https://pub.dartlang.org" 514 | source: hosted 515 | version: "2.1.0" 516 | yaml: 517 | dependency: transitive 518 | description: 519 | name: yaml 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "3.1.0" 523 | sdks: 524 | dart: ">=2.12.0 <3.0.0" 525 | flutter: ">=1.24.0-10" 526 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | /* End PBXFileReference section */ 46 | 47 | /* Begin PBXFrameworksBuildPhase section */ 48 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 49 | isa = PBXFrameworksBuildPhase; 50 | buildActionMask = 2147483647; 51 | files = ( 52 | ); 53 | runOnlyForDeploymentPostprocessing = 0; 54 | }; 55 | /* End PBXFrameworksBuildPhase section */ 56 | 57 | /* Begin PBXGroup section */ 58 | 9740EEB11CF90186004384FC /* Flutter */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 65 | ); 66 | name = Flutter; 67 | sourceTree = ""; 68 | }; 69 | 97C146E51CF9000F007C117D = { 70 | isa = PBXGroup; 71 | children = ( 72 | 9740EEB11CF90186004384FC /* Flutter */, 73 | 97C146F01CF9000F007C117D /* Runner */, 74 | 97C146EF1CF9000F007C117D /* Products */, 75 | ); 76 | sourceTree = ""; 77 | }; 78 | 97C146EF1CF9000F007C117D /* Products */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 97C146EE1CF9000F007C117D /* Runner.app */, 82 | ); 83 | name = Products; 84 | sourceTree = ""; 85 | }; 86 | 97C146F01CF9000F007C117D /* Runner */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 92 | 97C147021CF9000F007C117D /* Info.plist */, 93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 97 | ); 98 | path = Runner; 99 | sourceTree = ""; 100 | }; 101 | /* End PBXGroup section */ 102 | 103 | /* Begin PBXNativeTarget section */ 104 | 97C146ED1CF9000F007C117D /* Runner */ = { 105 | isa = PBXNativeTarget; 106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 107 | buildPhases = ( 108 | 9740EEB61CF901F6004384FC /* Run Script */, 109 | 97C146EA1CF9000F007C117D /* Sources */, 110 | 97C146EB1CF9000F007C117D /* Frameworks */, 111 | 97C146EC1CF9000F007C117D /* Resources */, 112 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 114 | ); 115 | buildRules = ( 116 | ); 117 | dependencies = ( 118 | ); 119 | name = Runner; 120 | productName = Runner; 121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 122 | productType = "com.apple.product-type.application"; 123 | }; 124 | /* End PBXNativeTarget section */ 125 | 126 | /* Begin PBXProject section */ 127 | 97C146E61CF9000F007C117D /* Project object */ = { 128 | isa = PBXProject; 129 | attributes = { 130 | LastUpgradeCheck = 1020; 131 | ORGANIZATIONNAME = ""; 132 | TargetAttributes = { 133 | 97C146ED1CF9000F007C117D = { 134 | CreatedOnToolsVersion = 7.3.1; 135 | LastSwiftMigration = 1100; 136 | }; 137 | }; 138 | }; 139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 140 | compatibilityVersion = "Xcode 9.3"; 141 | developmentRegion = en; 142 | hasScannedForEncodings = 0; 143 | knownRegions = ( 144 | en, 145 | Base, 146 | ); 147 | mainGroup = 97C146E51CF9000F007C117D; 148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 149 | projectDirPath = ""; 150 | projectRoot = ""; 151 | targets = ( 152 | 97C146ED1CF9000F007C117D /* Runner */, 153 | ); 154 | }; 155 | /* End PBXProject section */ 156 | 157 | /* Begin PBXResourcesBuildPhase section */ 158 | 97C146EC1CF9000F007C117D /* Resources */ = { 159 | isa = PBXResourcesBuildPhase; 160 | buildActionMask = 2147483647; 161 | files = ( 162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 166 | ); 167 | runOnlyForDeploymentPostprocessing = 0; 168 | }; 169 | /* End PBXResourcesBuildPhase section */ 170 | 171 | /* Begin PBXShellScriptBuildPhase section */ 172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 173 | isa = PBXShellScriptBuildPhase; 174 | buildActionMask = 2147483647; 175 | files = ( 176 | ); 177 | inputPaths = ( 178 | ); 179 | name = "Thin Binary"; 180 | outputPaths = ( 181 | ); 182 | runOnlyForDeploymentPostprocessing = 0; 183 | shellPath = /bin/sh; 184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 185 | }; 186 | 9740EEB61CF901F6004384FC /* Run Script */ = { 187 | isa = PBXShellScriptBuildPhase; 188 | buildActionMask = 2147483647; 189 | files = ( 190 | ); 191 | inputPaths = ( 192 | ); 193 | name = "Run Script"; 194 | outputPaths = ( 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | shellPath = /bin/sh; 198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 199 | }; 200 | /* End PBXShellScriptBuildPhase section */ 201 | 202 | /* Begin PBXSourcesBuildPhase section */ 203 | 97C146EA1CF9000F007C117D /* Sources */ = { 204 | isa = PBXSourcesBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXSourcesBuildPhase section */ 213 | 214 | /* Begin PBXVariantGroup section */ 215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 216 | isa = PBXVariantGroup; 217 | children = ( 218 | 97C146FB1CF9000F007C117D /* Base */, 219 | ); 220 | name = Main.storyboard; 221 | sourceTree = ""; 222 | }; 223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 224 | isa = PBXVariantGroup; 225 | children = ( 226 | 97C147001CF9000F007C117D /* Base */, 227 | ); 228 | name = LaunchScreen.storyboard; 229 | sourceTree = ""; 230 | }; 231 | /* End PBXVariantGroup section */ 232 | 233 | /* Begin XCBuildConfiguration section */ 234 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 235 | isa = XCBuildConfiguration; 236 | buildSettings = { 237 | ALWAYS_SEARCH_USER_PATHS = NO; 238 | CLANG_ANALYZER_NONNULL = YES; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_EMPTY_BODY = YES; 250 | CLANG_WARN_ENUM_CONVERSION = YES; 251 | CLANG_WARN_INFINITE_RECURSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cleanArchitecture; 295 | PRODUCT_NAME = "$(TARGET_NAME)"; 296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 297 | SWIFT_VERSION = 5.0; 298 | VERSIONING_SYSTEM = "apple-generic"; 299 | }; 300 | name = Profile; 301 | }; 302 | 97C147031CF9000F007C117D /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ALWAYS_SEARCH_USER_PATHS = NO; 306 | CLANG_ANALYZER_NONNULL = YES; 307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 308 | CLANG_CXX_LIBRARY = "libc++"; 309 | CLANG_ENABLE_MODULES = YES; 310 | CLANG_ENABLE_OBJC_ARC = YES; 311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 312 | CLANG_WARN_BOOL_CONVERSION = YES; 313 | CLANG_WARN_COMMA = YES; 314 | CLANG_WARN_CONSTANT_CONVERSION = YES; 315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 317 | CLANG_WARN_EMPTY_BODY = YES; 318 | CLANG_WARN_ENUM_CONVERSION = YES; 319 | CLANG_WARN_INFINITE_RECURSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 326 | CLANG_WARN_STRICT_PROTOTYPES = YES; 327 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 328 | CLANG_WARN_UNREACHABLE_CODE = YES; 329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 331 | COPY_PHASE_STRIP = NO; 332 | DEBUG_INFORMATION_FORMAT = dwarf; 333 | ENABLE_STRICT_OBJC_MSGSEND = YES; 334 | ENABLE_TESTABILITY = YES; 335 | GCC_C_LANGUAGE_STANDARD = gnu99; 336 | GCC_DYNAMIC_NO_PIC = NO; 337 | GCC_NO_COMMON_BLOCKS = YES; 338 | GCC_OPTIMIZATION_LEVEL = 0; 339 | GCC_PREPROCESSOR_DEFINITIONS = ( 340 | "DEBUG=1", 341 | "$(inherited)", 342 | ); 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 350 | MTL_ENABLE_DEBUG_INFO = YES; 351 | ONLY_ACTIVE_ARCH = YES; 352 | SDKROOT = iphoneos; 353 | TARGETED_DEVICE_FAMILY = "1,2"; 354 | }; 355 | name = Debug; 356 | }; 357 | 97C147041CF9000F007C117D /* Release */ = { 358 | isa = XCBuildConfiguration; 359 | buildSettings = { 360 | ALWAYS_SEARCH_USER_PATHS = NO; 361 | CLANG_ANALYZER_NONNULL = YES; 362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 363 | CLANG_CXX_LIBRARY = "libc++"; 364 | CLANG_ENABLE_MODULES = YES; 365 | CLANG_ENABLE_OBJC_ARC = YES; 366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 367 | CLANG_WARN_BOOL_CONVERSION = YES; 368 | CLANG_WARN_COMMA = YES; 369 | CLANG_WARN_CONSTANT_CONVERSION = YES; 370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INFINITE_RECURSION = YES; 375 | CLANG_WARN_INT_CONVERSION = YES; 376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 381 | CLANG_WARN_STRICT_PROTOTYPES = YES; 382 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 383 | CLANG_WARN_UNREACHABLE_CODE = YES; 384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 386 | COPY_PHASE_STRIP = NO; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | ENABLE_NS_ASSERTIONS = NO; 389 | ENABLE_STRICT_OBJC_MSGSEND = YES; 390 | GCC_C_LANGUAGE_STANDARD = gnu99; 391 | GCC_NO_COMMON_BLOCKS = YES; 392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 394 | GCC_WARN_UNDECLARED_SELECTOR = YES; 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 396 | GCC_WARN_UNUSED_FUNCTION = YES; 397 | GCC_WARN_UNUSED_VARIABLE = YES; 398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 399 | MTL_ENABLE_DEBUG_INFO = NO; 400 | SDKROOT = iphoneos; 401 | SUPPORTED_PLATFORMS = iphoneos; 402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 403 | TARGETED_DEVICE_FAMILY = "1,2"; 404 | VALIDATE_PRODUCT = YES; 405 | }; 406 | name = Release; 407 | }; 408 | 97C147061CF9000F007C117D /* Debug */ = { 409 | isa = XCBuildConfiguration; 410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 411 | buildSettings = { 412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 413 | CLANG_ENABLE_MODULES = YES; 414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 415 | ENABLE_BITCODE = NO; 416 | INFOPLIST_FILE = Runner/Info.plist; 417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cleanArchitecture; 419 | PRODUCT_NAME = "$(TARGET_NAME)"; 420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 422 | SWIFT_VERSION = 5.0; 423 | VERSIONING_SYSTEM = "apple-generic"; 424 | }; 425 | name = Debug; 426 | }; 427 | 97C147071CF9000F007C117D /* Release */ = { 428 | isa = XCBuildConfiguration; 429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 430 | buildSettings = { 431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 432 | CLANG_ENABLE_MODULES = YES; 433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 434 | ENABLE_BITCODE = NO; 435 | INFOPLIST_FILE = Runner/Info.plist; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.cleanArchitecture; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 440 | SWIFT_VERSION = 5.0; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | }; 443 | name = Release; 444 | }; 445 | /* End XCBuildConfiguration section */ 446 | 447 | /* Begin XCConfigurationList section */ 448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 449 | isa = XCConfigurationList; 450 | buildConfigurations = ( 451 | 97C147031CF9000F007C117D /* Debug */, 452 | 97C147041CF9000F007C117D /* Release */, 453 | 249021D3217E4FDB00AE95B9 /* Profile */, 454 | ); 455 | defaultConfigurationIsVisible = 0; 456 | defaultConfigurationName = Release; 457 | }; 458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147061CF9000F007C117D /* Debug */, 462 | 97C147071CF9000F007C117D /* Release */, 463 | 249021D4217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | /* End XCConfigurationList section */ 469 | }; 470 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 471 | } 472 | --------------------------------------------------------------------------------