├── .gitignore ├── .metadata ├── README.md ├── analysis_options.yaml ├── android ├── .gitignore ├── app │ ├── build.gradle │ └── src │ │ ├── debug │ │ └── AndroidManifest.xml │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── kotlin │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutter_app_basic │ │ │ │ └── MainActivity.kt │ │ └── res │ │ │ ├── drawable-v21 │ │ │ └── launch_background.xml │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-night │ │ │ └── styles.xml │ │ │ └── values │ │ │ └── styles.xml │ │ └── profile │ │ └── AndroidManifest.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties └── settings.gradle ├── assets ├── icons │ ├── back.svg │ ├── bathtub.svg │ ├── box.svg │ ├── card.svg │ ├── cart.svg │ ├── cart_.svg │ ├── chat.svg │ ├── chest.svg │ ├── controls.svg │ ├── desk.svg │ ├── favorite.svg │ ├── home.svg │ ├── home_.svg │ ├── list.svg │ ├── profile.svg │ ├── profile_.svg │ ├── search.svg │ ├── sort.svg │ ├── tag.svg │ └── tick.svg └── images │ ├── furniture │ ├── img_product_1.png │ ├── img_product_2.png │ ├── img_product_3.png │ ├── img_product_4.png │ └── img_product_5.png │ ├── ic_profile.png │ ├── splash1.png │ └── splash2.png ├── config.json ├── ios ├── .gitignore ├── Flutter │ ├── AppFrameworkInfo.plist │ ├── Debug.xcconfig │ └── Release.xcconfig ├── Podfile ├── Runner.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ └── WorkspaceSettings.xcsettings │ └── xcshareddata │ │ └── xcschemes │ │ └── Runner.xcscheme ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── IDEWorkspaceChecks.plist │ │ └── WorkspaceSettings.xcsettings └── Runner │ ├── AppDelegate.swift │ ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-App-1024x1024@1x.png │ │ ├── Icon-App-20x20@1x.png │ │ ├── Icon-App-20x20@2x.png │ │ ├── Icon-App-20x20@3x.png │ │ ├── Icon-App-29x29@1x.png │ │ ├── Icon-App-29x29@2x.png │ │ ├── Icon-App-29x29@3x.png │ │ ├── Icon-App-40x40@1x.png │ │ ├── Icon-App-40x40@2x.png │ │ ├── Icon-App-40x40@3x.png │ │ ├── Icon-App-60x60@2x.png │ │ ├── Icon-App-60x60@3x.png │ │ ├── Icon-App-76x76@1x.png │ │ ├── Icon-App-76x76@2x.png │ │ └── Icon-App-83.5x83.5@2x.png │ └── LaunchImage.imageset │ │ ├── Contents.json │ │ ├── LaunchImage.png │ │ ├── LaunchImage@2x.png │ │ ├── LaunchImage@3x.png │ │ └── README.md │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ └── Runner-Bridging-Header.h ├── lib ├── ch4topic1 │ └── stateless_stateful_widget.dart ├── ch4topic2 │ ├── basic_form │ │ ├── dialog_widget.dart │ │ └── form_widget.dart │ ├── basic_layout │ │ ├── aspectratio_widget.dart │ │ ├── center_widget.dart │ │ ├── column_widget.dart │ │ ├── expanded_widget.dart │ │ ├── gridview_widget.dart │ │ ├── listview_widget.dart │ │ ├── padding_widget.dart │ │ ├── row_widget.dart │ │ ├── sizedbox_widget.dart │ │ ├── stack_widget.dart │ │ └── wrap_widget.dart │ ├── basic_widget │ │ ├── button_widget.dart │ │ ├── circle_avatar_widget.dart │ │ ├── container_widget.dart │ │ ├── icon_widget.dart │ │ ├── image_widget.dart │ │ ├── scaffold_widget.dart │ │ └── text_widget.dart │ └── navigation │ │ ├── bottom_navbar.dart │ │ ├── drawer_widget.dart │ │ ├── navigation_pop.dart │ │ ├── navigation_push.dart │ │ ├── sliver_widget.dart │ │ └── tabbar_widget.dart ├── home_page.dart └── main.dart ├── pubspec.lock ├── pubspec.yaml ├── test └── widget_test.dart └── web ├── favicon.png ├── icons ├── Icon-192.png ├── Icon-512.png ├── Icon-maskable-192.png └── Icon-maskable-512.png ├── index.html └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Symbolication related 36 | app.*.symbols 37 | 38 | # Obfuscation related 39 | app.*.map.json 40 | 41 | # Android Studio will place build artifacts here 42 | /android/app/debug 43 | /android/app/profile 44 | /android/app/release 45 | -------------------------------------------------------------------------------- /.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. 5 | 6 | version: 7 | revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 8 | channel: stable 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 17 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 18 | - platform: android 19 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 20 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 21 | - platform: ios 22 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 23 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 24 | - platform: linux 25 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 26 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 27 | - platform: macos 28 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 29 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 30 | - platform: web 31 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 32 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 33 | - platform: windows 34 | create_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 35 | base_revision: ffccd96b62ee8cec7740dab303538c5fc26ac543 36 | 37 | # User provided section 38 | 39 | # List of Local paths (relative to this file) that should be 40 | # ignored by the migrate tool. 41 | # 42 | # Files that are not part of the templates will be ignored by default. 43 | unmanaged_files: 44 | - 'lib/main.dart' 45 | - 'ios/Runner.xcodeproj/project.pbxproj' 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # flutter_app_basic 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://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /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 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /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 flutter.compileSdkVersion 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | kotlinOptions { 38 | jvmTarget = '1.8' 39 | } 40 | 41 | sourceSets { 42 | main.java.srcDirs += 'src/main/kotlin' 43 | } 44 | 45 | defaultConfig { 46 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 47 | applicationId "com.example.flutter_app_basic" 48 | // You can update the following values to match your application needs. 49 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 50 | minSdkVersion flutter.minSdkVersion 51 | targetSdkVersion flutter.targetSdkVersion 52 | versionCode flutterVersionCode.toInteger() 53 | versionName flutterVersionName 54 | } 55 | 56 | buildTypes { 57 | release { 58 | // TODO: Add your own signing config for the release build. 59 | // Signing with the debug keys for now, so `flutter run --release` works. 60 | signingConfig signingConfigs.debug 61 | } 62 | } 63 | } 64 | 65 | flutter { 66 | source '../..' 67 | } 68 | 69 | dependencies { 70 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 71 | } 72 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 15 | 19 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/example/flutter_app_basic/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.example.flutter_app_basic 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 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 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 6 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /assets/icons/back.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/bathtub.svg: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /assets/icons/box.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/card.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/cart.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/icons/cart_.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/chat.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/chest.svg: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /assets/icons/controls.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/icons/desk.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /assets/icons/favorite.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /assets/icons/home.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/home_.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/list.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /assets/icons/profile.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/icons/profile_.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /assets/icons/search.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /assets/icons/sort.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /assets/icons/tag.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /assets/icons/tick.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /assets/images/furniture/img_product_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/furniture/img_product_1.png -------------------------------------------------------------------------------- /assets/images/furniture/img_product_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/furniture/img_product_2.png -------------------------------------------------------------------------------- /assets/images/furniture/img_product_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/furniture/img_product_3.png -------------------------------------------------------------------------------- /assets/images/furniture/img_product_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/furniture/img_product_4.png -------------------------------------------------------------------------------- /assets/images/furniture/img_product_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/furniture/img_product_5.png -------------------------------------------------------------------------------- /assets/images/ic_profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/ic_profile.png -------------------------------------------------------------------------------- /assets/images/splash1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/splash1.png -------------------------------------------------------------------------------- /assets/images/splash2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/assets/images/splash2.png -------------------------------------------------------------------------------- /config.json: -------------------------------------------------------------------------------- 1 | { 2 | "modules": [ 3 | 4 | ] 5 | } -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 11.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '11.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def flutter_root 14 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 15 | unless File.exist?(generated_xcode_build_settings_path) 16 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 17 | end 18 | 19 | File.foreach(generated_xcode_build_settings_path) do |line| 20 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 21 | return matches[1].strip if matches 22 | end 23 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 24 | end 25 | 26 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 27 | 28 | flutter_ios_podfile_setup 29 | 30 | target 'Runner' do 31 | use_frameworks! 32 | use_modular_headers! 33 | 34 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 35 | end 36 | 37 | post_install do |installer| 38 | installer.pods_project.targets.each do |target| 39 | flutter_additional_ios_build_settings(target) 40 | end 41 | end 42 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 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 = 1300; 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 = 11.0; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | SDKROOT = iphoneos; 278 | SUPPORTED_PLATFORMS = iphoneos; 279 | TARGETED_DEVICE_FAMILY = "1,2"; 280 | VALIDATE_PRODUCT = YES; 281 | }; 282 | name = Profile; 283 | }; 284 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CLANG_ENABLE_MODULES = YES; 290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 291 | ENABLE_BITCODE = NO; 292 | INFOPLIST_FILE = Runner/Info.plist; 293 | LD_RUNPATH_SEARCH_PATHS = ( 294 | "$(inherited)", 295 | "@executable_path/Frameworks", 296 | ); 297 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterAppBasic; 298 | PRODUCT_NAME = "$(TARGET_NAME)"; 299 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 300 | SWIFT_VERSION = 5.0; 301 | VERSIONING_SYSTEM = "apple-generic"; 302 | }; 303 | name = Profile; 304 | }; 305 | 97C147031CF9000F007C117D /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ALWAYS_SEARCH_USER_PATHS = NO; 309 | CLANG_ANALYZER_NONNULL = YES; 310 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 311 | CLANG_CXX_LIBRARY = "libc++"; 312 | CLANG_ENABLE_MODULES = YES; 313 | CLANG_ENABLE_OBJC_ARC = YES; 314 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_COMMA = YES; 317 | CLANG_WARN_CONSTANT_CONVERSION = YES; 318 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 326 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 327 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 328 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 329 | CLANG_WARN_STRICT_PROTOTYPES = YES; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = dwarf; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | ENABLE_TESTABILITY = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_DYNAMIC_NO_PIC = NO; 340 | GCC_NO_COMMON_BLOCKS = YES; 341 | GCC_OPTIMIZATION_LEVEL = 0; 342 | GCC_PREPROCESSOR_DEFINITIONS = ( 343 | "DEBUG=1", 344 | "$(inherited)", 345 | ); 346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 348 | GCC_WARN_UNDECLARED_SELECTOR = YES; 349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 350 | GCC_WARN_UNUSED_FUNCTION = YES; 351 | GCC_WARN_UNUSED_VARIABLE = YES; 352 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 353 | MTL_ENABLE_DEBUG_INFO = YES; 354 | ONLY_ACTIVE_ARCH = YES; 355 | SDKROOT = iphoneos; 356 | TARGETED_DEVICE_FAMILY = "1,2"; 357 | }; 358 | name = Debug; 359 | }; 360 | 97C147041CF9000F007C117D /* Release */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_ANALYZER_NONNULL = YES; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 370 | CLANG_WARN_BOOL_CONVERSION = YES; 371 | CLANG_WARN_COMMA = YES; 372 | CLANG_WARN_CONSTANT_CONVERSION = YES; 373 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 374 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 375 | CLANG_WARN_EMPTY_BODY = YES; 376 | CLANG_WARN_ENUM_CONVERSION = YES; 377 | CLANG_WARN_INFINITE_RECURSION = YES; 378 | CLANG_WARN_INT_CONVERSION = YES; 379 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 380 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 381 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 382 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 383 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 384 | CLANG_WARN_STRICT_PROTOTYPES = YES; 385 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 386 | CLANG_WARN_UNREACHABLE_CODE = YES; 387 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 388 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 389 | COPY_PHASE_STRIP = NO; 390 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 391 | ENABLE_NS_ASSERTIONS = NO; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_C_LANGUAGE_STANDARD = gnu99; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 396 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 397 | GCC_WARN_UNDECLARED_SELECTOR = YES; 398 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 399 | GCC_WARN_UNUSED_FUNCTION = YES; 400 | GCC_WARN_UNUSED_VARIABLE = YES; 401 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 402 | MTL_ENABLE_DEBUG_INFO = NO; 403 | SDKROOT = iphoneos; 404 | SUPPORTED_PLATFORMS = iphoneos; 405 | SWIFT_COMPILATION_MODE = wholemodule; 406 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 407 | TARGETED_DEVICE_FAMILY = "1,2"; 408 | VALIDATE_PRODUCT = YES; 409 | }; 410 | name = Release; 411 | }; 412 | 97C147061CF9000F007C117D /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 415 | buildSettings = { 416 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 417 | CLANG_ENABLE_MODULES = YES; 418 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 419 | ENABLE_BITCODE = NO; 420 | INFOPLIST_FILE = Runner/Info.plist; 421 | LD_RUNPATH_SEARCH_PATHS = ( 422 | "$(inherited)", 423 | "@executable_path/Frameworks", 424 | ); 425 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterAppBasic; 426 | PRODUCT_NAME = "$(TARGET_NAME)"; 427 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 429 | SWIFT_VERSION = 5.0; 430 | VERSIONING_SYSTEM = "apple-generic"; 431 | }; 432 | name = Debug; 433 | }; 434 | 97C147071CF9000F007C117D /* Release */ = { 435 | isa = XCBuildConfiguration; 436 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 437 | buildSettings = { 438 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 439 | CLANG_ENABLE_MODULES = YES; 440 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 441 | ENABLE_BITCODE = NO; 442 | INFOPLIST_FILE = Runner/Info.plist; 443 | LD_RUNPATH_SEARCH_PATHS = ( 444 | "$(inherited)", 445 | "@executable_path/Frameworks", 446 | ); 447 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterAppBasic; 448 | PRODUCT_NAME = "$(TARGET_NAME)"; 449 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 450 | SWIFT_VERSION = 5.0; 451 | VERSIONING_SYSTEM = "apple-generic"; 452 | }; 453 | name = Release; 454 | }; 455 | /* End XCBuildConfiguration section */ 456 | 457 | /* Begin XCConfigurationList section */ 458 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 459 | isa = XCConfigurationList; 460 | buildConfigurations = ( 461 | 97C147031CF9000F007C117D /* Debug */, 462 | 97C147041CF9000F007C117D /* Release */, 463 | 249021D3217E4FDB00AE95B9 /* Profile */, 464 | ); 465 | defaultConfigurationIsVisible = 0; 466 | defaultConfigurationName = Release; 467 | }; 468 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 469 | isa = XCConfigurationList; 470 | buildConfigurations = ( 471 | 97C147061CF9000F007C117D /* Debug */, 472 | 97C147071CF9000F007C117D /* Release */, 473 | 249021D4217E4FDB00AE95B9 /* Profile */, 474 | ); 475 | defaultConfigurationIsVisible = 0; 476 | defaultConfigurationName = Release; 477 | }; 478 | /* End XCConfigurationList section */ 479 | }; 480 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 481 | } 482 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/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/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | Flutter App Basic 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | flutter_app_basic 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | $(FLUTTER_BUILD_NUMBER) 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | UIViewControllerBasedStatusBarAppearance 45 | 46 | CADisableMinimumFrameDurationOnPhone 47 | 48 | UIApplicationSupportsIndirectInputEvents 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /lib/ch4topic1/stateless_stateful_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class StatelessStatefulWidget extends StatefulWidget { 4 | const StatelessStatefulWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => 8 | _StatelessStatefulWidgetState(); 9 | } 10 | 11 | class _StatelessStatefulWidgetState extends State { 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | appBar: AppBar( 16 | title: const Text("Binar - stateless stateful"), 17 | actions: const [], 18 | ), 19 | body: SingleChildScrollView( 20 | child: Container( 21 | padding: const EdgeInsets.all(10.0), 22 | child: Column( 23 | children: const [ 24 | ShowText(text: 'Show Text Stateless'), 25 | ChangeTextWidget(), 26 | ], 27 | ), 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | 34 | class ChangeTextWidget extends StatefulWidget { 35 | const ChangeTextWidget({super.key}); 36 | 37 | @override 38 | State createState() => _ChangeTextWidgetState(); 39 | } 40 | 41 | class _ChangeTextWidgetState extends State { 42 | String text = 'Binar'; 43 | @override 44 | Widget build(BuildContext context) { 45 | return Column( 46 | children: [ 47 | Text('$text - Stateful'), 48 | ElevatedButton( 49 | onPressed: () { 50 | String newText = DateTime.now().toIso8601String(); 51 | setState(() { 52 | text = newText; 53 | }); 54 | }, 55 | child: const Text('Change Text'), 56 | ) 57 | ], 58 | ); 59 | } 60 | } 61 | 62 | class ShowText extends StatelessWidget { 63 | final String text; 64 | const ShowText({ 65 | Key? key, 66 | required this.text, 67 | }) : super(key: key); 68 | 69 | @override 70 | Widget build(BuildContext context) { 71 | return Text(text); 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_form/dialog_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DialogWiget extends StatefulWidget { 4 | const DialogWiget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _DialogWigetState(); 8 | } 9 | 10 | class _DialogWigetState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: const Text("Binar - Dialog & Bottomsheet"), 16 | ), 17 | body: Container( 18 | padding: const EdgeInsets.all(10.0), 19 | child: Column( 20 | children: [ 21 | ElevatedButton( 22 | onPressed: () async { 23 | await showDialog( 24 | context: context, 25 | barrierDismissible: true, 26 | builder: (BuildContext context) { 27 | return AlertDialog( 28 | title: const Text('Info'), 29 | content: SingleChildScrollView( 30 | child: ListBody( 31 | children: const [ 32 | Text('Your order was placed!'), 33 | ], 34 | ), 35 | ), 36 | actions: [ 37 | ElevatedButton( 38 | style: ElevatedButton.styleFrom( 39 | backgroundColor: Colors.blue, 40 | ), 41 | onPressed: () { 42 | Navigator.pop(context); 43 | }, 44 | child: const Text("Ok"), 45 | ), 46 | ], 47 | ); 48 | }, 49 | ); 50 | }, 51 | child: const Text('Open Dialog'), 52 | ), 53 | const SizedBox( 54 | width: 8, 55 | ), 56 | ElevatedButton( 57 | onPressed: () async { 58 | await showModalBottomSheet( 59 | context: context, 60 | builder: (BuildContext context) { 61 | return Padding( 62 | padding: const EdgeInsets.all(20.0), 63 | child: SizedBox( 64 | width: MediaQuery.of(context).size.width, 65 | child: Column( 66 | mainAxisAlignment: MainAxisAlignment.center, 67 | mainAxisSize: MainAxisSize.min, 68 | children: [ 69 | const Text('Your order was placed!'), 70 | const SizedBox( 71 | height: 20.0, 72 | ), 73 | ElevatedButton( 74 | style: ElevatedButton.styleFrom( 75 | backgroundColor: Colors.blue, 76 | ), 77 | onPressed: () { 78 | Navigator.pop(context); 79 | }, 80 | child: const Text("Ok"), 81 | ), 82 | ], 83 | ), 84 | ), 85 | ); 86 | }, 87 | ); 88 | }, 89 | child: const Text('Open BottomSheet'), 90 | ), 91 | ElevatedButton( 92 | onPressed: () async { 93 | bool confirm = false; 94 | await showModalBottomSheet( 95 | context: context, 96 | builder: (BuildContext context) { 97 | return Container( 98 | padding: const EdgeInsets.all(30.0), 99 | child: Wrap( 100 | children: [ 101 | SizedBox( 102 | width: MediaQuery.of(context).size.width, 103 | child: Column( 104 | mainAxisAlignment: MainAxisAlignment.center, 105 | children: [ 106 | const Text( 107 | "Confirm", 108 | style: TextStyle( 109 | fontSize: 16.0, 110 | fontWeight: FontWeight.bold, 111 | ), 112 | ), 113 | const SizedBox( 114 | height: 20.0, 115 | ), 116 | const Text( 117 | 'Are you sure you want to delete this item?', 118 | ), 119 | const SizedBox( 120 | height: 20.0, 121 | ), 122 | Row( 123 | mainAxisAlignment: MainAxisAlignment.end, 124 | children: [ 125 | ElevatedButton( 126 | style: ElevatedButton.styleFrom( 127 | backgroundColor: Colors.grey[600], 128 | ), 129 | onPressed: () { 130 | Navigator.pop(context); 131 | }, 132 | child: const Text("No"), 133 | ), 134 | const SizedBox( 135 | width: 10.0, 136 | ), 137 | ElevatedButton( 138 | style: ElevatedButton.styleFrom( 139 | backgroundColor: Colors.blueGrey, 140 | ), 141 | onPressed: () { 142 | confirm = true; 143 | Navigator.pop(context); 144 | }, 145 | child: const Text("Yes"), 146 | ), 147 | ], 148 | ), 149 | ], 150 | ), 151 | ), 152 | ], 153 | ), 154 | ); 155 | }, 156 | ); 157 | if (confirm) { 158 | print("Confirmed!"); 159 | } 160 | }, 161 | child: const Text('Open Bottomsheet confirmation'), 162 | ), 163 | ElevatedButton( 164 | onPressed: () { 165 | ScaffoldMessenger.of(context).showSnackBar( 166 | const SnackBar( 167 | backgroundColor: Colors.blue, 168 | content: Text('Your request is successful'), 169 | ), 170 | ); 171 | }, 172 | child: const Text('Open snackbar'), 173 | ), 174 | ], 175 | ), 176 | ), 177 | ); 178 | } 179 | } 180 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_form/form_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FormWidget extends StatefulWidget { 4 | FormWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _FormWidgetState(); 8 | } 9 | 10 | class _FormWidgetState extends State { 11 | bool isOn = false; 12 | 13 | var selected = 'Flutter'; 14 | final dropdownList = ['Flutter', 'Dart', 'Java', 'Scala', 'Python']; 15 | 16 | var sex = 'male'; 17 | var isChecked = false; 18 | TextEditingController textController = TextEditingController(text: 'Sabrina'); 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Scaffold( 23 | appBar: AppBar( 24 | title: const Text('Binar - Form'), 25 | ), 26 | body: SingleChildScrollView( 27 | child: Container( 28 | padding: const EdgeInsets.all(10.0), 29 | child: Column( 30 | crossAxisAlignment: CrossAxisAlignment.start, 31 | children: [ 32 | TextField( 33 | maxLength: 20, 34 | controller: textController, 35 | decoration: const InputDecoration( 36 | labelText: 'Name', 37 | labelStyle: TextStyle( 38 | color: Colors.blueGrey, 39 | ), 40 | enabledBorder: UnderlineInputBorder( 41 | borderSide: BorderSide( 42 | color: Colors.blueGrey, 43 | ), 44 | ), 45 | helperText: "What's your name?", 46 | ), 47 | onChanged: (value) {}, 48 | ), 49 | Row( 50 | crossAxisAlignment: CrossAxisAlignment.center, 51 | mainAxisAlignment: MainAxisAlignment.start, 52 | children: [ 53 | const Text('Your Favorite Language:'), 54 | const SizedBox( 55 | width: 8, 56 | ), 57 | DropdownButton( 58 | value: selected, 59 | icon: const Icon(Icons.arrow_downward), 60 | iconSize: 20, 61 | style: TextStyle(color: Colors.blue[600]), 62 | underline: Container( 63 | decoration: const BoxDecoration( 64 | border: Border( 65 | bottom: BorderSide( 66 | color: Colors.grey, 67 | width: 3, 68 | ), 69 | ), 70 | ), 71 | ), 72 | items: dropdownList 73 | .map((e) => DropdownMenuItem(value: e, child: Text(e))) 74 | .toList(), 75 | onChanged: (String? val) { 76 | setState(() { 77 | if (val != null) selected = val; 78 | }); 79 | }, 80 | ), 81 | ], 82 | ), 83 | LayoutBuilder(builder: (context, constraint) { 84 | List itemStringList = ["Female", "Male"]; 85 | 86 | return FormField( 87 | initialValue: false, 88 | enabled: true, 89 | builder: (FormFieldState field) { 90 | return InputDecorator( 91 | decoration: InputDecoration( 92 | labelText: "Gender", 93 | errorText: field.errorText, 94 | helperText: "Your gender", 95 | ), 96 | child: DropdownButtonHideUnderline( 97 | child: ButtonTheme( 98 | alignedDropdown: true, 99 | child: DropdownButton( 100 | isExpanded: true, 101 | value: "Female", 102 | icon: Padding( 103 | padding: const EdgeInsets.only(right: 10.0), 104 | child: Icon( 105 | Icons.arrow_drop_down_outlined, 106 | size: 24.0, 107 | color: Theme.of(context) 108 | .textTheme 109 | .bodyText1! 110 | .color, 111 | ), 112 | ), 113 | iconSize: 16, 114 | elevation: 16, 115 | style: TextStyle( 116 | fontSize: Theme.of(context) 117 | .textTheme 118 | .bodyText2! 119 | .fontSize, 120 | fontFamily: Theme.of(context) 121 | .textTheme 122 | .bodyText2! 123 | .fontFamily, 124 | color: 125 | Theme.of(context).textTheme.bodyText2!.color, 126 | ), 127 | underline: Container( 128 | height: 0, 129 | color: Colors.grey[300], 130 | ), 131 | onChanged: (String? newValue) {}, 132 | items: itemStringList 133 | .map>((String value) { 134 | return DropdownMenuItem( 135 | value: value, 136 | child: Padding( 137 | padding: const EdgeInsets.symmetric( 138 | horizontal: 10.0), 139 | child: Text( 140 | value, 141 | ), 142 | ), 143 | ); 144 | }).toList(), 145 | ), 146 | ), 147 | ), 148 | ); 149 | }, 150 | ); 151 | }), 152 | Row( 153 | children: [ 154 | const Text('Connect Instagram'), 155 | const SizedBox( 156 | width: 8, 157 | ), 158 | Switch( 159 | value: isOn, 160 | onChanged: (bool? val) { 161 | if (val != null) { 162 | setState(() { 163 | isOn = val; 164 | }); 165 | } 166 | }, 167 | ), 168 | ], 169 | ), 170 | Row( 171 | children: [ 172 | const Text('Gender :'), 173 | const SizedBox( 174 | width: 8, 175 | ), 176 | Row( 177 | mainAxisAlignment: MainAxisAlignment.center, 178 | children: [ 179 | Radio( 180 | value: 'male', 181 | groupValue: sex, 182 | onChanged: (String? val) { 183 | setState(() { 184 | if (val != null) { 185 | sex = val; 186 | } 187 | }); 188 | }, 189 | ), 190 | const Text('Male'), 191 | ], 192 | ), 193 | const SizedBox( 194 | width: 16, 195 | ), 196 | Row( 197 | mainAxisAlignment: MainAxisAlignment.center, 198 | children: [ 199 | Radio( 200 | value: 'female', 201 | groupValue: sex, 202 | onChanged: (String? val) { 203 | setState(() { 204 | if (val != null) { 205 | sex = val; 206 | } 207 | }); 208 | }, 209 | ), 210 | const Text('Female'), 211 | ], 212 | ), 213 | ], 214 | ), 215 | Row( 216 | children: [ 217 | Checkbox( 218 | value: isChecked, 219 | activeColor: Colors.blue, 220 | onChanged: (val) { 221 | setState(() { 222 | if (val != null) { 223 | isChecked = val; 224 | } 225 | }); 226 | }, 227 | ), 228 | const SizedBox( 229 | width: 4, 230 | ), 231 | const Text( 232 | 'Agree Term & Conditions', 233 | style: TextStyle( 234 | decoration: TextDecoration.underline, 235 | ), 236 | ), 237 | ], 238 | ), 239 | InkWell( 240 | onTap: () async { 241 | DateTime? pickedDate = await showDatePicker( 242 | context: context, 243 | initialDate: DateTime.now(), 244 | firstDate: DateTime(2000), 245 | lastDate: DateTime(2100), 246 | ); 247 | debugPrint("pickedDate: $pickedDate"); 248 | }, 249 | child: TextFormField( 250 | initialValue: '2022-08-01', 251 | maxLength: 20, 252 | enabled: false, 253 | decoration: const InputDecoration( 254 | labelText: 'Birth date', 255 | labelStyle: TextStyle( 256 | color: Colors.blueGrey, 257 | ), 258 | enabledBorder: UnderlineInputBorder( 259 | borderSide: BorderSide( 260 | color: Colors.blueGrey, 261 | ), 262 | ), 263 | suffixIcon: Icon(Icons.date_range), 264 | helperText: "What's your birth date?", 265 | ), 266 | onChanged: (value) {}, 267 | ), 268 | ), 269 | ], 270 | ), 271 | ), 272 | ), 273 | ); 274 | } 275 | } 276 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/aspectratio_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class AspectRatioWidget extends StatelessWidget { 4 | const AspectRatioWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - Aspect Ratio'), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: [ 16 | AspectRatio( 17 | aspectRatio: 180 / 240, 18 | child: Container( 19 | color: Colors.blue, 20 | ), 21 | ) 22 | ], 23 | ), 24 | ), 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/center_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CenterWidget extends StatelessWidget { 4 | const CenterWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - Center'), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: [ 16 | Center( 17 | child: ElevatedButton( 18 | onPressed: () {}, 19 | style: ElevatedButton.styleFrom( 20 | backgroundColor: Colors.blue, 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.circular(20), 23 | ), 24 | shadowColor: 25 | Colors.grey[20], //specify the button's elevation color 26 | elevation: 5.0, 27 | ), 28 | child: Text( 29 | "Add To Cart".toUpperCase(), 30 | style: const TextStyle( 31 | fontSize: 20, 32 | fontWeight: FontWeight.w500, 33 | color: Colors.white, 34 | ), 35 | ), 36 | ), 37 | ), 38 | ], 39 | ), 40 | ), 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/column_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ColumnWidget extends StatelessWidget { 4 | const ColumnWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Column"), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | crossAxisAlignment: CrossAxisAlignment.start, 16 | children: const [ 17 | Text( 18 | 'Stylish Chair', 19 | style: TextStyle( 20 | color: Colors.black, 21 | fontSize: 14, 22 | fontWeight: FontWeight.w500, 23 | ), 24 | ), 25 | SizedBox( 26 | height: 10, 27 | ), 28 | Text( 29 | 'Rp 350.000', 30 | style: TextStyle( 31 | fontSize: 20, 32 | color: Color(0xFF9A9390), 33 | fontWeight: FontWeight.w400, 34 | letterSpacing: 1, 35 | ), 36 | ), 37 | ], 38 | ), 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/expanded_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ExpandedWidget extends StatelessWidget { 4 | const ExpandedWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - Expanded'), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: [ 16 | Row( 17 | children: const [ 18 | Icon(Icons.arrow_back_ios), 19 | Expanded( 20 | child: Padding( 21 | padding: EdgeInsets.all(8.0), 22 | child: Text( 23 | 'List Checklist', 24 | style: TextStyle(fontSize: 16), 25 | ), 26 | ), 27 | ), 28 | Icon( 29 | Icons.check, 30 | color: Colors.blue, 31 | ) 32 | ], 33 | ), 34 | ], 35 | ), 36 | ), 37 | ); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/gridview_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class GridViewWidget extends StatelessWidget { 4 | const GridViewWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - GriView"), 11 | actions: const [], 12 | ), 13 | body: Container( 14 | padding: const EdgeInsets.all(10.0), 15 | child: Column( 16 | children: [ 17 | Expanded( 18 | child: GridView.count( 19 | crossAxisCount: 2, 20 | childAspectRatio: 185 / 243, 21 | mainAxisSpacing: 16, 22 | crossAxisSpacing: 16, 23 | children: [ 24 | ...List.generate( 25 | 6, 26 | (index) => Container( 27 | height: 300, 28 | width: double.infinity, 29 | decoration: BoxDecoration( 30 | color: Colors.blue, 31 | borderRadius: BorderRadius.circular(20), 32 | boxShadow: [ 33 | BoxShadow( 34 | color: Colors.black.withOpacity(0.2), 35 | offset: Offset.zero, 36 | blurRadius: 15.0, 37 | ) 38 | ], 39 | ), 40 | ), 41 | ), 42 | ], 43 | ), 44 | ), 45 | ], 46 | ), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/listview_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ListViewWidget extends StatelessWidget { 4 | ListViewWidget({Key? key}) : super(key: key); 5 | 6 | final List categories = [ 7 | 'All', 8 | 'Living Room', 9 | 'Bed Room', 10 | 'Dining Room', 11 | 'Kitchen' 12 | ]; 13 | 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: const Text("Binar - ListView"), 19 | ), 20 | body: Container( 21 | padding: const EdgeInsets.all(10.0), 22 | child: Column( 23 | children: [ 24 | SizedBox( 25 | height: 32, 26 | child: ListView( 27 | scrollDirection: Axis.horizontal, 28 | children: List.generate( 29 | categories.length, 30 | (index) { 31 | return GestureDetector( 32 | onTap: () {}, 33 | child: AnimatedContainer( 34 | duration: const Duration(milliseconds: 150), 35 | decoration: BoxDecoration( 36 | borderRadius: BorderRadius.circular(20), 37 | color: Colors.grey, 38 | ), 39 | padding: const EdgeInsets.symmetric( 40 | vertical: 8, 41 | horizontal: 24, 42 | ), 43 | margin: const EdgeInsets.symmetric(horizontal: 2), 44 | child: Text( 45 | categories[index], 46 | textAlign: TextAlign.center, 47 | style: const TextStyle( 48 | fontSize: 12, 49 | color: Colors.black, 50 | fontWeight: FontWeight.w500, 51 | letterSpacing: 1, 52 | ), 53 | ), 54 | ), 55 | ); 56 | }, 57 | ), 58 | ), 59 | ), 60 | Expanded( 61 | child: ListView( 62 | children: List.generate( 63 | categories.length, 64 | (index) { 65 | return GestureDetector( 66 | onTap: () {}, 67 | child: AnimatedContainer( 68 | duration: const Duration(milliseconds: 150), 69 | decoration: BoxDecoration( 70 | borderRadius: BorderRadius.circular(20), 71 | color: Colors.grey, 72 | ), 73 | padding: const EdgeInsets.symmetric( 74 | vertical: 8, 75 | horizontal: 24, 76 | ), 77 | margin: const EdgeInsets.symmetric( 78 | horizontal: 2, vertical: 2), 79 | child: Text( 80 | categories[index], 81 | textAlign: TextAlign.center, 82 | style: const TextStyle( 83 | fontSize: 12, 84 | color: Colors.black, 85 | fontWeight: FontWeight.w500, 86 | letterSpacing: 1, 87 | ), 88 | ), 89 | ), 90 | ); 91 | }, 92 | ), 93 | ), 94 | ), 95 | Expanded( 96 | child: ListView.builder( 97 | itemCount: categories.length, 98 | itemBuilder: (context, index) { 99 | return GestureDetector( 100 | onTap: () {}, 101 | child: AnimatedContainer( 102 | duration: const Duration(milliseconds: 150), 103 | decoration: BoxDecoration( 104 | borderRadius: BorderRadius.circular(20), 105 | color: Colors.grey, 106 | ), 107 | padding: const EdgeInsets.symmetric( 108 | vertical: 8, 109 | horizontal: 24, 110 | ), 111 | margin: const EdgeInsets.symmetric( 112 | horizontal: 2, vertical: 2), 113 | child: Text( 114 | categories[index], 115 | textAlign: TextAlign.center, 116 | style: const TextStyle( 117 | fontSize: 12, 118 | color: Colors.black, 119 | fontWeight: FontWeight.w500, 120 | letterSpacing: 1, 121 | ), 122 | ), 123 | ), 124 | ); 125 | }, 126 | ), 127 | ), 128 | ], 129 | ), 130 | ), 131 | ); 132 | } 133 | } 134 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/padding_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class PaddingWidget extends StatelessWidget { 4 | const PaddingWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - Padding'), 11 | actions: const [], 12 | ), 13 | body: Container( 14 | height: 500, 15 | width: 300, 16 | margin: const EdgeInsets.all(10.0), 17 | decoration: BoxDecoration(border: Border.all()), 18 | child: Column( 19 | crossAxisAlignment: CrossAxisAlignment.start, 20 | children: const [ 21 | Padding( 22 | padding: EdgeInsets.only( 23 | left: 20, 24 | top: 30, 25 | bottom: 40, 26 | ), 27 | child: Text( 28 | 'Categories', 29 | style: TextStyle( 30 | fontSize: 16.0, 31 | fontWeight: FontWeight.w500, 32 | ), 33 | ), 34 | ), 35 | ], 36 | ), 37 | ), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/row_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class RowWidget extends StatelessWidget { 4 | const RowWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Row"), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: [ 16 | Row( 17 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 18 | children: [ 19 | Container( 20 | decoration: BoxDecoration( 21 | color: Colors.grey, 22 | borderRadius: BorderRadius.circular(12.0), 23 | ), 24 | child: IconButton( 25 | onPressed: () {}, 26 | icon: const Icon(Icons.arrow_back_ios), 27 | ), 28 | ), 29 | const Text( 30 | "Detail", 31 | style: TextStyle( 32 | fontSize: 24.0, 33 | fontWeight: FontWeight.normal, 34 | ), 35 | ), 36 | IconButton( 37 | onPressed: () {}, 38 | icon: const Icon( 39 | Icons.share, 40 | size: 32.0, 41 | ), 42 | ), 43 | ], 44 | ), 45 | ], 46 | ), 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/sizedbox_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SizedBoxWidget extends StatelessWidget { 4 | const SizedBoxWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - SizedBox'), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | crossAxisAlignment: CrossAxisAlignment.start, 16 | children: [ 17 | const Text( 18 | "Description", 19 | style: TextStyle( 20 | fontSize: 18.0, 21 | fontWeight: FontWeight.bold, 22 | ), 23 | ), 24 | const SizedBox(height: 8.0), 25 | const Text( 26 | "Curabitur commodo turpis id placerat mattis. Mauris euismod arcu id orci fringilla sodales. Proin congue eleifend ipsum, eleifend porttitor mi ullamcorper.", 27 | style: TextStyle( 28 | color: Colors.grey, 29 | fontSize: 16.0, 30 | fontWeight: FontWeight.normal, 31 | ), 32 | ), 33 | const SizedBox(height: 16.0), 34 | Row( 35 | mainAxisAlignment: MainAxisAlignment.spaceBetween, 36 | children: [ 37 | Column( 38 | crossAxisAlignment: CrossAxisAlignment.start, 39 | children: const [ 40 | Text( 41 | "Size", 42 | style: TextStyle( 43 | fontSize: 18.0, 44 | fontWeight: FontWeight.bold, 45 | ), 46 | ), 47 | SizedBox(height: 4.0), 48 | Text( 49 | "Height 120 cm", 50 | style: TextStyle( 51 | fontSize: 16.0, 52 | color: Colors.grey, 53 | fontWeight: FontWeight.normal, 54 | ), 55 | ), 56 | SizedBox(height: 2.0), 57 | Text( 58 | "Width 80 cm", 59 | style: TextStyle( 60 | fontSize: 16.0, 61 | color: Colors.grey, 62 | fontWeight: FontWeight.normal, 63 | ), 64 | ), 65 | ], 66 | ), 67 | SizedBox( 68 | width: MediaQuery.of(context).size.width / 2.5, 69 | child: Column( 70 | crossAxisAlignment: CrossAxisAlignment.start, 71 | children: const [ 72 | Text( 73 | "Treatment", 74 | style: TextStyle( 75 | fontSize: 18.0, 76 | fontWeight: FontWeight.bold, 77 | ), 78 | ), 79 | SizedBox(height: 4.0), 80 | Text( 81 | "Jati Wood, Canvas", 82 | style: TextStyle( 83 | fontSize: 16.0, 84 | color: Colors.grey, 85 | fontWeight: FontWeight.normal, 86 | ), 87 | ), 88 | SizedBox(height: 2.0), 89 | Text( 90 | "Amazing Love", 91 | style: TextStyle( 92 | fontSize: 16.0, 93 | color: Colors.grey, 94 | fontWeight: FontWeight.normal, 95 | ), 96 | ), 97 | ], 98 | ), 99 | ), 100 | ], 101 | ), 102 | ], 103 | ), 104 | ), 105 | ); 106 | } 107 | } 108 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/stack_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class StackWidget extends StatelessWidget { 4 | const StackWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text('Binar - Stack'), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: [ 16 | Stack( 17 | clipBehavior: Clip.none, 18 | children: const [ 19 | Icon( 20 | Icons.shopping_cart, 21 | size: 50, 22 | ), 23 | Positioned( 24 | top: -4.0, 25 | right: -4.0, 26 | child: CircleAvatar( 27 | radius: 10, 28 | backgroundColor: Colors.red, 29 | child: Text( 30 | '3', 31 | style: TextStyle( 32 | fontSize: 12, 33 | fontWeight: FontWeight.bold, 34 | color: Colors.white, 35 | ), 36 | ), 37 | ), 38 | ) 39 | ], 40 | ) 41 | ], 42 | ), 43 | ), 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_layout/wrap_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class WrapWidget extends StatelessWidget { 4 | WrapWidget({Key? key}) : super(key: key); 5 | 6 | final List colors = [ 7 | Colors.blue, 8 | Colors.cyan, 9 | Colors.amber, 10 | Colors.red, 11 | Colors.green, 12 | Colors.grey, 13 | Colors.lightGreen, 14 | Colors.blueGrey, 15 | Colors.purple, 16 | Colors.deepPurple, 17 | Colors.yellow, 18 | ]; 19 | 20 | @override 21 | Widget build(BuildContext context) { 22 | return Scaffold( 23 | appBar: AppBar( 24 | title: const Text('Binar - Wrap'), 25 | actions: const [], 26 | ), 27 | body: Container( 28 | padding: const EdgeInsets.all(10.0), 29 | child: Column( 30 | children: [ 31 | Wrap( 32 | spacing: 20, 33 | runSpacing: 10, 34 | children: colors.map((color) { 35 | return InkWell( 36 | onTap: () {}, 37 | child: Container( 38 | width: 45, 39 | height: 45, 40 | decoration: BoxDecoration( 41 | border: Border.all(width: 3, color: Colors.grey), 42 | color: color, 43 | shape: BoxShape.circle, 44 | boxShadow: [ 45 | BoxShadow( 46 | color: Colors.black.withOpacity(0.1), 47 | offset: Offset.zero, 48 | blurRadius: 15, 49 | ) 50 | ]), 51 | ), 52 | ); 53 | }).toList(), 54 | ), 55 | ], 56 | ), 57 | ), 58 | ); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/button_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ButtonWidget extends StatelessWidget { 4 | const ButtonWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Button"), 11 | actions: const [], 12 | ), 13 | body: Container( 14 | padding: const EdgeInsets.all(10.0), 15 | child: Column( 16 | children: [ 17 | ElevatedButton( 18 | onPressed: () {}, 19 | style: ElevatedButton.styleFrom( 20 | backgroundColor: Colors.blue, 21 | shape: RoundedRectangleBorder( 22 | borderRadius: BorderRadius.circular(20), 23 | ), 24 | shadowColor: 25 | Colors.grey[20], 26 | elevation: 5.0, 27 | ), 28 | child: Text( 29 | "Add To Cart".toUpperCase(), 30 | style: const TextStyle( 31 | fontSize: 20, 32 | fontWeight: FontWeight.w500, 33 | color: Colors.white, 34 | ), 35 | ), 36 | ), 37 | ], 38 | ), 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/circle_avatar_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class CircleAvatarWidget extends StatelessWidget { 4 | CircleAvatarWidget({Key? key}) : super(key: key); 5 | 6 | final List colors = [ 7 | Colors.blue, 8 | Colors.cyan, 9 | Colors.amber, 10 | ]; 11 | 12 | @override 13 | Widget build(BuildContext context) { 14 | return Scaffold( 15 | appBar: AppBar( 16 | title: const Text("Binar - CircleAvatar"), 17 | actions: const [], 18 | ), 19 | body: Container( 20 | padding: const EdgeInsets.all(10.0), 21 | child: Column( 22 | crossAxisAlignment: CrossAxisAlignment.start, 23 | children: [ 24 | const CircleAvatar( 25 | radius: 50, 26 | backgroundImage: NetworkImage( 27 | "https://i.ibb.co/PGv8ZzG/me.jpg", 28 | ), 29 | ), 30 | Row( 31 | children: [ 32 | ...List.generate( 33 | colors.length, 34 | (index) => CircleAvatar( 35 | radius: 40, 36 | backgroundColor: colors[index], 37 | ), 38 | ), 39 | ], 40 | ) 41 | ], 42 | ), 43 | ), 44 | ); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/container_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ContainerWidget extends StatelessWidget { 4 | const ContainerWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Container"), 11 | ), 12 | body: Container( 13 | height: 300, 14 | width: double.infinity, 15 | margin: const EdgeInsets.all(10.0), 16 | decoration: BoxDecoration( 17 | color: Colors.grey, 18 | borderRadius: BorderRadius.circular(20), 19 | boxShadow: [ 20 | BoxShadow( 21 | color: Colors.black.withOpacity(0.2), 22 | offset: Offset.zero, 23 | blurRadius: 15.0, 24 | ) 25 | ], 26 | ), 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/icon_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class IconWidget extends StatelessWidget { 4 | const IconWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Icon"), 11 | ), 12 | body: Container( 13 | padding: const EdgeInsets.all(10.0), 14 | child: Column( 15 | children: const [ 16 | Icon( 17 | Icons.share, 18 | size: 32.0, 19 | ), 20 | Icon( 21 | Icons.favorite, 22 | size: 36.0, 23 | color: Colors.red, 24 | ), 25 | ], 26 | ), 27 | ), 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/image_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ImageWidget extends StatelessWidget { 4 | const ImageWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Images"), 11 | actions: const [], 12 | ), 13 | body: Container( 14 | padding: const EdgeInsets.all(10.0), 15 | child: Column( 16 | children: [ 17 | ClipRRect( 18 | borderRadius: const BorderRadius.only( 19 | topLeft: Radius.circular(20), 20 | topRight: Radius.circular(20), 21 | ), 22 | child: Image.asset('assets/images/furniture/img_product_2.png'), 23 | ), 24 | ], 25 | ), 26 | ), 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/scaffold_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ScaffoldWidget extends StatelessWidget { 4 | const ScaffoldWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | centerTitle: true, 11 | title: const Text("Binar - Scaffold, Appbar"), 12 | ), 13 | body: const Center( 14 | child: Text('You have pressed the button 0 times.'), 15 | ), 16 | floatingActionButton: FloatingActionButton( 17 | onPressed: () {}, 18 | child: const Icon(Icons.add), 19 | ), 20 | ); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /lib/ch4topic2/basic_widget/text_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TextWidget extends StatelessWidget { 4 | const TextWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | Widget build(BuildContext context) { 8 | return Scaffold( 9 | appBar: AppBar( 10 | title: const Text("Binar - Text"), 11 | actions: const [], 12 | ), 13 | body: Container( 14 | padding: const EdgeInsets.all(10.0), 15 | child: Column( 16 | children: const [ 17 | Text( 18 | 'Discover the most modern furniture', 19 | style: TextStyle( 20 | color: Colors.black, 21 | fontSize: 22.0, 22 | fontWeight: FontWeight.w500, 23 | letterSpacing: 1, 24 | ), 25 | ), 26 | ], 27 | ), 28 | ), 29 | ); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/bottom_navbar.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_svg/flutter_svg.dart'; 3 | 4 | class BottomNavbarWidget extends StatefulWidget { 5 | const BottomNavbarWidget({Key? key}) : super(key: key); 6 | 7 | @override 8 | State createState() => _BottomNavbarWidgetState(); 9 | } 10 | 11 | class _BottomNavbarWidgetState extends State { 12 | final List list = const [ 13 | Text('Home'), 14 | Text('Cart'), 15 | Text('Favorite'), 16 | Text('User'), 17 | ]; 18 | 19 | int _selectedIndex = 0; 20 | List menuItems = [ 21 | { 22 | 'icon': 'assets/icons/home_.svg', 23 | 'label': 'Home', 24 | }, 25 | { 26 | 'icon': 'assets/icons/cart_.svg', 27 | 'label': 'Cart', 28 | }, 29 | { 30 | 'icon': 'assets/icons/favorite.svg', 31 | 'label': 'Favorite', 32 | }, 33 | { 34 | 'icon': 'assets/icons/profile_.svg', 35 | 'label': 'Profile', 36 | }, 37 | ]; 38 | 39 | void _onItemTapped(int index) { 40 | setState(() { 41 | _selectedIndex = index; 42 | }); 43 | } 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | return Scaffold( 48 | appBar: AppBar( 49 | title: const Text("Binar - Bottom Navbar"), 50 | actions: const [], 51 | ), 52 | body: Center( 53 | child: list[_selectedIndex], 54 | ), 55 | bottomNavigationBar: BottomNavigationBar( 56 | backgroundColor: Colors.white, 57 | showUnselectedLabels: false, 58 | showSelectedLabels: false, 59 | unselectedItemColor: Colors.black87, 60 | elevation: 32.0, 61 | type: BottomNavigationBarType.fixed, 62 | selectedLabelStyle: const TextStyle( 63 | height: 1.5, 64 | fontSize: 12, 65 | ), 66 | unselectedLabelStyle: const TextStyle( 67 | height: 1.5, 68 | fontSize: 12, 69 | ), 70 | items: menuItems.map((i) { 71 | return BottomNavigationBarItem( 72 | activeIcon: Container( 73 | padding: const EdgeInsets.all(10), 74 | decoration: const BoxDecoration( 75 | color: Colors.grey, 76 | borderRadius: BorderRadius.all(Radius.circular(14)), 77 | ), 78 | child: SvgPicture.asset( 79 | i['icon'], 80 | color: Colors.white, 81 | ), 82 | ), 83 | icon: SvgPicture.asset( 84 | i['icon'], 85 | color: Colors.grey, 86 | ), 87 | label: i['label'], 88 | ); 89 | }).toList(), 90 | currentIndex: _selectedIndex, 91 | selectedItemColor: Colors.blue, 92 | onTap: _onItemTapped, 93 | ), 94 | ); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/drawer_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class DrawerWidget extends StatefulWidget { 4 | const DrawerWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _DrawerWidgetState(); 8 | } 9 | 10 | class _DrawerWidgetState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: const Text("Binar - Drawer"), 16 | actions: const [], 17 | ), 18 | endDrawer: Drawer( 19 | child: Container( 20 | color: Colors.white, 21 | child: ListView( 22 | padding: const EdgeInsets.all(0), 23 | children: [ 24 | Container( 25 | color: Colors.blue[100], 26 | child: UserAccountsDrawerHeader( 27 | currentAccountPicture: const CircleAvatar( 28 | child: FlutterLogo(size: 50), 29 | ), 30 | decoration: BoxDecoration(color: Colors.grey[200]), 31 | accountName: const Text( 32 | 'Sabrina', 33 | style: TextStyle( 34 | color: Colors.black, 35 | ), 36 | ), 37 | accountEmail: const Text( 38 | 'sabrina.dev@gmail.com', 39 | style: TextStyle( 40 | color: Colors.black, 41 | ), 42 | ), 43 | ), 44 | ), 45 | ListTile( 46 | title: const Text('Menu 1'), 47 | onTap: () { 48 | Navigator.of(context).pop(); 49 | }, 50 | ), 51 | ListTile( 52 | title: const Text('Menu 2'), 53 | onTap: () {}, 54 | ), 55 | ], 56 | ), 57 | ), 58 | ), 59 | body: SingleChildScrollView( 60 | child: Container( 61 | padding: const EdgeInsets.all(10.0), 62 | child: Column( 63 | children: [], 64 | ), 65 | ), 66 | ), 67 | ); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/navigation_pop.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class NavigationPop extends StatefulWidget { 4 | const NavigationPop({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _NavigationPopState(); 8 | } 9 | 10 | class _NavigationPopState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | title: const Text("Binar - Navigation Pop"), 16 | ), 17 | body: Container( 18 | padding: const EdgeInsets.all(10.0), 19 | child: Column( 20 | children: [ 21 | ElevatedButton( 22 | onPressed: () { 23 | Navigator.of(context).pop(); 24 | }, 25 | child: const Text('Go back (pop)'), 26 | ), 27 | ], 28 | ), 29 | ), 30 | ); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/navigation_push.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | 4 | import 'navigation_pop.dart'; 5 | 6 | class NavigationPush extends StatefulWidget { 7 | const NavigationPush({Key? key}) : super(key: key); 8 | 9 | @override 10 | State createState() => _NavigationPushState(); 11 | } 12 | 13 | class _NavigationPushState extends State { 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: const Text("Binar - navigation push"), 19 | ), 20 | body: Container( 21 | padding: const EdgeInsets.all(10.0), 22 | child: Column( 23 | children: [ 24 | ElevatedButton( 25 | onPressed: () { 26 | Navigator.of(context) 27 | .push(MaterialPageRoute(builder: (context) { 28 | return const NavigationPop(); 29 | })); 30 | }, 31 | child: const Text('go to next Page'), 32 | ), 33 | ], 34 | ), 35 | ), 36 | ); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/sliver_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class SliverWidget extends StatefulWidget { 4 | const SliverWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _SliverWidgetState(); 8 | } 9 | 10 | class _SliverWidgetState extends State { 11 | bool pinned = true; 12 | bool snap = false; 13 | bool floating = false; 14 | @override 15 | Widget build(BuildContext context) { 16 | return Scaffold( 17 | appBar: AppBar( 18 | title: const Text("Binar - Sliver"), 19 | actions: const [], 20 | ), 21 | body: CustomScrollView( 22 | slivers: [ 23 | SliverAppBar( 24 | pinned: pinned, 25 | snap: snap, 26 | floating: floating, 27 | expandedHeight: 160, 28 | flexibleSpace: const FlexibleSpaceBar( 29 | title: Text( 30 | 'Sliver App Bar', 31 | ), 32 | background: FlutterLogo(), 33 | ), 34 | ), 35 | SliverList( 36 | delegate: SliverChildBuilderDelegate((context, index) { 37 | return Container( 38 | color: index.isOdd ? Colors.white : Colors.blue[200], 39 | height: 100, 40 | child: Center( 41 | child: Text( 42 | '$index', 43 | textScaleFactor: 5, 44 | ), 45 | ), 46 | ); 47 | }, childCount: 20), 48 | ), 49 | ], 50 | ), 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /lib/ch4topic2/navigation/tabbar_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TabbarWidget extends StatefulWidget { 4 | const TabbarWidget({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _TabbarWidgetState(); 8 | } 9 | 10 | class _TabbarWidgetState extends State 11 | with SingleTickerProviderStateMixin { 12 | late TabController _tabController; 13 | 14 | @override 15 | void initState() { 16 | super.initState(); 17 | _tabController = TabController(length: 3, vsync: this); 18 | _tabController.addListener(() {}); 19 | } 20 | 21 | @override 22 | void dispose() { 23 | _tabController.dispose(); 24 | super.dispose(); 25 | } 26 | 27 | @override 28 | Widget build(BuildContext context) { 29 | return Scaffold( 30 | appBar: AppBar( 31 | title: const Text("Binar - Tabbar"), 32 | bottom: TabBar( 33 | controller: _tabController, 34 | tabs: const [ 35 | Tab( 36 | icon: Icon(Icons.directions_boat), 37 | ), 38 | Tab( 39 | icon: Icon(Icons.directions_bus), 40 | ), 41 | Tab( 42 | icon: Icon(Icons.directions_ferry), 43 | ), 44 | ], 45 | ), 46 | ), 47 | body: TabBarView( 48 | controller: _tabController, 49 | children: const [ 50 | Center( 51 | child: Text('Tab 1'), 52 | ), 53 | Center( 54 | child: Text('Tab 2'), 55 | ), 56 | Center( 57 | child: Text('Tab 3'), 58 | ), 59 | ], 60 | ), 61 | ); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /lib/home_page.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class HomePage extends StatefulWidget { 4 | const HomePage({Key? key}) : super(key: key); 5 | 6 | @override 7 | State createState() => _HomePageState(); 8 | } 9 | 10 | class _HomePageState extends State { 11 | @override 12 | Widget build(BuildContext context) { 13 | return Scaffold( 14 | appBar: AppBar( 15 | centerTitle: true, 16 | title: const Text("Simple Code"), 17 | ), 18 | body: const Center( 19 | child: Text('You have pressed the button 0 times.'), 20 | ), 21 | floatingActionButton: FloatingActionButton( 22 | onPressed: () {}, 23 | child: const Icon(Icons.add), 24 | ), 25 | ); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_app_basic/ch4topic2/basic_form/dialog_widget.dart'; 3 | import 'package:flutter_app_basic/ch4topic2/basic_form/form_widget.dart'; 4 | import 'package:flutter_app_basic/ch4topic2/basic_layout/aspectratio_widget.dart'; 5 | import 'package:flutter_app_basic/ch4topic2/basic_layout/center_widget.dart'; 6 | import 'package:flutter_app_basic/ch4topic2/basic_layout/column_widget.dart'; 7 | import 'package:flutter_app_basic/ch4topic2/basic_layout/expanded_widget.dart'; 8 | import 'package:flutter_app_basic/ch4topic2/basic_layout/gridview_widget.dart'; 9 | import 'package:flutter_app_basic/ch4topic2/basic_layout/listview_widget.dart'; 10 | import 'package:flutter_app_basic/ch4topic2/basic_layout/padding_widget.dart'; 11 | import 'package:flutter_app_basic/ch4topic2/basic_layout/row_widget.dart'; 12 | import 'package:flutter_app_basic/ch4topic2/basic_layout/sizedbox_widget.dart'; 13 | import 'package:flutter_app_basic/ch4topic2/basic_layout/stack_widget.dart'; 14 | import 'package:flutter_app_basic/ch4topic2/basic_layout/wrap_widget.dart'; 15 | import 'package:flutter_app_basic/ch4topic2/basic_widget/button_widget.dart'; 16 | import 'package:flutter_app_basic/ch4topic2/basic_widget/circle_avatar_widget.dart'; 17 | import 'package:flutter_app_basic/ch4topic2/basic_widget/container_widget.dart'; 18 | import 'package:flutter_app_basic/ch4topic2/basic_widget/icon_widget.dart'; 19 | import 'package:flutter_app_basic/ch4topic2/basic_widget/text_widget.dart'; 20 | import 'package:flutter_app_basic/ch4topic2/navigation/bottom_navbar.dart'; 21 | import 'package:flutter_app_basic/ch4topic2/navigation/drawer_widget.dart'; 22 | import 'package:flutter_app_basic/ch4topic2/navigation/navigation_push.dart'; 23 | import 'package:flutter_app_basic/ch4topic2/navigation/tabbar_widget.dart'; 24 | 25 | import 'ch4topic2/navigation/sliver_widget.dart'; 26 | 27 | void main() { 28 | runApp(const MyApp()); 29 | } 30 | 31 | class MyApp extends StatelessWidget { 32 | const MyApp({super.key}); 33 | 34 | @override 35 | Widget build(BuildContext context) { 36 | return MaterialApp( 37 | home: FormWidget(), 38 | ); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.9.0" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.1.0" 18 | characters: 19 | dependency: transitive 20 | description: 21 | name: characters 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.2.1" 25 | clock: 26 | dependency: transitive 27 | description: 28 | name: clock 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.1.1" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.16.0" 39 | cupertino_icons: 40 | dependency: "direct main" 41 | description: 42 | name: cupertino_icons 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.0.5" 46 | fake_async: 47 | dependency: transitive 48 | description: 49 | name: fake_async 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "1.3.1" 53 | flutter: 54 | dependency: "direct main" 55 | description: flutter 56 | source: sdk 57 | version: "0.0.0" 58 | flutter_lints: 59 | dependency: "direct dev" 60 | description: 61 | name: flutter_lints 62 | url: "https://pub.dartlang.org" 63 | source: hosted 64 | version: "2.0.1" 65 | flutter_svg: 66 | dependency: "direct main" 67 | description: 68 | name: flutter_svg 69 | url: "https://pub.dartlang.org" 70 | source: hosted 71 | version: "1.1.6" 72 | flutter_test: 73 | dependency: "direct dev" 74 | description: flutter 75 | source: sdk 76 | version: "0.0.0" 77 | lints: 78 | dependency: transitive 79 | description: 80 | name: lints 81 | url: "https://pub.dartlang.org" 82 | source: hosted 83 | version: "2.0.1" 84 | matcher: 85 | dependency: transitive 86 | description: 87 | name: matcher 88 | url: "https://pub.dartlang.org" 89 | source: hosted 90 | version: "0.12.12" 91 | material_color_utilities: 92 | dependency: transitive 93 | description: 94 | name: material_color_utilities 95 | url: "https://pub.dartlang.org" 96 | source: hosted 97 | version: "0.1.5" 98 | meta: 99 | dependency: transitive 100 | description: 101 | name: meta 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "1.8.0" 105 | path: 106 | dependency: transitive 107 | description: 108 | name: path 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "1.8.2" 112 | path_drawing: 113 | dependency: transitive 114 | description: 115 | name: path_drawing 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "1.0.1" 119 | path_parsing: 120 | dependency: transitive 121 | description: 122 | name: path_parsing 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "1.0.1" 126 | petitparser: 127 | dependency: transitive 128 | description: 129 | name: petitparser 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "5.1.0" 133 | sky_engine: 134 | dependency: transitive 135 | description: flutter 136 | source: sdk 137 | version: "0.0.99" 138 | source_span: 139 | dependency: transitive 140 | description: 141 | name: source_span 142 | url: "https://pub.dartlang.org" 143 | source: hosted 144 | version: "1.9.0" 145 | stack_trace: 146 | dependency: transitive 147 | description: 148 | name: stack_trace 149 | url: "https://pub.dartlang.org" 150 | source: hosted 151 | version: "1.10.0" 152 | stream_channel: 153 | dependency: transitive 154 | description: 155 | name: stream_channel 156 | url: "https://pub.dartlang.org" 157 | source: hosted 158 | version: "2.1.0" 159 | string_scanner: 160 | dependency: transitive 161 | description: 162 | name: string_scanner 163 | url: "https://pub.dartlang.org" 164 | source: hosted 165 | version: "1.1.1" 166 | term_glyph: 167 | dependency: transitive 168 | description: 169 | name: term_glyph 170 | url: "https://pub.dartlang.org" 171 | source: hosted 172 | version: "1.2.1" 173 | test_api: 174 | dependency: transitive 175 | description: 176 | name: test_api 177 | url: "https://pub.dartlang.org" 178 | source: hosted 179 | version: "0.4.12" 180 | vector_math: 181 | dependency: transitive 182 | description: 183 | name: vector_math 184 | url: "https://pub.dartlang.org" 185 | source: hosted 186 | version: "2.1.2" 187 | xml: 188 | dependency: transitive 189 | description: 190 | name: xml 191 | url: "https://pub.dartlang.org" 192 | source: hosted 193 | version: "6.1.0" 194 | sdks: 195 | dart: ">=2.18.0 <3.0.0" 196 | flutter: ">=2.11.0-0.1.pre" 197 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_app_basic 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `flutter 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 is 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 | # In Windows, build-name is used as the major, minor, and patch parts 19 | # of the product and file versions while build-number is used as the build suffix. 20 | version: 1.0.0+1 21 | 22 | environment: 23 | sdk: '>=2.18.0 <3.0.0' 24 | 25 | # Dependencies specify other packages that your package needs in order to work. 26 | # To automatically upgrade your package dependencies to the latest versions 27 | # consider running `flutter pub upgrade --major-versions`. Alternatively, 28 | # dependencies can be manually updated by changing the version numbers below to 29 | # the latest version available on pub.dev. To see which dependencies have newer 30 | # versions available, run `flutter pub outdated`. 31 | dependencies: 32 | cupertino_icons: ^1.0.2 33 | flutter: 34 | sdk: flutter 35 | flutter_svg: ^1.1.6 36 | 37 | dev_dependencies: 38 | flutter_lints: ^2.0.0 39 | flutter_test: 40 | sdk: flutter 41 | 42 | # For information on the generic Dart part of this file, see the 43 | # following page: https://dart.dev/tools/pub/pubspec 44 | # The following section is specific to Flutter packages. 45 | flutter: 46 | 47 | # The following line ensures that the Material Icons font is 48 | # included with your application, so that you can use the icons in 49 | # the material Icons class. 50 | uses-material-design: true 51 | # To add assets to your application, add an assets section, like this: 52 | assets: 53 | - assets/icons/ 54 | - assets/images/ 55 | - assets/images/furniture/ 56 | # An image asset can refer to one or more resolution-specific "variants", see 57 | # https://flutter.dev/assets-and-images/#resolution-aware 58 | # For details regarding adding assets from package dependencies, see 59 | # https://flutter.dev/assets-and-images/#from-packages 60 | # To add custom fonts to your application, add a fonts section here, 61 | # in this "flutter" section. Each entry in this list should have a 62 | # "family" key with the font family name, and a "fonts" key with a 63 | # list giving the asset and other descriptors for the font. For 64 | # example: 65 | # fonts: 66 | # - family: Schyler 67 | # fonts: 68 | # - asset: fonts/Schyler-Regular.ttf 69 | # - asset: fonts/Schyler-Italic.ttf 70 | # style: italic 71 | # - family: Trajan Pro 72 | # fonts: 73 | # - asset: fonts/TrajanPro.ttf 74 | # - asset: fonts/TrajanPro_Bold.ttf 75 | # weight: 700 76 | # 77 | # For details regarding fonts from package dependencies, 78 | # see https://flutter.dev/custom-fonts/#from-packages 79 | -------------------------------------------------------------------------------- /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 in the flutter_test package. 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:flutter_app_basic/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(const MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/web/favicon.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/web/icons/Icon-512.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/web/icons/Icon-maskable-192.png -------------------------------------------------------------------------------- /web/icons/Icon-maskable-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahrie127/binar_flutter_app_basic/c3cac4e9d0af2eb42770ba02d2df7bf2baaed6ad/web/icons/Icon-maskable-512.png -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | flutter_app_basic 33 | 34 | 35 | 39 | 40 | 41 | 42 | 43 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "flutter_app_basic", 3 | "short_name": "flutter_app_basic", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | }, 22 | { 23 | "src": "icons/Icon-maskable-192.png", 24 | "sizes": "192x192", 25 | "type": "image/png", 26 | "purpose": "maskable" 27 | }, 28 | { 29 | "src": "icons/Icon-maskable-512.png", 30 | "sizes": "512x512", 31 | "type": "image/png", 32 | "purpose": "maskable" 33 | } 34 | ] 35 | } 36 | --------------------------------------------------------------------------------