├── 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.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj └── .gitignore ├── lib ├── Models │ ├── index.dart │ ├── BaseModel.dart │ └── ListViewItem.dart ├── Layouts │ ├── index.dart │ ├── DefaultAppbarLayout.dart │ └── ListViewLayout.dart ├── Screens │ ├── index.dart │ ├── GetxNavigation │ │ ├── ScreenFour.dart │ │ ├── ScreenFive.dart │ │ ├── ScreenTwo.dart │ │ ├── ScreenThree.dart │ │ └── GetxNavigationScreen.dart │ ├── ProviderOptimisticResponse │ │ ├── PostModel.dart │ │ ├── ProviderOptimisticResponseScreen.dart │ │ ├── PostCard.dart │ │ └── PostProvider.dart │ ├── Retrofit │ │ ├── Retrofit │ │ │ ├── RestClient.dart │ │ │ └── RestClient.g.dart │ │ └── Screens │ │ │ └── RetrofitScreen.dart │ ├── ProviderInfiniteScroll │ │ ├── AjaxProvider.dart │ │ └── ProviderInfiniteScrollScreen.dart │ ├── CustomKeyboard │ │ ├── KeyboardKey.dart │ │ └── CustomKeyboard.dart │ ├── CustomPaintHermesAppleWatch │ │ ├── CustomPaintHermesAppleWatch.dart │ │ └── WatchPainter.dart │ ├── GetxStateManagement │ │ ├── OnUpdateScreen.dart │ │ ├── GetxStateManagement.dart │ │ ├── GetxController.dart │ │ └── ReactiveScreen.dart │ ├── Home │ │ └── HomeScreen.dart │ ├── CustomScrollView │ │ └── CustomScrollViewScreen.dart │ └── RowAndColumn │ │ └── RowAndColumn.dart ├── Configs │ └── Theme.dart └── main.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 │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── example │ │ │ │ │ └── codefactory_youtube_flutter_tutorial │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .gitignore ├── settings.gradle └── build.gradle ├── assets ├── seoul-night-view.jpg └── flutter-logo-white.png ├── .metadata ├── README.md ├── .gitignore ├── test └── widget_test.dart ├── 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 | -------------------------------------------------------------------------------- /lib/Models/index.dart: -------------------------------------------------------------------------------- 1 | export 'BaseModel.dart'; 2 | export 'ListViewItem.dart'; 3 | -------------------------------------------------------------------------------- /lib/Layouts/index.dart: -------------------------------------------------------------------------------- 1 | export 'ListViewLayout.dart'; 2 | export 'DefaultAppbarLayout.dart'; 3 | -------------------------------------------------------------------------------- /lib/Models/BaseModel.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | abstract class BaseModel{} 4 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /assets/seoul-night-view.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/HEAD/assets/seoul-night-view.jpg -------------------------------------------------------------------------------- /assets/flutter-logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/HEAD/assets/flutter-logo-white.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/Screens/index.dart: -------------------------------------------------------------------------------- 1 | export 'Home/HomeScreen.dart'; 2 | export 'RowAndColumn/RowAndColumn.dart'; 3 | export 'ProviderOptimisticResponse/ProviderOptimisticResponseScreen.dart'; 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /lib/Configs/Theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class _Theme { 4 | final Color greyBorderColor = Colors.grey[200]; 5 | } 6 | 7 | _Theme THEME = _Theme(); 8 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/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/serendipity1004/Youtube-Flutter-Tutorials/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/codefactory_youtube_flutter_tutorial/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.codefactory_youtube_flutter_tutorial 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-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /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/Models/ListViewItem.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'index.dart'; 3 | 4 | class ListViewItem extends BaseModel { 5 | final String name; 6 | final Widget page; 7 | 8 | ListViewItem({ 9 | @required String name, 10 | @required Widget page, 11 | }) : this.name = name, 12 | this.page = page; 13 | } 14 | -------------------------------------------------------------------------------- /.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: 1aafb3a8b9b0c36241c5f5b34ee914770f015818 8 | channel: stable 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /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/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # codefactory_youtube_flutter_tutorial 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /lib/Layouts/DefaultAppbarLayout.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DefaultAppbarLayout extends StatefulWidget { 4 | final String title; 5 | final Widget child; 6 | 7 | DefaultAppbarLayout({ 8 | @required Widget child, 9 | String title, 10 | }) : this.title = title ?? '코드팩토리', 11 | this.child = child; 12 | 13 | @override 14 | _DefaultAppbarLayoutState createState() => _DefaultAppbarLayoutState(); 15 | } 16 | 17 | class _DefaultAppbarLayoutState extends State { 18 | @override 19 | Widget build(BuildContext context) { 20 | return Scaffold( 21 | appBar: AppBar( 22 | title: Text( 23 | widget.title, 24 | ), 25 | ), 26 | body: widget.child, 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/Screens/GetxNavigation/ScreenFour.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class ScreenFour extends StatefulWidget { 6 | @override 7 | _ScreenFourState createState() => _ScreenFourState(); 8 | } 9 | 10 | class _ScreenFourState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return DefaultAppbarLayout( 14 | child: Center( 15 | child: Column( 16 | mainAxisAlignment: MainAxisAlignment.center, 17 | children: [ 18 | Text( 19 | Get.arguments, 20 | ), 21 | ], 22 | ), 23 | ), 24 | ); 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 | -------------------------------------------------------------------------------- /lib/Screens/ProviderOptimisticResponse/PostModel.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PostModel { 4 | final int id; 5 | final String title; 6 | final String content; 7 | 8 | //좋아요 9 | int likes; 10 | 11 | PostModel.fromJson({ 12 | @required Map json, 13 | }) 14 | : this.id = json['id'], 15 | this.title = json['title'], 16 | this.content = json['content'], 17 | this.likes = json['likes']; 18 | 19 | incrementLike() { 20 | this.likes = this.likes + 1; 21 | } 22 | 23 | // class 인스턴스를 map 으로 변경 24 | toMap() { 25 | return { 26 | 'id': this.id, 27 | 'title': this.title, 28 | 'content': this.content, 29 | 'likes': this.likes, 30 | }; 31 | } 32 | 33 | copyWith(){ 34 | return PostModel.fromJson( 35 | json: this.toMap(), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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/Retrofit/Retrofit/RestClient.dart: -------------------------------------------------------------------------------- 1 | import 'package:json_annotation/json_annotation.dart'; 2 | import 'package:retrofit/retrofit.dart'; 3 | import 'package:dio/dio.dart'; 4 | 5 | part 'RestClient.g.dart'; 6 | 7 | @RestApi(baseUrl: 'https://hacker-news.firebaseio.com/v0') 8 | abstract class RestClient { 9 | factory RestClient(Dio dio, {String baseUrl}) = _RestClient; 10 | 11 | @GET('/topstories.json') 12 | Future> getTopNews(); 13 | 14 | @GET('/item/{id}.json') 15 | Future getNewsDetail({@Path() int id}); 16 | } 17 | 18 | @JsonSerializable() 19 | class News { 20 | int id; 21 | String title; 22 | String type; 23 | String url; 24 | 25 | News({ 26 | this.id, 27 | this.title, 28 | this.type, 29 | this.url, 30 | }); 31 | 32 | factory News.fromJson(Map json) => _$NewsFromJson(json); 33 | 34 | Map toJson() => _$NewsToJson(this); 35 | } 36 | -------------------------------------------------------------------------------- /lib/Screens/GetxNavigation/ScreenFive.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class ScreenFive extends StatefulWidget { 6 | @override 7 | _ScreenFiveState createState() => _ScreenFiveState(); 8 | } 9 | 10 | class _ScreenFiveState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return DefaultAppbarLayout( 14 | title: 'Screen Five', 15 | child: Center( 16 | child: Column( 17 | mainAxisAlignment: MainAxisAlignment.center, 18 | children: [ 19 | Text( 20 | Get.parameters['param'], 21 | ), 22 | Text( 23 | Get.parameters['id'], 24 | ), 25 | Text( 26 | Get.parameters['name'], 27 | ), 28 | ], 29 | ), 30 | ), 31 | ); 32 | } 33 | } 34 | 35 | 36 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/Screens/GetxNavigation/ScreenTwo.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class ScreenTwo extends StatefulWidget { 6 | @override 7 | _ScreenTwoState createState() => _ScreenTwoState(); 8 | } 9 | 10 | class _ScreenTwoState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return DefaultAppbarLayout( 14 | title: 'Screen Two', 15 | child: Center( 16 | child: Column( 17 | mainAxisAlignment: MainAxisAlignment.center, 18 | children: [ 19 | Text('Screen Two'), 20 | RaisedButton( 21 | onPressed: () { 22 | // if(Navigator.of(context).canPop()){ 23 | // Navigator.of(context).pop(); 24 | // } 25 | 26 | Get.back(); 27 | }, 28 | child: Text( 29 | '뒤로가기', 30 | ), 31 | ), 32 | ], 33 | ), 34 | ), 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /lib/Screens/ProviderInfiniteScroll/AjaxProvider.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:provider/provider.dart'; 3 | 4 | class AjaxProvider extends ChangeNotifier { 5 | List cache = []; 6 | 7 | // 로딩 8 | bool loading = false; 9 | // 아이템이 더 있는지 10 | bool hasMore = true; 11 | 12 | _makeRequest({ 13 | @required int nextId, 14 | }) async { 15 | assert(nextId != null); 16 | 17 | await Future.delayed(Duration(seconds: 1)); 18 | 19 | // Item 은 nextId 가 99 까지만 있음 20 | if(nextId == 100){ 21 | return []; 22 | } 23 | 24 | //nextId 다음의 20개의 값을 리스트로 리턴 25 | return List.generate(20, (index) => nextId + index); 26 | } 27 | 28 | fetchItems({ 29 | int nextId, 30 | }) async { 31 | nextId ??= 0; 32 | 33 | loading = true; 34 | 35 | notifyListeners(); 36 | 37 | final items = await _makeRequest(nextId: nextId); 38 | 39 | this.cache = [ 40 | ...this.cache, 41 | ...items, 42 | ]; 43 | 44 | if(items.length == 0){ 45 | hasMore = false; 46 | } 47 | 48 | loading = false; 49 | 50 | notifyListeners(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /lib/Screens/CustomKeyboard/KeyboardKey.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class KeyboardKey extends StatefulWidget { 4 | final dynamic label; 5 | final dynamic value; 6 | final ValueSetter onTap; 7 | 8 | KeyboardKey({ 9 | @required this.label, 10 | @required this.value, 11 | @required this.onTap, 12 | }); 13 | 14 | @override 15 | _KeyboardKeyState createState() => _KeyboardKeyState(); 16 | } 17 | 18 | class _KeyboardKeyState extends State { 19 | 20 | renderLabel(){ 21 | if(widget.label is Widget){ 22 | return widget.label; 23 | } 24 | 25 | return Text( 26 | widget.label, 27 | style: TextStyle( 28 | fontSize: 20.0, 29 | fontWeight: FontWeight.bold, 30 | ), 31 | ); 32 | } 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return InkWell( 37 | onTap: (){ 38 | widget.onTap(widget.value); 39 | }, 40 | child: AspectRatio( 41 | aspectRatio: 2, // 넓이 / 높이 = 2 42 | child: Container( 43 | child: Center( 44 | child: renderLabel(), 45 | ), 46 | ), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /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:codefactory_youtube_flutter_tutorial/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/Screens/CustomPaintHermesAppleWatch/CustomPaintHermesAppleWatch.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | import 'WatchPainter.dart'; 6 | 7 | class CustomPaintHermesAppleWatch extends StatefulWidget { 8 | @override 9 | _CustomPaintHermesAppleWatchState createState() => _CustomPaintHermesAppleWatchState(); 10 | } 11 | 12 | class _CustomPaintHermesAppleWatchState extends State { 13 | DateTime now; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | 19 | now = DateTime.now(); 20 | 21 | Timer.periodic(Duration(seconds: 1), (timer) { 22 | setState(() { 23 | now = DateTime.now(); 24 | }); 25 | }); 26 | } 27 | 28 | @override 29 | Widget build(BuildContext context) { 30 | return Scaffold( 31 | body: Container( 32 | color: Colors.black, 33 | alignment: Alignment.center, 34 | child: Container( 35 | width: MediaQuery.of(context).size.width /2, 36 | child: AspectRatio( 37 | aspectRatio: 2/3, 38 | child: CustomPaint( 39 | painter: WatchPainter( 40 | now, 41 | ), 42 | ), 43 | ), 44 | ), 45 | ), 46 | ); 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /lib/Screens/GetxStateManagement/OnUpdateScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxStateManagement/GetxController.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class OnUpdateScreen extends StatefulWidget { 8 | @override 9 | _OnUpdateScreenState createState() => _OnUpdateScreenState(); 10 | } 11 | 12 | class _OnUpdateScreenState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | final controller = Get.put(BuilderController()); 16 | 17 | return DefaultAppbarLayout( 18 | title: 'On Update', 19 | child: Center( 20 | child: Column( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | children: [ 23 | Text( 24 | 'On Update', 25 | ), 26 | GetBuilder( 27 | builder: (_) { 28 | return Text('count : ${_.count}'); 29 | }, 30 | ), 31 | RaisedButton( 32 | onPressed: (){ 33 | controller.increment(); 34 | }, 35 | child: Text('Count 업!'), 36 | ), 37 | ], 38 | ), 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/Screens/GetxStateManagement/GetxStateManagement.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxStateManagement/OnUpdateScreen.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxStateManagement/ReactiveScreen.dart'; 4 | import 'package:flutter/cupertino.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:get/get.dart'; 7 | 8 | class GetxStateManagementScreen extends StatefulWidget { 9 | @override 10 | _GetxStateManagementScreenState createState() => 11 | _GetxStateManagementScreenState(); 12 | } 13 | 14 | class _GetxStateManagementScreenState extends State { 15 | @override 16 | Widget build(BuildContext context) { 17 | return DefaultAppbarLayout( 18 | title: 'GetX State Management', 19 | child: Center( 20 | child: Column( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | children: [ 23 | RaisedButton( 24 | onPressed: () { 25 | Get.to(OnUpdateScreen()); 26 | }, 27 | child: Text('On Update'), 28 | ), 29 | RaisedButton( 30 | onPressed: (){ 31 | Get.to(ReactiveScreen()); 32 | }, 33 | child: Text('Reactive'), 34 | ), 35 | ], 36 | ), 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/Screens/GetxStateManagement/GetxController.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:get/get.dart'; 3 | 4 | class BuilderController extends GetxController { 5 | int count = 0; 6 | 7 | increment() { 8 | count++; 9 | update(); 10 | } 11 | } 12 | 13 | class User { 14 | int id; 15 | String name; 16 | 17 | User({ 18 | @required int id, 19 | @required String name, 20 | }) : this.id = id, 21 | this.name = name; 22 | } 23 | 24 | class ReactiveController extends GetxController { 25 | RxInt count1 = 0.obs; 26 | var count2 = 0.obs; 27 | 28 | var user = new User( 29 | id: 1, 30 | name: '코드팩토리', 31 | ).obs; 32 | 33 | List testList = [1, 2, 3, 4, 5].obs; 34 | 35 | get sum => count1.value + count2.value; 36 | 37 | change({ 38 | @required int id, 39 | @required String name, 40 | }) { 41 | user.update((val) { 42 | val.name = name; 43 | val.id = id; 44 | }); 45 | } 46 | 47 | @override 48 | void onInit() { 49 | super.onInit(); 50 | 51 | ever(count1, (_) { 52 | print('EVER : COUNT1 이 변경 될때마다 실행'); 53 | }); 54 | once(count1, (_) { 55 | print('ONCE : 처음으로 COUNT1 이 변경 되었을때'); 56 | }); 57 | debounce( 58 | count1, 59 | (_) { 60 | print('DEBOUNCE : 1초간 디바운스 한 뒤에 실행'); 61 | }, 62 | time: Duration(seconds: 1), 63 | ); 64 | interval( 65 | count1, 66 | (_) { 67 | print('INTERVAL : 1초간 이터벌이 지나면 실행'); 68 | }, 69 | time: Duration(seconds: 1), 70 | ); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /lib/Screens/ProviderOptimisticResponse/ProviderOptimisticResponseScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderOptimisticResponse/PostCard.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'PostProvider.dart'; 6 | 7 | class ProviderOptimisticResponseScreen extends StatefulWidget { 8 | @override 9 | _ProviderOptimisticResponseScreenState createState() => 10 | _ProviderOptimisticResponseScreenState(); 11 | } 12 | 13 | class _ProviderOptimisticResponseScreenState 14 | extends State { 15 | @override 16 | void initState() { 17 | // TODO: implement initState 18 | super.initState(); 19 | 20 | Future.microtask(() { 21 | Provider.of(context, listen: false).fetchItems(); 22 | }); 23 | } 24 | 25 | @override 26 | Widget build(BuildContext context) { 27 | final provider = Provider.of(context); 28 | final posts = provider.posts; 29 | 30 | return DefaultAppbarLayout( 31 | title: 'Provider Optimistic Response', 32 | child: ListView.separated( 33 | itemBuilder: (context, index) { 34 | return PostCard( 35 | postId: index, 36 | ); 37 | }, 38 | separatorBuilder: (context, index) { 39 | return Container( 40 | color: Colors.grey[200], 41 | height: 16.0, 42 | ); 43 | }, 44 | itemCount: posts.length, 45 | ), 46 | ); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /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 | codefactory_youtube_flutter_tutorial 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/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/GetxNavigationScreen.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenFive.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenFour.dart'; 4 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenThree.dart'; 5 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenTwo.dart'; 6 | import 'package:codefactory_youtube_flutter_tutorial/Screens/Home/HomeScreen.dart'; 7 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderInfiniteScroll/AjaxProvider.dart'; 8 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderOptimisticResponse/PostProvider.dart'; 9 | import 'package:flutter/material.dart'; 10 | import 'package:provider/provider.dart'; 11 | import 'package:get/get.dart'; 12 | 13 | void main() { 14 | runApp( 15 | MultiProvider( 16 | providers: [ 17 | ChangeNotifierProvider( 18 | create: (_) => AjaxProvider(), 19 | ), 20 | ChangeNotifierProvider( 21 | create: (_) => PostProvider(), 22 | ), 23 | ], 24 | child: MyApp(), 25 | ), 26 | ); 27 | } 28 | 29 | class MyApp extends StatelessWidget { 30 | @override 31 | Widget build(BuildContext context) { 32 | return GetMaterialApp( 33 | home: HomeScreen(), 34 | getPages: [ 35 | GetPage( 36 | name: '/', 37 | page: () => GetxNavigationScreen(), 38 | ), 39 | GetPage( 40 | name: '/two', 41 | page: () => ScreenTwo(), 42 | ), 43 | GetPage( 44 | name: '/three', 45 | page: () => ScreenThree(), 46 | ), 47 | GetPage( 48 | name: '/four', 49 | page: () => ScreenFour(), 50 | ), 51 | GetPage( 52 | name: '/five/:param', 53 | page: () => ScreenFive(), 54 | ), 55 | ], 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /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 29 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.example.codefactory_youtube_flutter_tutorial" 42 | minSdkVersion 16 43 | targetSdkVersion 29 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | buildTypes { 49 | release { 50 | // TODO: Add your own signing config for the release build. 51 | // Signing with the debug keys for now, so `flutter run --release` works. 52 | signingConfig signingConfigs.debug 53 | } 54 | } 55 | } 56 | 57 | flutter { 58 | source '../..' 59 | } 60 | 61 | dependencies { 62 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 63 | } 64 | -------------------------------------------------------------------------------- /lib/Screens/GetxNavigation/ScreenThree.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:get/get.dart'; 4 | 5 | class ScreenThree extends StatefulWidget { 6 | @override 7 | _ScreenThreeState createState() => _ScreenThreeState(); 8 | } 9 | 10 | class _ScreenThreeState extends State { 11 | int radioVal = 0; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return DefaultAppbarLayout( 16 | child: Center( 17 | child: Column( 18 | mainAxisAlignment: MainAxisAlignment.center, 19 | children: [ 20 | Row( 21 | children: [ 22 | Radio( 23 | groupValue: radioVal, 24 | value: 0, 25 | onChanged: (value) { 26 | setState(() { 27 | radioVal = value; 28 | }); 29 | }, 30 | ), 31 | Text('0'), 32 | ], 33 | ), 34 | Row( 35 | children: [ 36 | Radio( 37 | groupValue: radioVal, 38 | value: 1, 39 | onChanged: (value) { 40 | setState(() { 41 | radioVal = value; 42 | }); 43 | }, 44 | ), 45 | Text('1'), 46 | ], 47 | ), 48 | Row( 49 | children: [ 50 | Radio( 51 | groupValue: radioVal, 52 | value: 2, 53 | onChanged: (value) { 54 | setState(() { 55 | radioVal = value; 56 | }); 57 | }, 58 | ), 59 | Text('2'), 60 | ], 61 | ), 62 | RaisedButton( 63 | onPressed: () { 64 | Get.back(result: radioVal); 65 | }, 66 | child: Text( 67 | '뒤로가기', 68 | ), 69 | ), 70 | ], 71 | ), 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/Screens/Retrofit/Screens/RetrofitScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/Retrofit/Retrofit/RestClient.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:retrofit/retrofit.dart'; 5 | import 'package:dio/dio.dart'; 6 | 7 | class RetrofitScreen extends StatefulWidget { 8 | @override 9 | _RetrofitScreenState createState() => _RetrofitScreenState(); 10 | } 11 | 12 | class _RetrofitScreenState extends State { 13 | RestClient client; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | 19 | Dio dio = Dio(); 20 | 21 | client = RestClient(dio); 22 | } 23 | 24 | renderNewsCard({ 25 | @required News news, 26 | }) { 27 | return Card( 28 | child: Column( 29 | children: [ 30 | Text(news.id.toString()), 31 | Text(news.title), 32 | Text(news.url), 33 | ], 34 | ), 35 | ); 36 | } 37 | 38 | @override 39 | Widget build(BuildContext context) { 40 | return DefaultAppbarLayout( 41 | title: 'Retrofit Intro', 42 | child: FutureBuilder( 43 | future: client.getTopNews(), 44 | initialData: [], 45 | builder: (_, AsyncSnapshot snapshot) { 46 | if (snapshot.connectionState == ConnectionState.waiting) { 47 | return Center( 48 | child: CircularProgressIndicator(), 49 | ); 50 | } 51 | 52 | final ids = snapshot.data; 53 | 54 | return ListView.builder( 55 | itemCount: ids.length, 56 | itemBuilder: (_, index){ 57 | return FutureBuilder( 58 | future: client.getNewsDetail(id: ids[index]), 59 | builder: (_, AsyncSnapshot snapshot){ 60 | if (snapshot.connectionState == ConnectionState.waiting) { 61 | return Center( 62 | child: CircularProgressIndicator(), 63 | ); 64 | } 65 | 66 | return renderNewsCard(news: snapshot.data); 67 | }, 68 | ); 69 | }, 70 | ); 71 | }, 72 | ), 73 | ); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /lib/Screens/ProviderInfiniteScroll/ProviderInfiniteScrollScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:provider/provider.dart'; 4 | import 'AjaxProvider.dart'; 5 | 6 | class ProviderInfiniteScrollScreen extends StatefulWidget { 7 | @override 8 | _ProviderInfiniteScrollScreenState createState() => 9 | _ProviderInfiniteScrollScreenState(); 10 | } 11 | 12 | class _ProviderInfiniteScrollScreenState 13 | extends State { 14 | @override 15 | void initState() { 16 | // TODO: implement initState 17 | super.initState(); 18 | 19 | Future.microtask(() { 20 | Provider.of(context, listen: false).fetchItems(); 21 | }); 22 | } 23 | 24 | _renderListView() { 25 | final provider = Provider.of(context); 26 | 27 | final cache = provider.cache; 28 | 29 | final loading = provider.loading; 30 | 31 | //로딩중이면서 캐시에 아무것도 없음 32 | if(loading && cache.length == 0) { 33 | return Center( 34 | child: CircularProgressIndicator(), 35 | ); 36 | } 37 | 38 | //로딩중이 아닌데 캐시에 아무것도 없음 39 | //아무것도 가져올 아이템이 없을때 40 | if(!loading && cache.length == 0) { 41 | return Center( 42 | child: Text('아이템이 없습니다.'), 43 | ); 44 | } 45 | 46 | return ListView.builder( 47 | itemCount: cache.length + 1, 48 | itemBuilder: (context, index) { 49 | if (index < cache.length) { 50 | return ListTile( 51 | title: Text( 52 | cache[index].toString(), 53 | ), 54 | ); 55 | } 56 | 57 | if(!provider.loading && provider.hasMore){ 58 | Future.microtask(() { 59 | provider.fetchItems(nextId: index); 60 | }); 61 | } 62 | 63 | if(provider.hasMore) { 64 | return Center( 65 | child: CircularProgressIndicator(), 66 | ); 67 | }else{ 68 | return Center( 69 | child: Text('더이상 아이템이 없습니다.'), 70 | ); 71 | } 72 | }, 73 | ); 74 | } 75 | 76 | @override 77 | Widget build(BuildContext context) { 78 | return DefaultAppbarLayout( 79 | title: 'Provider Infinite Scroll', 80 | child: _renderListView(), 81 | ); 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /lib/Layouts/ListViewLayout.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Configs/Theme.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Models/index.dart'; 4 | 5 | class ListViewLayout extends StatefulWidget { 6 | final List items; 7 | 8 | ListViewLayout({ 9 | @required List items, 10 | }) : this.items = items; 11 | 12 | @override 13 | _ListViewLayoutState createState() => _ListViewLayoutState(); 14 | } 15 | 16 | class _ListViewLayoutState extends State { 17 | _renderButton({ 18 | @required ListViewItem item, 19 | }) { 20 | assert(item != null); 21 | 22 | return GestureDetector( 23 | onTap: () { 24 | Navigator.of(context).push( 25 | MaterialPageRoute( 26 | builder: (_) => item.page, 27 | ), 28 | ); 29 | }, 30 | child: Container( 31 | decoration: BoxDecoration( 32 | color: Colors.white, 33 | border: Border( 34 | top: BorderSide( 35 | color: THEME.greyBorderColor, 36 | ), 37 | bottom: BorderSide( 38 | color: THEME.greyBorderColor, 39 | ), 40 | ), 41 | ), 42 | child: Padding( 43 | padding: EdgeInsets.symmetric( 44 | vertical: 8.0, 45 | horizontal: 16.0, 46 | ), 47 | child: Row( 48 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 49 | children: [ 50 | Text( 51 | item.name, 52 | ), 53 | Icon( 54 | Icons.chevron_right, 55 | ), 56 | ], 57 | ), 58 | ), 59 | ), 60 | ); 61 | } 62 | 63 | @override 64 | Widget build(BuildContext context) { 65 | return Scaffold( 66 | appBar: AppBar( 67 | title: Text( 68 | '코드팩토리', 69 | ), 70 | ), 71 | body: ListView.separated( 72 | itemCount: widget.items.length, 73 | separatorBuilder: (context, index) { 74 | return Container( 75 | height: 8.0, 76 | ); 77 | }, 78 | itemBuilder: (context, index) { 79 | return _renderButton( 80 | item: widget.items[index], 81 | ); 82 | }, 83 | ), 84 | ); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /lib/Screens/ProviderOptimisticResponse/PostCard.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderOptimisticResponse/PostModel.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderOptimisticResponse/PostProvider.dart'; 3 | import 'package:flutter/material.dart'; 4 | import 'package:provider/provider.dart'; 5 | 6 | class PostCard extends StatefulWidget { 7 | final int postId; 8 | 9 | PostCard({ 10 | @required int postId, 11 | }) : this.postId = postId; 12 | 13 | @override 14 | _PostCardState createState() => _PostCardState(); 15 | } 16 | 17 | class _PostCardState extends State { 18 | @override 19 | Widget build(BuildContext context) { 20 | final post = Provider.of(context).posts[widget.postId]; 21 | 22 | return Container( 23 | child: Padding( 24 | padding: EdgeInsets.symmetric( 25 | horizontal: 16.0, 26 | vertical: 8.0, 27 | ), 28 | child: Column( 29 | children: [ 30 | Padding( 31 | padding: EdgeInsets.only( 32 | bottom: 8.0, 33 | ), 34 | child: Row( 35 | children: [ 36 | Text( 37 | post.title, 38 | style: TextStyle( 39 | fontSize: 16.0, 40 | fontWeight: FontWeight.w700, 41 | ), 42 | ), 43 | ], 44 | ), 45 | ), 46 | Row( 47 | children: [ 48 | Text( 49 | post.content, 50 | style: TextStyle( 51 | fontSize: 14.0, 52 | color: Colors.grey, 53 | ), 54 | ), 55 | ], 56 | ), 57 | Row( 58 | children: [ 59 | OutlinedButton( 60 | onPressed: () { 61 | Provider.of( 62 | context, 63 | listen: false, 64 | ).incrementLike( 65 | id: post.id, 66 | ); 67 | }, 68 | child: Text('좋아요 ${post.likes}'), 69 | ), 70 | ], 71 | ), 72 | ], 73 | ), 74 | ), 75 | ); 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /lib/Screens/GetxStateManagement/ReactiveScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxStateManagement/GetxController.dart'; 3 | import 'package:flutter/cupertino.dart'; 4 | import 'package:flutter/material.dart'; 5 | import 'package:get/get.dart'; 6 | 7 | class ReactiveScreen extends StatefulWidget { 8 | @override 9 | _ReactiveScreenState createState() => _ReactiveScreenState(); 10 | } 11 | 12 | class _ReactiveScreenState extends State { 13 | @override 14 | Widget build(BuildContext context) { 15 | final controller = Get.put(ReactiveController()); 16 | 17 | return DefaultAppbarLayout( 18 | title: 'Reactive', 19 | child: Center( 20 | child: Column( 21 | mainAxisAlignment: MainAxisAlignment.center, 22 | children: [ 23 | Text('Reactive'), 24 | GetX( 25 | builder: (_) { 26 | return Text('Count 1 : ${_.count1.value}'); 27 | }, 28 | ), 29 | Obx(() { 30 | return Text('Count 2 : ${controller.count2.value}'); 31 | }), 32 | Obx(() { 33 | return Text('SUM : ${controller.sum}'); 34 | }), 35 | Obx(() { 36 | return Text( 37 | 'USER : ${controller.user.value.id}' 38 | '/${controller.user.value.name}', 39 | ); 40 | }), 41 | Obx(() { 42 | return Text('LIST : ${controller.testList}'); 43 | }), 44 | RaisedButton( 45 | onPressed: () { 46 | controller.count1++; 47 | }, 48 | child: Text( 49 | 'COUNT 1 UP!', 50 | ), 51 | ), 52 | RaisedButton( 53 | onPressed: () { 54 | controller.count2++; 55 | }, 56 | child: Text( 57 | 'COUNT 2 UP!', 58 | ), 59 | ), 60 | RaisedButton( 61 | onPressed: () { 62 | controller.change(id: 2, name: '레드벨벳'); 63 | }, 64 | child: Text( 65 | 'Change User', 66 | ), 67 | ), 68 | ], 69 | ), 70 | ), 71 | ); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /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/ProviderOptimisticResponse/PostProvider.dart: -------------------------------------------------------------------------------- 1 | import 'dart:collection'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:provider/provider.dart'; 5 | import 'PostModel.dart'; 6 | 7 | class PostProvider extends ChangeNotifier { 8 | LinkedHashMap posts = new LinkedHashMap(); 9 | 10 | Future _fetchList() async { 11 | await Future.delayed(Duration(seconds: 1)); 12 | 13 | return List.generate( 14 | 20, 15 | (index) => { 16 | 'id': index, 17 | 'title': 'title $index', 18 | 'content': 'content $index', 19 | 'likes': 0, 20 | 'dislikes': 0, 21 | }, 22 | ); 23 | } 24 | 25 | Future> _postIncrementLike({ 26 | @required int id, 27 | @required PostModel snapshot, 28 | }) async { 29 | assert(id != null); 30 | 31 | await Future.delayed( 32 | Duration( 33 | seconds: 2, 34 | ), 35 | ); 36 | 37 | snapshot.incrementLike(); 38 | snapshot.incrementLike(); 39 | snapshot.incrementLike(); 40 | snapshot.incrementLike(); 41 | snapshot.incrementLike(); 42 | snapshot.incrementLike(); 43 | snapshot.incrementLike(); 44 | snapshot.incrementLike(); 45 | snapshot.incrementLike(); 46 | snapshot.incrementLike(); 47 | snapshot.incrementLike(); 48 | 49 | return snapshot.toMap(); 50 | } 51 | 52 | incrementLike({ 53 | @required int id, 54 | }) async { 55 | assert(id != null); 56 | 57 | final snapshot = posts[id].copyWith(); 58 | 59 | // Cache Update - 1 60 | this.posts[id].incrementLike(); 61 | notifyListeners(); 62 | 63 | // Network 요창 - 2 64 | final newMap = await _postIncrementLike( 65 | id: id, 66 | snapshot: snapshot, 67 | ); 68 | 69 | this.posts.update( 70 | id, 71 | (value) => PostModel.fromJson( 72 | json: newMap, 73 | ), 74 | ); 75 | 76 | notifyListeners(); 77 | } 78 | 79 | fetchItems() async { 80 | final newList = await _fetchList(); 81 | 82 | final parsedList = newList.map( 83 | (x) => PostModel.fromJson( 84 | json: x, 85 | ), 86 | ); 87 | 88 | this.posts.addEntries( 89 | parsedList.map( 90 | (x) => MapEntry( 91 | x.id, 92 | x, 93 | ), 94 | ), 95 | ); 96 | 97 | notifyListeners(); 98 | } 99 | } 100 | -------------------------------------------------------------------------------- /lib/Screens/Retrofit/Retrofit/RestClient.g.dart: -------------------------------------------------------------------------------- 1 | // GENERATED CODE - DO NOT MODIFY BY HAND 2 | 3 | part of 'RestClient.dart'; 4 | 5 | // ************************************************************************** 6 | // JsonSerializableGenerator 7 | // ************************************************************************** 8 | 9 | News _$NewsFromJson(Map json) { 10 | return News( 11 | id: json['id'] as int, 12 | title: json['title'] as String, 13 | type: json['type'] as String, 14 | url: json['url'] as String, 15 | ); 16 | } 17 | 18 | Map _$NewsToJson(News instance) => { 19 | 'id': instance.id, 20 | 'title': instance.title, 21 | 'type': instance.type, 22 | 'url': instance.url, 23 | }; 24 | 25 | // ************************************************************************** 26 | // RetrofitGenerator 27 | // ************************************************************************** 28 | 29 | class _RestClient implements RestClient { 30 | _RestClient(this._dio, {this.baseUrl}) { 31 | ArgumentError.checkNotNull(_dio, '_dio'); 32 | baseUrl ??= 'https://hacker-news.firebaseio.com/v0'; 33 | } 34 | 35 | final Dio _dio; 36 | 37 | String baseUrl; 38 | 39 | @override 40 | Future> getTopNews() async { 41 | const _extra = {}; 42 | final queryParameters = {}; 43 | final _data = {}; 44 | final _result = await _dio.request>('/topstories.json', 45 | queryParameters: queryParameters, 46 | options: RequestOptions( 47 | method: 'GET', 48 | headers: {}, 49 | extra: _extra, 50 | baseUrl: baseUrl), 51 | data: _data); 52 | final value = _result.data.cast(); 53 | return value; 54 | } 55 | 56 | @override 57 | Future getNewsDetail({id}) async { 58 | const _extra = {}; 59 | final queryParameters = {}; 60 | queryParameters.removeWhere((k, v) => v == null); 61 | final _data = {}; 62 | final _result = await _dio.request>('/item/$id.json', 63 | queryParameters: queryParameters, 64 | options: RequestOptions( 65 | method: 'GET', 66 | headers: {}, 67 | extra: _extra, 68 | baseUrl: baseUrl), 69 | data: _data); 70 | final value = News.fromJson(_result.data); 71 | return value; 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/Screens/Home/HomeScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/index.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Models/index.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Screens/CustomKeyboard/CustomKeyboard.dart'; 4 | import 'package:codefactory_youtube_flutter_tutorial/Screens/CustomPaintHermesAppleWatch/CustomPaintHermesAppleWatch.dart'; 5 | import 'package:codefactory_youtube_flutter_tutorial/Screens/CustomScrollView/CustomScrollViewScreen.dart'; 6 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/GetxNavigationScreen.dart'; 7 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxStateManagement/GetxStateManagement.dart'; 8 | import 'package:codefactory_youtube_flutter_tutorial/Screens/ProviderInfiniteScroll/ProviderInfiniteScrollScreen.dart'; 9 | import 'package:codefactory_youtube_flutter_tutorial/Screens/Retrofit/Screens/RetrofitScreen.dart'; 10 | import 'package:codefactory_youtube_flutter_tutorial/Screens/index.dart'; 11 | import 'package:flutter/material.dart'; 12 | 13 | class HomeScreen extends StatefulWidget { 14 | @override 15 | _HomeScreenState createState() => _HomeScreenState(); 16 | } 17 | 18 | class _HomeScreenState extends State { 19 | @override 20 | Widget build(BuildContext context) { 21 | return ListViewLayout( 22 | items: [ 23 | ListViewItem( 24 | name: 'Row & Column', 25 | page: RowAndColumnScreen(), 26 | ), 27 | ListViewItem( 28 | name: 'Provider Infinite Scroll', 29 | page: ProviderInfiniteScrollScreen(), 30 | ), 31 | ListViewItem( 32 | name: 'Provider Optimistic Response', 33 | page: ProviderOptimisticResponseScreen(), 34 | ), 35 | ListViewItem( 36 | name: 'GetX Navigation', 37 | page: GetxNavigationScreen(), 38 | ), 39 | ListViewItem( 40 | name: 'Custom ScrollView', 41 | page: CustomScrollViewScreen(), 42 | ), 43 | ListViewItem( 44 | name: 'GetX State Management', 45 | page: GetxStateManagementScreen(), 46 | ), 47 | ListViewItem( 48 | name: 'Retrofit Intro', 49 | page: RetrofitScreen(), 50 | ), 51 | ListViewItem( 52 | name: 'Custom Keyboard', 53 | page: CustomKeyboard(), 54 | ), 55 | ListViewItem( 56 | name: 'Custom Paint', 57 | page: CustomPaintHermesAppleWatch(), 58 | ), 59 | ], 60 | ); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /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: codefactory_youtube_flutter_tutorial 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | provider: ^4.3.2 25 | get: ^3.17.1 26 | flutter: 27 | sdk: flutter 28 | 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.0 33 | retrofit: ^1.3.4+1 34 | dio: ^3.0.1 35 | intl: ^0.16.1 36 | 37 | dev_dependencies: 38 | flutter_test: 39 | sdk: flutter 40 | 41 | retrofit_generator: ^1.4.1+1 42 | build_runner: ^1.10.12 43 | json_serializable: ^3.5.1 44 | 45 | # For information on the generic Dart part of this file, see the 46 | # following page: https://dart.dev/tools/pub/pubspec 47 | 48 | # The following section is specific to Flutter. 49 | flutter: 50 | 51 | # The following line ensures that the Material Icons font is 52 | # included with your application, so that you can use the icons in 53 | # the material Icons class. 54 | uses-material-design: true 55 | 56 | assets: 57 | - assets/ 58 | 59 | # To add assets to your application, add an assets section, like this: 60 | # assets: 61 | # - images/a_dot_burr.jpeg 62 | # - images/a_dot_ham.jpeg 63 | 64 | # An image asset can refer to one or more resolution-specific "variants", see 65 | # https://flutter.dev/assets-and-images/#resolution-aware. 66 | 67 | # For details regarding adding assets from package dependencies, see 68 | # https://flutter.dev/assets-and-images/#from-packages 69 | 70 | # To add custom fonts to your application, add a fonts section here, 71 | # in this "flutter" section. Each entry in this list should have a 72 | # "family" key with the font family name, and a "fonts" key with a 73 | # list giving the asset and other descriptors for the font. For 74 | # example: 75 | # fonts: 76 | # - family: Schyler 77 | # fonts: 78 | # - asset: fonts/Schyler-Regular.ttf 79 | # - asset: fonts/Schyler-Italic.ttf 80 | # style: italic 81 | # - family: Trajan Pro 82 | # fonts: 83 | # - asset: fonts/TrajanPro.ttf 84 | # - asset: fonts/TrajanPro_Bold.ttf 85 | # weight: 700 86 | # 87 | # For details regarding fonts from package dependencies, 88 | # see https://flutter.dev/custom-fonts/#from-packages 89 | -------------------------------------------------------------------------------- /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/CustomKeyboard/CustomKeyboard.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:intl/intl.dart'; 3 | 4 | import 'KeyboardKey.dart'; 5 | 6 | class CustomKeyboard extends StatefulWidget { 7 | @override 8 | _CustomKeyboardState createState() => _CustomKeyboardState(); 9 | } 10 | 11 | class _CustomKeyboardState extends State { 12 | List> keys; 13 | String amount; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | 19 | keys = [ 20 | ['1', '2', '3'], 21 | ['4', '5', '6'], 22 | ['7', '8', '9'], 23 | ['00', '0', Icon(Icons.keyboard_backspace)], 24 | ]; 25 | 26 | amount = ''; 27 | } 28 | 29 | onKeyTap(val) { 30 | if(val == '0' && amount.length == 0){ 31 | return; 32 | } 33 | 34 | setState(() { 35 | amount = amount + val; 36 | }); 37 | } 38 | 39 | onBackspacePress() { 40 | if (amount.length == 0) { 41 | return; 42 | } 43 | 44 | setState(() { 45 | amount = amount.substring(0, amount.length - 1); 46 | }); 47 | } 48 | 49 | renderKeyboard() { 50 | return keys 51 | .map( 52 | (x) => Row( 53 | children: x.map( 54 | (y) { 55 | return Expanded( 56 | child: KeyboardKey( 57 | label: y, 58 | value: y, 59 | onTap: (val) { 60 | if (val is Widget) { 61 | onBackspacePress(); 62 | } else { 63 | onKeyTap(val); 64 | } 65 | }, 66 | ), 67 | ); 68 | }, 69 | ).toList(), 70 | ), 71 | ) 72 | .toList(); 73 | } 74 | 75 | renderAmount() { 76 | String display = '보낼금액'; 77 | TextStyle style = TextStyle( 78 | fontSize: 30.0, 79 | fontWeight: FontWeight.bold, 80 | color: Colors.grey, 81 | ); 82 | 83 | if (this.amount.length > 0) { 84 | NumberFormat f = NumberFormat('#,###'); 85 | 86 | display = f.format(int.parse(amount)) + '원'; 87 | style = style.copyWith( 88 | color: Colors.black, 89 | ); 90 | } 91 | 92 | return Expanded( 93 | child: Center( 94 | child: Text( 95 | display, 96 | style: style, 97 | ), 98 | ), 99 | ); 100 | } 101 | 102 | renderConfirmButton() { 103 | return Padding( 104 | padding: EdgeInsets.symmetric(horizontal: 16.0), 105 | child: Row( 106 | children: [ 107 | Expanded( 108 | child: FlatButton( 109 | color: Colors.orange, 110 | disabledColor: Colors.grey[200], 111 | onPressed: amount.length > 0 ? (){ 112 | 113 | } : null, 114 | child: Padding( 115 | padding: EdgeInsets.symmetric(vertical: 16.0), 116 | child: Text( 117 | '확인', 118 | style: TextStyle( 119 | color: amount.length > 0 ? Colors.white : Colors.grey, 120 | fontWeight: FontWeight.bold, 121 | ), 122 | ), 123 | ), 124 | ), 125 | ), 126 | ], 127 | ), 128 | ); 129 | } 130 | 131 | @override 132 | Widget build(BuildContext context) { 133 | return Scaffold( 134 | body: SafeArea( 135 | child: Column( 136 | children: [ 137 | renderAmount(), 138 | ...renderKeyboard(), 139 | renderConfirmButton(), 140 | ], 141 | ), 142 | ), 143 | ); 144 | } 145 | } 146 | -------------------------------------------------------------------------------- /lib/Screens/CustomScrollView/CustomScrollViewScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class _SliverFixedHeader extends SliverPersistentHeaderDelegate { 4 | final double maxHeight; 5 | final double minHeight; 6 | final Widget child; 7 | 8 | _SliverFixedHeader({ 9 | @required this.maxHeight, 10 | @required this.minHeight, 11 | @required this.child, 12 | }); 13 | 14 | @override 15 | Widget build(BuildContext context, double shrinkOffset, 16 | bool overlapsContent) { 17 | // TODO: implement build 18 | return SizedBox.expand( 19 | child: child, 20 | ); 21 | } 22 | 23 | @override 24 | // TODO: implement maxExtent 25 | double get maxExtent => this.maxHeight; 26 | 27 | @override 28 | // TODO: implement minExtent 29 | double get minExtent => this.minHeight; 30 | 31 | @override 32 | bool shouldRebuild(_SliverFixedHeader oldDelegate,) { 33 | // TODO: implement shouldRebuild 34 | return oldDelegate.maxHeight != this.maxHeight || 35 | oldDelegate.minHeight != this.minHeight || 36 | oldDelegate.child != this.child; 37 | } 38 | 39 | } 40 | 41 | class CustomScrollViewScreen extends StatefulWidget { 42 | @override 43 | _CustomScrollViewScreenState createState() => _CustomScrollViewScreenState(); 44 | } 45 | 46 | class _CustomScrollViewScreenState extends State { 47 | getColor(index,) { 48 | final color = [ 49 | Colors.red, 50 | Colors.orange, 51 | Colors.yellow, 52 | Colors.green, 53 | Colors.blue, 54 | Colors.indigo, 55 | Colors.purple, 56 | ]; 57 | 58 | return color[index % color.length]; 59 | } 60 | 61 | renderSliverAppbar() { 62 | return SliverAppBar( 63 | backgroundColor: Colors.black, 64 | expandedHeight: 200.0, 65 | pinned: true, 66 | flexibleSpace: Image.asset( 67 | 'assets/seoul-night-view.jpg', 68 | fit: BoxFit.cover, 69 | ), 70 | title: Text( 71 | 'Seoul', 72 | ), 73 | ); 74 | } 75 | 76 | renderSliverGrid() { 77 | return SliverGrid( 78 | delegate: SliverChildBuilderDelegate( 79 | (context, index) { 80 | return Container( 81 | color: getColor( 82 | index, 83 | ), 84 | ); 85 | }, 86 | childCount: 32, 87 | ), 88 | gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( 89 | crossAxisCount: 4, 90 | ), 91 | ); 92 | } 93 | 94 | renderSliverList() { 95 | return SliverList( 96 | delegate: SliverChildBuilderDelegate( 97 | (context, index) { 98 | return Container( 99 | color: getColor( 100 | index, 101 | ), 102 | height: 100.0, 103 | ); 104 | }, 105 | childCount: 8, 106 | ), 107 | ); 108 | } 109 | 110 | renderHeader() { 111 | return SliverPersistentHeader( 112 | pinned: true, 113 | delegate: _SliverFixedHeader( 114 | maxHeight: 200.0, 115 | minHeight: 75.0, 116 | child: Container( 117 | decoration: BoxDecoration( 118 | color: Colors.white, 119 | border: Border( 120 | bottom: BorderSide( 121 | color: Colors.black, 122 | ), 123 | ), 124 | ), 125 | child: Center( 126 | child: Text( 127 | '신기하지~', 128 | ), 129 | ), 130 | ), 131 | ), 132 | ); 133 | } 134 | 135 | @override 136 | Widget build(BuildContext context) { 137 | return Scaffold( 138 | body: CustomScrollView( 139 | slivers: [ 140 | renderSliverAppbar(), 141 | renderHeader(), 142 | renderSliverGrid(), 143 | renderHeader(), 144 | renderSliverList(), 145 | renderHeader(), 146 | renderSliverGrid(), 147 | renderHeader(), 148 | renderSliverList(), 149 | ], 150 | ), 151 | ); 152 | } 153 | } 154 | -------------------------------------------------------------------------------- /lib/Screens/CustomPaintHermesAppleWatch/WatchPainter.dart: -------------------------------------------------------------------------------- 1 | import 'dart:math'; 2 | 3 | import 'package:flutter/material.dart'; 4 | 5 | class WatchPainter extends CustomPainter { 6 | final TextPainter tp; 7 | final Color primaryColor; 8 | final DateTime now; 9 | 10 | WatchPainter( 11 | DateTime now, 12 | ) : this.tp = TextPainter( 13 | textDirection: TextDirection.ltr, 14 | ), 15 | this.primaryColor = Color(0xFFE57242), 16 | this.now = now; 17 | 18 | @override 19 | void paint(Canvas canvas, Size size) { 20 | final xCenter = size.width / 2; 21 | final yCenter = size.height / 2; 22 | 23 | final angle = (2 * pi) / 12; 24 | 25 | canvas.save(); 26 | 27 | canvas.translate(xCenter, yCenter); 28 | 29 | renderText(canvas, size, xCenter, yCenter, angle); 30 | renderHands(canvas, size, xCenter, yCenter); 31 | 32 | canvas.restore(); 33 | } 34 | 35 | renderHands(Canvas canvas, Size size, double xCenter, yCenter) { 36 | canvas.save(); 37 | 38 | final innerPaint = Paint() 39 | ..color = Colors.black 40 | ..strokeWidth = 4.0 41 | ..strokeCap = StrokeCap.round; 42 | 43 | final outerPaint = Paint() 44 | ..color = Colors.white 45 | ..strokeWidth = 6.0 46 | ..strokeCap = StrokeCap.round; 47 | 48 | final secPaint = Paint() 49 | ..color = primaryColor 50 | ..strokeWidth = 1.0 51 | ..strokeCap = StrokeCap.square; 52 | 53 | final rootPaint = Paint() 54 | ..color = Colors.white 55 | ..strokeWidth = 2.0 56 | ..strokeCap = StrokeCap.square; 57 | 58 | final rootWhiteCirclePaint = Paint() 59 | ..color = Colors.white 60 | ..style = PaintingStyle.fill; 61 | 62 | final rootPrimaryCirclePaint = Paint() 63 | ..color = primaryColor 64 | ..style = PaintingStyle.fill; 65 | 66 | final rootBlackCirclePaint = Paint() 67 | ..color = Colors.black 68 | ..style = PaintingStyle.fill; 69 | 70 | final rootOffset = 14.0; 71 | 72 | final hourAngle = 73 | (now.hour % 12) * (2 * pi / 12) + (now.minute) * (2 * pi / (12 * 60)); 74 | final minuteAngle = now.minute * (2 * pi / 60); 75 | final secondAngle = now.second * (2 * pi / 60); 76 | 77 | // 시침 78 | canvas.save(); 79 | 80 | canvas.rotate(hourAngle); 81 | canvas.drawLine(Offset.zero, Offset(0.0, -rootOffset), rootPaint); 82 | canvas.drawLine( 83 | Offset(0.0, -rootOffset), Offset(0.0, -xCenter * 0.7), outerPaint); 84 | canvas.drawLine( 85 | Offset(0.0, -rootOffset), Offset(0.0, -xCenter * 0.7), innerPaint); 86 | 87 | canvas.restore(); 88 | 89 | // 분침 90 | canvas.save(); 91 | 92 | canvas.rotate(minuteAngle); 93 | canvas.drawLine(Offset.zero, Offset(0.0, -rootOffset), rootPaint); 94 | canvas.drawLine( 95 | Offset(0.0, -rootOffset), Offset(0.0, -xCenter * 0.9), outerPaint); 96 | canvas.drawLine( 97 | Offset(0.0, -rootOffset), Offset(0.0, -xCenter * 0.9), innerPaint); 98 | canvas.restore(); 99 | 100 | // 시침 101 | canvas.save(); 102 | 103 | canvas.rotate(secondAngle); 104 | canvas.drawLine(Offset(0.0, 10.0), Offset(0.0, -xCenter * 0.9), secPaint); 105 | canvas.drawCircle(Offset.zero, 6.0, rootWhiteCirclePaint); 106 | canvas.drawCircle(Offset.zero, 4.0, rootPrimaryCirclePaint); 107 | canvas.drawCircle(Offset.zero, 2.0, rootBlackCirclePaint); 108 | 109 | canvas.restore(); 110 | 111 | canvas.restore(); 112 | } 113 | 114 | renderText( 115 | Canvas canvas, Size size, double xCenter, double yCenter, double angle) { 116 | canvas.save(); 117 | 118 | final vertLength = yCenter / cos(angle); 119 | final horiLength = xCenter / sin(angle * 2); 120 | 121 | final lengthList = [ 122 | yCenter, 123 | vertLength, 124 | horiLength, 125 | xCenter, 126 | horiLength, 127 | vertLength, 128 | yCenter, 129 | ]; 130 | 131 | for (int i = 0; i < 12; i++) { 132 | canvas.save(); 133 | 134 | canvas.translate(0.0, -lengthList[i % 6]); 135 | 136 | final display = i == 0 ? '12' : i.toString(); 137 | 138 | tp.text = TextSpan( 139 | text: display, 140 | style: TextStyle( 141 | fontSize: 20.0, 142 | fontWeight: FontWeight.bold, 143 | color: primaryColor, 144 | ), 145 | ); 146 | 147 | canvas.rotate(-angle * i); 148 | 149 | tp.layout(); 150 | tp.paint( 151 | canvas, 152 | Offset( 153 | -(tp.width / 2), 154 | -(tp.height / 2), 155 | ), 156 | ); 157 | 158 | canvas.restore(); 159 | 160 | canvas.rotate(angle); 161 | } 162 | 163 | canvas.restore(); 164 | } 165 | 166 | @override 167 | bool shouldRepaint(covariant CustomPainter oldDelegate) { 168 | return true; 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /lib/Screens/GetxNavigation/GetxNavigationScreen.dart: -------------------------------------------------------------------------------- 1 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/DefaultAppbarLayout.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenFour.dart'; 3 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenThree.dart'; 4 | import 'package:codefactory_youtube_flutter_tutorial/Screens/GetxNavigation/ScreenTwo.dart'; 5 | import 'package:flutter/material.dart'; 6 | import 'package:get/get.dart'; 7 | 8 | class GetxNavigationScreen extends StatefulWidget { 9 | @override 10 | _GetxNavigationScreenState createState() => _GetxNavigationScreenState(); 11 | } 12 | 13 | class _GetxNavigationScreenState extends State { 14 | int returnVal = 0; 15 | Transition transition = Transition.cupertino; 16 | 17 | @override 18 | Widget build(BuildContext context) { 19 | return DefaultAppbarLayout( 20 | title: 'Getx Navigation', 21 | child: Center( 22 | child: SingleChildScrollView( 23 | child: Column( 24 | mainAxisAlignment: MainAxisAlignment.center, 25 | children: [ 26 | RaisedButton( 27 | onPressed: () { 28 | // Navigator.of(context).push( 29 | // MaterialPageRoute( 30 | // builder: (_) => ScreenTwo(), 31 | // ) 32 | // ); 33 | 34 | Get.to(ScreenTwo()); 35 | }, 36 | child: Text( 37 | 'Screen Two 이동', 38 | ), 39 | ), 40 | RaisedButton( 41 | onPressed: () { 42 | // Navigator.of(context).pushReplacement( 43 | // MaterialPageRoute( 44 | // builder: (_) => ScreenTwo(), 45 | // ), 46 | // ); 47 | 48 | Get.off(ScreenTwo()); 49 | }, 50 | child: Text( 51 | '전 페이지로 돌아가지 못하게하기', 52 | ), 53 | ), 54 | RaisedButton( 55 | onPressed: () { 56 | // Navigator.of(context).pushAndRemoveUntil( 57 | // MaterialPageRoute( 58 | // builder: (_) => ScreenTwo(), 59 | // ), 60 | // (route) => false, 61 | // ); 62 | 63 | Get.offAll(ScreenTwo()); 64 | }, 65 | child: Text( 66 | '모든 페이지 스택 삭제하기', 67 | ), 68 | ), 69 | Divider(), 70 | Text( 71 | '리턴값 : $returnVal', 72 | ), 73 | RaisedButton( 74 | onPressed: () async { 75 | final resp = await Get.to(ScreenThree()); 76 | 77 | setState(() { 78 | returnVal = resp; 79 | }); 80 | }, 81 | child: Text( 82 | '리턴값 받아오기', 83 | ), 84 | ), 85 | Divider(), 86 | RaisedButton( 87 | onPressed: () { 88 | Get.to(ScreenFour(), arguments: 'Getx짱~'); 89 | }, 90 | child: Text( 91 | '아규먼트 보내기', 92 | ), 93 | ), 94 | Divider(), 95 | RaisedButton( 96 | onPressed: () { 97 | Get.to( 98 | ScreenTwo(), 99 | transition: Transition.fadeIn, 100 | ); 101 | }, 102 | child: Text( 103 | '트랜지션', 104 | ), 105 | ), 106 | RaisedButton( 107 | onPressed: () { 108 | Get.toNamed('/five/test?id=444&name=cf'); 109 | }, 110 | child: Text( 111 | '네임드 라우트', 112 | ), 113 | ), 114 | RaisedButton( 115 | onPressed: () { 116 | Get.snackbar( 117 | '제목', 118 | '내용', 119 | ); 120 | }, 121 | child: Text( 122 | 'Snackbar', 123 | ), 124 | ), 125 | RaisedButton( 126 | onPressed: () { 127 | Get.defaultDialog(middleText: 'Dialog'); 128 | }, 129 | child: Text( 130 | 'Dialog', 131 | ), 132 | ), 133 | RaisedButton( 134 | onPressed: () { 135 | Get.bottomSheet( 136 | Container( 137 | color: Colors.white, 138 | child: Wrap( 139 | children: [ 140 | ListTile( 141 | leading: Icon(Icons.music_note), 142 | title: Text('Music'), 143 | onTap: () => {}), 144 | ListTile( 145 | leading: Icon(Icons.videocam), 146 | title: Text('Video'), 147 | onTap: () => {}, 148 | ), 149 | ], 150 | ), 151 | ), 152 | ); 153 | }, 154 | child: Text( 155 | 'Bottom Sheet', 156 | ), 157 | ), 158 | ], 159 | ), 160 | ), 161 | ), 162 | ); 163 | } 164 | } 165 | -------------------------------------------------------------------------------- /lib/Screens/RowAndColumn/RowAndColumn.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:codefactory_youtube_flutter_tutorial/Layouts/index.dart'; 3 | 4 | class RowAndColumnScreen extends StatefulWidget { 5 | @override 6 | _RowAndColumnScreenState createState() => _RowAndColumnScreenState(); 7 | } 8 | 9 | class _RowAndColumnScreenState extends State { 10 | MainAxisAlignment _mainAxisAlignment = MainAxisAlignment.start; 11 | CrossAxisAlignment _crossAxisAlignment = CrossAxisAlignment.start; 12 | VerticalDirection _verticalDirection = VerticalDirection.down; 13 | TextDirection _textDirection = TextDirection.ltr; 14 | TextBaseline _textBaseline = TextBaseline.alphabetic; 15 | MainAxisSize _mainAxisSize = MainAxisSize.max; 16 | 17 | _renderFlutterLogo({ 18 | @required Color color, 19 | }) { 20 | return Container( 21 | color: color, 22 | child: FlutterLogo( 23 | size: 40, 24 | ), 25 | ); 26 | } 27 | 28 | List _renderTextSamples() { 29 | return [ 30 | Text( 31 | 'Code Factory', 32 | style: TextStyle( 33 | fontSize: 40.0, 34 | color: Colors.green, 35 | decoration: TextDecoration.underline, 36 | textBaseline: _textBaseline, 37 | ), 38 | ), 39 | Text( 40 | 'Code Factory', 41 | style: TextStyle( 42 | fontSize: 20.0, 43 | color: Colors.white, 44 | decoration: TextDecoration.underline, 45 | textBaseline: _textBaseline, 46 | ), 47 | ), 48 | ]; 49 | } 50 | 51 | List _renderLogoSamples() { 52 | return [ 53 | _renderFlutterLogo( 54 | color: Colors.red, 55 | ), 56 | _renderFlutterLogo( 57 | color: Colors.yellow, 58 | ), 59 | _renderFlutterLogo( 60 | color: Colors.green, 61 | ), 62 | _renderFlutterLogo( 63 | color: Colors.blue, 64 | ), 65 | _renderFlutterLogo( 66 | color: Colors.purple, 67 | ), 68 | ]; 69 | } 70 | 71 | _renderTitle({ 72 | @required String title, 73 | }) { 74 | return Text( 75 | title, 76 | style: TextStyle( 77 | fontSize: 20, 78 | fontWeight: FontWeight.w700, 79 | ), 80 | ); 81 | } 82 | 83 | _renderContents() { 84 | return Expanded( 85 | child: SingleChildScrollView( 86 | child: Column( 87 | children: [ 88 | /* 89 | * ROW!!! 90 | * */ 91 | Padding( 92 | padding: EdgeInsets.all(8.0), 93 | child: _renderTitle(title: 'ROW'), 94 | ), 95 | Container( 96 | color: Colors.black, 97 | width: MediaQuery.of(context).size.width, 98 | height: MediaQuery.of(context).size.width, 99 | child: Row( 100 | verticalDirection: _verticalDirection, 101 | textDirection: _textDirection, 102 | mainAxisAlignment: _mainAxisAlignment, 103 | crossAxisAlignment: _crossAxisAlignment, 104 | textBaseline: _textBaseline, 105 | mainAxisSize: _mainAxisSize, 106 | children: _renderLogoSamples(), 107 | ), 108 | ), 109 | Container( 110 | height: 60.0, 111 | ), 112 | /* 113 | * COLUMN!!! 114 | * */ 115 | Padding( 116 | padding: EdgeInsets.all(8.0), 117 | child: _renderTitle(title: 'COLUMN'), 118 | ), 119 | Container( 120 | color: Colors.black, 121 | width: MediaQuery.of(context).size.width, 122 | height: MediaQuery.of(context).size.width, 123 | child: Column( 124 | verticalDirection: _verticalDirection, 125 | textDirection: _textDirection, 126 | mainAxisAlignment: _mainAxisAlignment, 127 | crossAxisAlignment: _crossAxisAlignment, 128 | textBaseline: _textBaseline, 129 | mainAxisSize: _mainAxisSize, 130 | children: _renderLogoSamples(), 131 | ), 132 | ), 133 | Container( 134 | height: 60.0, 135 | ), 136 | /* 137 | * ROW TEXT!!! 138 | * */ 139 | Padding( 140 | padding: EdgeInsets.all(8.0), 141 | child: _renderTitle(title: 'ROW TEXT'), 142 | ), 143 | Container( 144 | color: Colors.black, 145 | width: MediaQuery.of(context).size.width, 146 | height: MediaQuery.of(context).size.width, 147 | child: Row( 148 | verticalDirection: _verticalDirection, 149 | textDirection: _textDirection, 150 | mainAxisAlignment: _mainAxisAlignment, 151 | crossAxisAlignment: _crossAxisAlignment, 152 | textBaseline: _textBaseline, 153 | mainAxisSize: _mainAxisSize, 154 | children: _renderTextSamples(), 155 | ), 156 | ), 157 | Container( 158 | height: 60.0, 159 | ), 160 | /* 161 | * COLUMN TEXT!!! 162 | * */ 163 | Padding( 164 | padding: EdgeInsets.all(8.0), 165 | child: _renderTitle(title: 'COLUMN TEXT'), 166 | ), 167 | Container( 168 | color: Colors.black, 169 | width: MediaQuery.of(context).size.width, 170 | height: MediaQuery.of(context).size.width, 171 | child: Column( 172 | verticalDirection: _verticalDirection, 173 | textDirection: _textDirection, 174 | mainAxisAlignment: _mainAxisAlignment, 175 | crossAxisAlignment: _crossAxisAlignment, 176 | textBaseline: _textBaseline, 177 | mainAxisSize: _mainAxisSize, 178 | children: _renderTextSamples(), 179 | ), 180 | ), 181 | Container( 182 | height: 60.0, 183 | ), 184 | /* 185 | * ROW CENTER!!! 186 | * */ 187 | Padding( 188 | padding: EdgeInsets.all(8.0), 189 | child: _renderTitle(title: 'ROW CENTER'), 190 | ), 191 | Container( 192 | color: Colors.black, 193 | width: MediaQuery.of(context).size.width, 194 | height: MediaQuery.of(context).size.width, 195 | child: Center( 196 | child: Container( 197 | color: Colors.grey, 198 | child: Row( 199 | verticalDirection: _verticalDirection, 200 | textDirection: _textDirection, 201 | mainAxisAlignment: _mainAxisAlignment, 202 | crossAxisAlignment: _crossAxisAlignment, 203 | textBaseline: _textBaseline, 204 | mainAxisSize: _mainAxisSize, 205 | children: _renderLogoSamples(), 206 | ), 207 | ), 208 | ), 209 | ), 210 | Container( 211 | height: 60.0, 212 | ), 213 | /* 214 | * ROW CENTER!!! 215 | * */ 216 | Padding( 217 | padding: EdgeInsets.all(8.0), 218 | child: _renderTitle(title: 'COLUMN CENTER'), 219 | ), 220 | Container( 221 | color: Colors.black, 222 | width: MediaQuery.of(context).size.width, 223 | height: MediaQuery.of(context).size.width, 224 | child: Center( 225 | child: Container( 226 | color: Colors.grey, 227 | child: Column( 228 | verticalDirection: _verticalDirection, 229 | textDirection: _textDirection, 230 | mainAxisAlignment: _mainAxisAlignment, 231 | crossAxisAlignment: _crossAxisAlignment, 232 | textBaseline: _textBaseline, 233 | mainAxisSize: _mainAxisSize, 234 | children: _renderLogoSamples(), 235 | ), 236 | ), 237 | ), 238 | ), 239 | ], 240 | ), 241 | ), 242 | ); 243 | } 244 | 245 | _renderRadios({ 246 | @required List enumOptions, 247 | @required Function onChanged, 248 | @required dynamic groupValue, 249 | }) { 250 | return Container( 251 | height: 50, 252 | child: ListView( 253 | scrollDirection: Axis.horizontal, 254 | children: enumOptions 255 | .map( 256 | (x) => Row( 257 | children: [ 258 | Radio( 259 | value: x, 260 | onChanged: onChanged, 261 | groupValue: groupValue, 262 | ), 263 | Text( 264 | x.toString().split('.')[1], 265 | ), 266 | ], 267 | ), 268 | ) 269 | .toList(), 270 | ), 271 | ); 272 | } 273 | 274 | _renderRadioTitle({ 275 | @required String title, 276 | }) { 277 | return Row( 278 | children: [ 279 | Text( 280 | title, 281 | style: TextStyle( 282 | fontSize: 16.0, 283 | fontWeight: FontWeight.w700, 284 | ), 285 | ), 286 | ], 287 | ); 288 | } 289 | 290 | _renderBottomOptions() { 291 | return Container( 292 | height: MediaQuery.of(context).size.height * 0.25, 293 | color: Colors.grey[200], 294 | child: Padding( 295 | padding: EdgeInsets.all(16.0), 296 | child: SingleChildScrollView( 297 | child: Column( 298 | children: [ 299 | _renderRadioTitle( 300 | title: 'MainAxisAlignment', 301 | ), 302 | _renderRadios( 303 | enumOptions: MainAxisAlignment.values, 304 | onChanged: (value) { 305 | setState(() { 306 | _mainAxisAlignment = value; 307 | }); 308 | }, 309 | groupValue: _mainAxisAlignment, 310 | ), 311 | _renderRadioTitle( 312 | title: 'CrossAxisAlignment', 313 | ), 314 | _renderRadios( 315 | enumOptions: CrossAxisAlignment.values, 316 | onChanged: (value) { 317 | setState(() { 318 | _crossAxisAlignment = value; 319 | }); 320 | }, 321 | groupValue: _crossAxisAlignment, 322 | ), 323 | _renderRadioTitle( 324 | title: 'VerticalDirection', 325 | ), 326 | _renderRadios( 327 | enumOptions: VerticalDirection.values, 328 | onChanged: (value) { 329 | setState(() { 330 | _verticalDirection = value; 331 | }); 332 | }, 333 | groupValue: _verticalDirection, 334 | ), 335 | _renderRadioTitle( 336 | title: 'TextDirection', 337 | ), 338 | _renderRadios( 339 | enumOptions: TextDirection.values, 340 | onChanged: (value) { 341 | setState(() { 342 | _textDirection = value; 343 | }); 344 | }, 345 | groupValue: _textDirection, 346 | ), 347 | _renderRadioTitle( 348 | title: 'MainAxisSize', 349 | ), 350 | _renderRadios( 351 | enumOptions: MainAxisSize.values, 352 | onChanged: (value) { 353 | setState(() { 354 | _mainAxisSize = value; 355 | }); 356 | }, 357 | groupValue: _mainAxisSize, 358 | ), 359 | ], 360 | ), 361 | ), 362 | ), 363 | ); 364 | } 365 | 366 | @override 367 | Widget build(BuildContext context) { 368 | return DefaultAppbarLayout( 369 | title: 'Row & Column', 370 | child: Column( 371 | children: [ 372 | _renderContents(), 373 | _renderBottomOptions(), 374 | ], 375 | ), 376 | ); 377 | } 378 | } 379 | -------------------------------------------------------------------------------- /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: "14.0.0" 11 | analyzer: 12 | dependency: transitive 13 | description: 14 | name: analyzer 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "0.41.1" 18 | args: 19 | dependency: transitive 20 | description: 21 | name: args 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.6.0" 25 | async: 26 | dependency: transitive 27 | description: 28 | name: async 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "2.5.0-nullsafety.1" 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-nullsafety.1" 39 | build: 40 | dependency: transitive 41 | description: 42 | name: build 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.6.1" 46 | build_config: 47 | dependency: transitive 48 | description: 49 | name: build_config 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "0.4.5" 53 | build_daemon: 54 | dependency: transitive 55 | description: 56 | name: build_daemon 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "2.1.5" 60 | build_resolvers: 61 | dependency: transitive 62 | description: 63 | name: build_resolvers 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.5.2" 67 | build_runner: 68 | dependency: "direct dev" 69 | description: 70 | name: build_runner 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "1.10.12" 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: "6.1.6" 81 | built_collection: 82 | dependency: transitive 83 | description: 84 | name: built_collection 85 | url: "https://pub.dartlang.org" 86 | source: hosted 87 | version: "4.3.2" 88 | built_value: 89 | dependency: transitive 90 | description: 91 | name: built_value 92 | url: "https://pub.dartlang.org" 93 | source: hosted 94 | version: "7.1.0" 95 | characters: 96 | dependency: transitive 97 | description: 98 | name: characters 99 | url: "https://pub.dartlang.org" 100 | source: hosted 101 | version: "1.1.0-nullsafety.3" 102 | charcode: 103 | dependency: transitive 104 | description: 105 | name: charcode 106 | url: "https://pub.dartlang.org" 107 | source: hosted 108 | version: "1.2.0-nullsafety.1" 109 | checked_yaml: 110 | dependency: transitive 111 | description: 112 | name: checked_yaml 113 | url: "https://pub.dartlang.org" 114 | source: hosted 115 | version: "1.0.4" 116 | cli_util: 117 | dependency: transitive 118 | description: 119 | name: cli_util 120 | url: "https://pub.dartlang.org" 121 | source: hosted 122 | version: "0.2.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-nullsafety.1" 130 | code_builder: 131 | dependency: transitive 132 | description: 133 | name: code_builder 134 | url: "https://pub.dartlang.org" 135 | source: hosted 136 | version: "3.5.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-nullsafety.3" 144 | convert: 145 | dependency: transitive 146 | description: 147 | name: convert 148 | url: "https://pub.dartlang.org" 149 | source: hosted 150 | version: "2.1.1" 151 | crypto: 152 | dependency: transitive 153 | description: 154 | name: crypto 155 | url: "https://pub.dartlang.org" 156 | source: hosted 157 | version: "2.1.5" 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.0" 165 | dart_style: 166 | dependency: transitive 167 | description: 168 | name: dart_style 169 | url: "https://pub.dartlang.org" 170 | source: hosted 171 | version: "1.3.10" 172 | dio: 173 | dependency: "direct main" 174 | description: 175 | name: dio 176 | url: "https://pub.dartlang.org" 177 | source: hosted 178 | version: "3.0.10" 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-nullsafety.1" 186 | file: 187 | dependency: transitive 188 | description: 189 | name: file 190 | url: "https://pub.dartlang.org" 191 | source: hosted 192 | version: "5.2.1" 193 | fixnum: 194 | dependency: transitive 195 | description: 196 | name: fixnum 197 | url: "https://pub.dartlang.org" 198 | source: hosted 199 | version: "0.10.11" 200 | flutter: 201 | dependency: "direct main" 202 | description: flutter 203 | source: sdk 204 | version: "0.0.0" 205 | flutter_test: 206 | dependency: "direct dev" 207 | description: flutter 208 | source: sdk 209 | version: "0.0.0" 210 | get: 211 | dependency: "direct main" 212 | description: 213 | name: get 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "3.17.1" 217 | glob: 218 | dependency: transitive 219 | description: 220 | name: glob 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.2.0" 224 | graphs: 225 | dependency: transitive 226 | description: 227 | name: graphs 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "0.2.0" 231 | http_multi_server: 232 | dependency: transitive 233 | description: 234 | name: http_multi_server 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "2.2.0" 238 | http_parser: 239 | dependency: transitive 240 | description: 241 | name: http_parser 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "3.1.4" 245 | intl: 246 | dependency: "direct main" 247 | description: 248 | name: intl 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "0.16.1" 252 | io: 253 | dependency: transitive 254 | description: 255 | name: io 256 | url: "https://pub.dartlang.org" 257 | source: hosted 258 | version: "0.3.4" 259 | js: 260 | dependency: transitive 261 | description: 262 | name: js 263 | url: "https://pub.dartlang.org" 264 | source: hosted 265 | version: "0.6.2" 266 | json_annotation: 267 | dependency: transitive 268 | description: 269 | name: json_annotation 270 | url: "https://pub.dartlang.org" 271 | source: hosted 272 | version: "3.1.1" 273 | json_serializable: 274 | dependency: "direct dev" 275 | description: 276 | name: json_serializable 277 | url: "https://pub.dartlang.org" 278 | source: hosted 279 | version: "3.5.1" 280 | logging: 281 | dependency: transitive 282 | description: 283 | name: logging 284 | url: "https://pub.dartlang.org" 285 | source: hosted 286 | version: "0.11.4" 287 | matcher: 288 | dependency: transitive 289 | description: 290 | name: matcher 291 | url: "https://pub.dartlang.org" 292 | source: hosted 293 | version: "0.12.10-nullsafety.1" 294 | meta: 295 | dependency: transitive 296 | description: 297 | name: meta 298 | url: "https://pub.dartlang.org" 299 | source: hosted 300 | version: "1.3.0-nullsafety.3" 301 | mime: 302 | dependency: transitive 303 | description: 304 | name: mime 305 | url: "https://pub.dartlang.org" 306 | source: hosted 307 | version: "0.9.7" 308 | nested: 309 | dependency: transitive 310 | description: 311 | name: nested 312 | url: "https://pub.dartlang.org" 313 | source: hosted 314 | version: "0.0.4" 315 | node_interop: 316 | dependency: transitive 317 | description: 318 | name: node_interop 319 | url: "https://pub.dartlang.org" 320 | source: hosted 321 | version: "1.2.1" 322 | node_io: 323 | dependency: transitive 324 | description: 325 | name: node_io 326 | url: "https://pub.dartlang.org" 327 | source: hosted 328 | version: "1.2.0" 329 | package_config: 330 | dependency: transitive 331 | description: 332 | name: package_config 333 | url: "https://pub.dartlang.org" 334 | source: hosted 335 | version: "1.9.3" 336 | path: 337 | dependency: transitive 338 | description: 339 | name: path 340 | url: "https://pub.dartlang.org" 341 | source: hosted 342 | version: "1.8.0-nullsafety.1" 343 | pedantic: 344 | dependency: transitive 345 | description: 346 | name: pedantic 347 | url: "https://pub.dartlang.org" 348 | source: hosted 349 | version: "1.9.2" 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: "4.3.2+2" 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.4" 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.7" 378 | quiver: 379 | dependency: transitive 380 | description: 381 | name: quiver 382 | url: "https://pub.dartlang.org" 383 | source: hosted 384 | version: "2.1.5" 385 | retrofit: 386 | dependency: "direct main" 387 | description: 388 | name: retrofit 389 | url: "https://pub.dartlang.org" 390 | source: hosted 391 | version: "1.3.4+1" 392 | retrofit_generator: 393 | dependency: "direct dev" 394 | description: 395 | name: retrofit_generator 396 | url: "https://pub.dartlang.org" 397 | source: hosted 398 | version: "1.4.1+1" 399 | shelf: 400 | dependency: transitive 401 | description: 402 | name: shelf 403 | url: "https://pub.dartlang.org" 404 | source: hosted 405 | version: "0.7.9" 406 | shelf_web_socket: 407 | dependency: transitive 408 | description: 409 | name: shelf_web_socket 410 | url: "https://pub.dartlang.org" 411 | source: hosted 412 | version: "0.2.3" 413 | sky_engine: 414 | dependency: transitive 415 | description: flutter 416 | source: sdk 417 | version: "0.0.99" 418 | source_gen: 419 | dependency: transitive 420 | description: 421 | name: source_gen 422 | url: "https://pub.dartlang.org" 423 | source: hosted 424 | version: "0.9.10+1" 425 | source_span: 426 | dependency: transitive 427 | description: 428 | name: source_span 429 | url: "https://pub.dartlang.org" 430 | source: hosted 431 | version: "1.8.0-nullsafety.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-nullsafety.1" 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-nullsafety.1" 446 | stream_transform: 447 | dependency: transitive 448 | description: 449 | name: stream_transform 450 | url: "https://pub.dartlang.org" 451 | source: hosted 452 | version: "1.2.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-nullsafety.1" 460 | term_glyph: 461 | dependency: transitive 462 | description: 463 | name: term_glyph 464 | url: "https://pub.dartlang.org" 465 | source: hosted 466 | version: "1.2.0-nullsafety.1" 467 | test_api: 468 | dependency: transitive 469 | description: 470 | name: test_api 471 | url: "https://pub.dartlang.org" 472 | source: hosted 473 | version: "0.2.19-nullsafety.2" 474 | timing: 475 | dependency: transitive 476 | description: 477 | name: timing 478 | url: "https://pub.dartlang.org" 479 | source: hosted 480 | version: "0.1.1+3" 481 | tuple: 482 | dependency: transitive 483 | description: 484 | name: tuple 485 | url: "https://pub.dartlang.org" 486 | source: hosted 487 | version: "1.0.3" 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-nullsafety.3" 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-nullsafety.3" 502 | watcher: 503 | dependency: transitive 504 | description: 505 | name: watcher 506 | url: "https://pub.dartlang.org" 507 | source: hosted 508 | version: "0.9.7+15" 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: "1.1.0" 516 | yaml: 517 | dependency: transitive 518 | description: 519 | name: yaml 520 | url: "https://pub.dartlang.org" 521 | source: hosted 522 | version: "2.2.1" 523 | sdks: 524 | dart: ">=2.10.0 <2.11.0" 525 | flutter: ">=1.16.0" 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 | FRAMEWORK_SEARCH_PATHS = ( 293 | "$(inherited)", 294 | "$(PROJECT_DIR)/Flutter", 295 | ); 296 | INFOPLIST_FILE = Runner/Info.plist; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 298 | LIBRARY_SEARCH_PATHS = ( 299 | "$(inherited)", 300 | "$(PROJECT_DIR)/Flutter", 301 | ); 302 | PRODUCT_BUNDLE_IDENTIFIER = com.example.codefactoryYoutubeFlutterTutorial; 303 | PRODUCT_NAME = "$(TARGET_NAME)"; 304 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 305 | SWIFT_VERSION = 5.0; 306 | VERSIONING_SYSTEM = "apple-generic"; 307 | }; 308 | name = Profile; 309 | }; 310 | 97C147031CF9000F007C117D /* Debug */ = { 311 | isa = XCBuildConfiguration; 312 | buildSettings = { 313 | ALWAYS_SEARCH_USER_PATHS = NO; 314 | CLANG_ANALYZER_NONNULL = YES; 315 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 316 | CLANG_CXX_LIBRARY = "libc++"; 317 | CLANG_ENABLE_MODULES = YES; 318 | CLANG_ENABLE_OBJC_ARC = YES; 319 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 320 | CLANG_WARN_BOOL_CONVERSION = YES; 321 | CLANG_WARN_COMMA = YES; 322 | CLANG_WARN_CONSTANT_CONVERSION = YES; 323 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 334 | CLANG_WARN_STRICT_PROTOTYPES = YES; 335 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 336 | CLANG_WARN_UNREACHABLE_CODE = YES; 337 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 338 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 339 | COPY_PHASE_STRIP = NO; 340 | DEBUG_INFORMATION_FORMAT = dwarf; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | ENABLE_TESTABILITY = YES; 343 | GCC_C_LANGUAGE_STANDARD = gnu99; 344 | GCC_DYNAMIC_NO_PIC = NO; 345 | GCC_NO_COMMON_BLOCKS = YES; 346 | GCC_OPTIMIZATION_LEVEL = 0; 347 | GCC_PREPROCESSOR_DEFINITIONS = ( 348 | "DEBUG=1", 349 | "$(inherited)", 350 | ); 351 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 352 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 353 | GCC_WARN_UNDECLARED_SELECTOR = YES; 354 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 355 | GCC_WARN_UNUSED_FUNCTION = YES; 356 | GCC_WARN_UNUSED_VARIABLE = YES; 357 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 358 | MTL_ENABLE_DEBUG_INFO = YES; 359 | ONLY_ACTIVE_ARCH = YES; 360 | SDKROOT = iphoneos; 361 | TARGETED_DEVICE_FAMILY = "1,2"; 362 | }; 363 | name = Debug; 364 | }; 365 | 97C147041CF9000F007C117D /* Release */ = { 366 | isa = XCBuildConfiguration; 367 | buildSettings = { 368 | ALWAYS_SEARCH_USER_PATHS = NO; 369 | CLANG_ANALYZER_NONNULL = YES; 370 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 371 | CLANG_CXX_LIBRARY = "libc++"; 372 | CLANG_ENABLE_MODULES = YES; 373 | CLANG_ENABLE_OBJC_ARC = YES; 374 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 375 | CLANG_WARN_BOOL_CONVERSION = YES; 376 | CLANG_WARN_COMMA = YES; 377 | CLANG_WARN_CONSTANT_CONVERSION = YES; 378 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 379 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 380 | CLANG_WARN_EMPTY_BODY = YES; 381 | CLANG_WARN_ENUM_CONVERSION = YES; 382 | CLANG_WARN_INFINITE_RECURSION = YES; 383 | CLANG_WARN_INT_CONVERSION = YES; 384 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 385 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 386 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 387 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 388 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 389 | CLANG_WARN_STRICT_PROTOTYPES = YES; 390 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 391 | CLANG_WARN_UNREACHABLE_CODE = YES; 392 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 393 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 394 | COPY_PHASE_STRIP = NO; 395 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | SUPPORTED_PLATFORMS = iphoneos; 410 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 411 | TARGETED_DEVICE_FAMILY = "1,2"; 412 | VALIDATE_PRODUCT = YES; 413 | }; 414 | name = Release; 415 | }; 416 | 97C147061CF9000F007C117D /* Debug */ = { 417 | isa = XCBuildConfiguration; 418 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 419 | buildSettings = { 420 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 421 | CLANG_ENABLE_MODULES = YES; 422 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 423 | ENABLE_BITCODE = NO; 424 | FRAMEWORK_SEARCH_PATHS = ( 425 | "$(inherited)", 426 | "$(PROJECT_DIR)/Flutter", 427 | ); 428 | INFOPLIST_FILE = Runner/Info.plist; 429 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 430 | LIBRARY_SEARCH_PATHS = ( 431 | "$(inherited)", 432 | "$(PROJECT_DIR)/Flutter", 433 | ); 434 | PRODUCT_BUNDLE_IDENTIFIER = com.example.codefactoryYoutubeFlutterTutorial; 435 | PRODUCT_NAME = "$(TARGET_NAME)"; 436 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 437 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 438 | SWIFT_VERSION = 5.0; 439 | VERSIONING_SYSTEM = "apple-generic"; 440 | }; 441 | name = Debug; 442 | }; 443 | 97C147071CF9000F007C117D /* Release */ = { 444 | isa = XCBuildConfiguration; 445 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 446 | buildSettings = { 447 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 448 | CLANG_ENABLE_MODULES = YES; 449 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 450 | ENABLE_BITCODE = NO; 451 | FRAMEWORK_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | INFOPLIST_FILE = Runner/Info.plist; 456 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 457 | LIBRARY_SEARCH_PATHS = ( 458 | "$(inherited)", 459 | "$(PROJECT_DIR)/Flutter", 460 | ); 461 | PRODUCT_BUNDLE_IDENTIFIER = com.example.codefactoryYoutubeFlutterTutorial; 462 | PRODUCT_NAME = "$(TARGET_NAME)"; 463 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 464 | SWIFT_VERSION = 5.0; 465 | VERSIONING_SYSTEM = "apple-generic"; 466 | }; 467 | name = Release; 468 | }; 469 | /* End XCBuildConfiguration section */ 470 | 471 | /* Begin XCConfigurationList section */ 472 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 97C147031CF9000F007C117D /* Debug */, 476 | 97C147041CF9000F007C117D /* Release */, 477 | 249021D3217E4FDB00AE95B9 /* Profile */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 97C147061CF9000F007C117D /* Debug */, 486 | 97C147071CF9000F007C117D /* Release */, 487 | 249021D4217E4FDB00AE95B9 /* Profile */, 488 | ); 489 | defaultConfigurationIsVisible = 0; 490 | defaultConfigurationName = Release; 491 | }; 492 | /* End XCConfigurationList section */ 493 | }; 494 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 495 | } 496 | --------------------------------------------------------------------------------