Commit 4e441a93 authored by Abu Anwar's avatar Abu Anwar Committed by Dasun Madushanka

done

parent b5696b29
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/
# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
/build/
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Exceptions to above rules.
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
# This file should be version controlled and should not be manually edited.
version:
revision: b041144f833e05cf463b8887fa12efdec9493488
channel: stable
project_type: app
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 28
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.furniture_app"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.furniture_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.furniture_app">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="furniture_app"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
</application>
</manifest>
package com.example.furniture_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">@android:color/white</item>
</style>
</resources>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.furniture_app">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
include ':app'
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
<svg id="back" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
<image id="Arrow-icon" width="22" height="22" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBAoGJygwwdO9AAABEElEQVRo3u2XvU4CURBGz0LnE/gehNjQ2PEIvgSJlZAsIf5UVFRGpeFNJMRQ2PkGFiaYWGos16GAkL27hM75CubcZn+KM3Oze2cGgiAIgiA4dpoH355xwQnvquAG/GEYQ40+x7brh4a/frjTG9/+AYxKemPkre8n+ql3/tcVfabUP3nrb7T620T/qNU/eOvvEv1ErXckA8ZclZ58cO/kLnjlBS6T7L1XL+OTU88tr7AS1LmUJgVdmd3I6x/hFzMn/S/PLDeX4lMA5OdgPQT3SgDVWigJQdwN1ENw74dA3hG6h7BvNFtinO/uWhgL/10oDyaSyUg+mgEMKDCM/D8lh3+zNh3emGvyD4IgCILgWFgD10TsYC9S1MoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDQtMTBUMDY6Mzk6NDArMDA6MDAjCjy/AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA0LTEwVDA2OjM5OjQwKzAwOjAwUleEAwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII="/>
</svg>
<svg id="cart" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="27" height="22" viewBox="0 0 27 22">
<image id="business" width="22" height="22" transform="translate(5)" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBQQJEjhZpBjRAAAC60lEQVRo3u2ZS2sUQRCAvyS7oDFRAj6yWRLfJ0E0R1HxICKIBEE8COJV8Q949RIEf4MHES9ejEjUu/kFKiQRJBjIwxiMunETTTbjYbt3e3qmZ3o3U4HgVh8aumuqvq2uqamdaaM52ccQVzlOkRwzTDHKCNNN2mpYenhImcAaFZ5zaCvcn2Y64lyPEkPS7q+wYjgs85kJlkNxuCPp/iSlmqsXXCQPQDtneMy6Wl/nkpT7PJPKyRKXI7uDfFG7i/TIANytnfSp2P0iM0rjkYT7NqaU+dtOnfO13OjKHmBQGX9Pe4LWS6V13ddsu69iLbWesZGg9dTSzhCgX83vErX07kD2AAU1zyVqfWMNgL7sAXaoeTVRa4M/Ie1UyTmcRX9Bp5oPstPjJ+U5EtlZYNkP6gI/nNV+M2OVm34AoyLuAwImXQELyzHf82tYDkf9tcWolegCSrwNrZ6jF4BXKWl4jRywzJvQ6ll1FxWYT6Pco8I1Zq2/VuuFlOurz8tP1uoTdfWgrR49gqKaZ5sIsVu0taK94QaYyRRAW/MA0BUg2wg0AOCKwAQAiyykuKrqjfsCRCthn3WJlgd00s8wlRSAWwxT5r4DwOMZMaLy9Wi6agPSoXrGj/bGVt0FFb7GR8AF8J2VTAH0IfSwKxkgx35DPXsA7EJmA/TSAWR9AKZF6z6wAWTKkGmxBZAC4CpD/08E5AB+UYoDsGWCgIC/DbTr/hJrOz4HZhP/fjUr1ajm2esG2E23ApCQ2FIUBpDLANNqCyABQK4MbZcIyALMq37SA2DOy2Cjsq466lSAJX6LANTbMuMNgwnQwQFAqgyZlo3W1ATQ7ZhMBpiWjUMwAWRT0ANAtgpshwi0AOQBfqo3hY62bJyAgDWRdkzLpN2WRSMwJ9KOaamWIqMtqwN0qXZM7gBM67VaWAeQzwDTei0LWgD1l1T6VO5xQxCg2w2glwb8P7dsQmKSUKoJiZeYTxcFxqiIfSkIjw+c0G7/AUNyiwXFGkCbAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA1LTA0VDA5OjE4OjU2KzAwOjAwmNsJTQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNS0wNFQwOToxODo1NiswMDowMOmGsfEAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC"/>
<circle id="Ellipse_1363" data-name="Ellipse 1363" cx="3" cy="3" r="3" fill="#035aa6"/>
</svg>
<svg id="chat" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
<image id="chat-2" data-name="chat" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBQQJJQN4qFHBAAAEaklEQVRo3u2ZS2xUZRTHf/dOO0MboCCvQqUoi9poTSWUEiMhkQTQGJSauNAoqQGFhIWaqBs3atmICY2JslJEmyC60Lrw/UowmhShrTzE1ipprfaBKG0H+u7fxZzeTttpmedlw9l8957vnPP/3+815zsD1+Uai5OsowIsII8AAYboY9Dp9YGAsihjLaWUUEg+gUmdV2ilnd+op54zznCaB0p5qlStLik+CatWT6ogXeAb9IH644SOlhF9ogplpzQFupcXKZ+mHqWDVjoZ4DIQIpdcVlHAwhgh2tjH4aSmRHfo2ynf1Kl39YTWKjSDx3xt1FM6ogtT/Fr0QKLgQVVpKCpEt17TOsW5ZOWqXPvVMYnEUS2NH3616qNcf9VOBZMYwWxV6KdJ43dXfI5b9W+U0y4F4nKLHcvR/frFizaonVd3eSRq6A8pL3lwL2JIL0fFfHZ240qNmmGPKlIH9+Ku118ehWdmNtuuYTNqVnH64AG0wlsPY9oe26RUV8zktPLTCw+gPNVZ/F7dGqu7xbqbtDj98ABaoHOGcUJZUzsPWVeXbs4MPICK9J/hPDe5Y4vGJEmj2pw5eAA9ZgT6tGRCGdAZU7+aWXgAfTYNS5Wm+l25PhC4zbZ62E4ZOTprBB7KPDyA3jO83ZHXzfbaGO+PTcoENhjij5HXGnut9Ace5KjZlvwiFLREq0dz/CIAOjA+6S5lRJbCp86AfwT42tpylzJ7/MZHeGiwtthljT3W+4nvdHAJgCLUYKlCEjlPKmK/Ct0uNwDQ6gz5S4DITWqeSw4Afi7AiIwB4LpEDt9B3wnMB6DPZRSAFBLPJCWSpPe4tAGw2l90LSKS9LS4nAcgT8t8ZTC++Ztc/rDH230lsMnaE6jCTuXX/cTXz4ZagOba1bsjlRtQgvClBn8KXCfMdwDkc49vA7DH2poInx1eQuL68v0rNSBJGtbyiCKkv43Co74QeGf85jmh2muqDuOUSfi77QIwpImzR9k6ZRS+v1pNJ0X4xWo1pOrJHSVeGSqD21FZ+spQzmvu1M7xaZDeyMxiVEBHDGFEm6Z3OzrqUahJ/0Qo6GXfMxUplK0PPZM6FaUVfomOebHfmo3lx55ZWLvTdVHRfVH1kZpZJ1hBHdSEfJ4G8MKooZcOxnHg62H1mXl3yuAHooq8Q9oTr2OxVbXOeRonsSNKc7RNtRqJ+vazWh+/+43m9KWn2acxNapa27RiVs+g1mmvPlJY0TKgqpnKu1kxtRutbbSwz/MCUEopT4Mucpo/aaeLfsKMkkeIeSznJlZRxFSgEQ5T5bQlMn7oC2O+BZSlaiUrnXpFiWebKrcKRreCKtfxJKHfVkU8t61pO11BfrAL6zEus5XxXXucHRRzJ2u4hcIZ/mfop5mTnKSOBmcsvs+dTuAQj8ewe59dTtizyWEly1hKDrlAPwP00kW780/Cwz0Nfn+M4bzgW+0kBvxFvaSFqUdOHH5YTXpTD860e9Mn3hpQiBJ77KePLt+v69flWsn/YQzZm3wZ8PQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDUtMDRUMDk6Mzc6MDMrMDA6MDArZMrCAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA1LTA0VDA5OjM3OjAzKzAwOjAwWjlyfgAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII="/>
</svg>
<svg id="Component_2_1" data-name="Component 2 – 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
<image id="Bell-icon" width="22" height="22" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBAoDNQxy/YVUAAADE0lEQVRo3u1ZXUgUURg9o+amaW1UZFgiPli+WPQSIUn1YAVRVFARvgViEbFFofUYEQlJlEH6UI9CEUlQQr1EhWC/SGsQCv2TiaXZrmLqenro7t0Z98e5d3bnac7LfDN7v3POvXvnzp1vAE2wgm38wL8c4iPWMkuXR1e+gVM0o4tFbsqfZjzessAt+XJOMhGa3DJwVUo+Zj0vcUKchTjfHQPvhOCz/1OPh6ShzepsOrM3Ot06jBkAwF1QXFnhjoGQOFaI4xoYIvqjwaYO3hEDPs0Ay7iFQXEecelWZB0To5u5mZbO4xG+YHIMsYXlmRLP4XH+4NyIsJ0l6Zdfxx4b4lGEeZKGPWZbzViHKzAvMkQQXXiPPPgwjREUYz02wboUd6LWGElH3w2et/TuG89wVYJ2Pu7lQ0vLIIvTYaDJRDnKAH0pW2/gc1P7fi53Kh8w0T3lShsZWWw0PapfM9+JfJWJ6iZzbOfVMCTzbujL5/OjpGmzO6ul9TGZu0fXwAVJ0cls5ex9nBHZX7S2KiziuCD4zqVaHWiRHWjQSb8o0w9ojmABvwqGQeapJufIZfeN2r9vYYk9tg6qpu6Uqft15QHmckCw3FdNvSYSh1MvPHPyNAueMUUe9orEdifyAKvlSFYnbpFwS8ZcrBbhE2cG0I0JEVUqGEAZoqterzN9YxL9IkyyUUlsYJmMPjscAeBTHKcNA7GVKwSniO6UC1UMxDaXU44NTMZx2jDgIjwDngHPgGfAM+AZ8Ax4BjwDs977eBQnsATz5Lb0t6wD62KB2A1OIQzgF5qN1qQGWIkee3UzByDWGsHYqfUvKM24PGCgNLm5QvYrlCP10Getl8yeA37sSln196NRRNctb0012AoAGMTllP0fwD1j1MH4sUT2pMpyPVrMDKoyqt6GYRlZvw0sivs9QwZGpMQ2U/992C5C5y+zc4EdYrAj3C2uZMt6Cnk48wZ2SLEZ3uYxnuVLeeUn/Rk3APBB0lus3gV5gIvlZyorWp1z27WwkLdmiY/xlH49Uc/ERraxj+Mc5iue0/808Q+82Zjamp9afQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNC0xMFQwMzo1MzoxMiswMDowMB7NymsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDQtMTBUMDM6NTM6MTIrMDA6MDBvkHLXAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg=="/>
<circle id="Ellipse_30" data-name="Ellipse 30" cx="4" cy="4" r="4" transform="translate(14 11)" fill="#ffa41b"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="22" viewBox="0 0 22 22">
<image id="search" width="22" height="22" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBA0EGBWuJFlHAAAEUUlEQVRo3t1YS2xVVRRd9/aTgg8eHxOLlagolPAaozQQeU1qizqTxEAc2QEJSYnYAZDgRIuOINGEMHBmI4lMDWFmjHw0fspL1MZIsSVUTUigbeCVvtf/a1kOsOfue+59t+f+YuIe7fbsvdY6+5x37tnHgqHRQg7tyKEZT2M9HkM9JlHGGIYxhGv4yZo1RQpttNnJcxxjkM3xMg9xbfLkq3mUf9PUZtjH55Mjr+UxjhuTL9siz7MpCfo8fwtNvmwlHmeNGY/lS27jfXwIL0QR3+MGhjGGaSxgDTZgC5rxMrb7gFzF29bdaHPP8mvPnO7wE7bSrpLxJI+w35MzyrYo9E/wVw3oFrtZa5D5Ar/govbbOBCWvpE3XRATfNd0NQGAu/mzK78SSgKzHHClX+am0BWsYa+rDnPsME21tbU/FWbuLqROFgXOA241S+sVSUvsiUb+L1aOtwXaABtWTsm7CheLHgC4zXWInV0pvNZ17JyKSw8A3MUZcT62Bgcfc229iGvvQe0WqAVa1QNXi3JNhN/5ARIuCAlvVg87KsKOJEcP8CmWFfIvVWpAW3xwB5Mqv0I/KSbX7h+yV4R0JUsPMMsJhf6Zf8g58ckxOPNDSzgjjqRV3mGLoyrg4+TpAb4kKvyad7hFDLdGwDeRMKQYTutjNpyNUcRAOgJwSXmebWhjh/J/sB6mJOA75eW8Apzr1PWU6IFB5WXZqAt4Rvk3UxNwC0vKf1YXkFX+eFr81gIm1R9a82Ijo/xyahUASspbowtwjp7FFAVUlFenC5hSfsYULYI5hdfqbIt/rEuLnZbYaR4Bo8pPrq3UrQnOnVDrlmwMK785NQEOcgV/6QKGlL8nNQF55Y1YFfeQjYKjM5G22s/2Kq/fM8YGzqpv1TtpsHMj5wMvPLykhvtDo5sI6BHtjt+Fl4fEjWBn4vQ2f3cu/P4hazmtQr5MXMB+Mb2D1YL6RJF2J0pfx0GFfY/Vzlo+x4q4vSd4Med7Yv4fBAWeF4G9idG3iMW9z2xQaBNLopHsTIQ+wxtiWodXCj8ugovMGXEE4dW5njsK1R64nIQaXhEJt7ktFn09vxFoZW43SdokWhRynLsi02e0xx7Tho9tYtOQM+yORN/iWntynnnz5H3iB0mSF7g5FHkdT4h3kWUrhZFwgHOu5DJPcp1Rps394tiJIaGDD7T0SZ7hi4E5j7OH1z2088Kf4ivmErZqD5aPbIif8i3uYL2I3MxX2curXPBEl9nFPZyMKqGBZ7V3X8cqLHKEI7zr2rJuKzz64cWQALCVBUax+zzsHDseCR1hJFjcx2uhyO/xI67XUOJIAAC2s8+zLb22xCs86P/BjS0B4Cq+ztP80UfIAv/g5+wKfl2sLsFakVuHasQWZJAFMIsp3MGfllFPyTy+Eg3aNN6wvg1dh3jGfOyF+D9IaBMXH7KU/C08rIRUOpEwEkrx8eJJuPifCAC4k/0s8SIb/wHatdKR1DWRDwAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMC0wNC0xM1QwNDoyNDoyMSswMDowMD72a0UAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjAtMDQtMTNUMDQ6MjQ6MjErMDA6MDBPq9P5AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAABJRU5ErkJggg=="/>
</svg>
<svg id="shopping-bag" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
<image id="shopping-bag-2" data-name="shopping-bag" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAQAAAAAYLlVAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBQQJIS5ZG8iwAAAC9klEQVRo3u2ZS2uTQRSG32kTqDVVCl6ahNb7ShDNUlRciAgiRRAXgrhV/ANu3RTB3+CiiBs3VqTq3v4CFWwFKRZ6sQ1WTUwrTfq66Ewy330Sv1Mo5mwGZs53zpN3zkxO8il0ZNyPUVzDCRSRwTxmMYkJNddZrPaTD/IRa/Rbg895eDvSn+Eco6zCUen0V7lmJazxC6dZ9ehwVzL9KVaaqV7wErMAwB6e5RPW9Xydl6XSZzmjk6zySmC1xK96tcxBGYB7zZ0+Hbpe5Lz2eCyRXnFWh78T6XOhWRu59AFKOvh79sR4vdReN1zj9rg6wpTWM7UZ4/XU550iwLAe38V6mdWR9AHyelyM9VrBBgCgkD5Anx7X45zUJv54vBMtEzbJvpBP0K/HQ9zl8JGyPBpYWVZVJyZe5A9K2DpvuQFMiqQnyZkowbx23HX/2rYjwTtEhShQQQ5ABW890+cxBAB4FV+GuI4MgCreeGbP6VOUV0tJG7BXyzXlm3+t5/MJz299X372zY7rp0t+/+AWFPW40KnOoWaiFf0L0QDzqQKYaA4A5gZIV4E2AKIUmAYAlLGckGrL75MrQPAmLPgeMfYQ/RjGmGokANzGGGp4EAGQ/B3BCV2vxxJd2zD26p7xo39lm06BauBbuAJRAN/VWpoAMJswyN2xAMzggOWePkCrr4hQYAi9ANI+hHZE3znwA8hcQ3bELkACQNQ19P8oIAagfqHiDrCBcuoKmIOY97Zl4TWwEPvzq1PbUjWLfZEA3IMBi1VGAd8meBWQK0E7ahcgBkDuGtopCsgCLKHhCrDoFLBNU3XdUScCrKrfIgq02jLrHwYLgL04CEDqGrIjW62prYBpx2QqwI5sbYINIFuCDgCyt8BOUKALIA6gfqKaDFDHipgC5iYotNqyIMCiSDvmBbDasiYAc7odk6sAO3rzLmwpIF+CdvRmFXQBWn9SmV25z5uCAAPRAGZqxP11yz9YSBFKNSHhFnx1wTyn2BB7U+C1Dzxp8v4FSQKzsT0wS50AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDUtMDRUMDk6MzM6NDYrMDA6MDD0/UvlAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA1LTA0VDA5OjMzOjQ2KzAwOjAwhaDzWQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII="/>
</svg>
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
</dict>
</plist>
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
generated_key_values = {}
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) do |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
generated_key_values[podname] = podpath
else
puts "Invalid plugin specification: #{line}"
end
end
generated_key_values
end
target 'Runner' do
use_frameworks!
use_modular_headers!
# Flutter Pod
copied_flutter_dir = File.join(__dir__, 'Flutter')
copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
# Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
# That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
unless File.exist?(generated_xcode_build_settings_path)
raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
unless File.exist?(copied_framework_path)
FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
end
unless File.exist?(copied_podspec_path)
FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
end
end
# Keep pod path relative so it can be checked into Podfile.lock.
pod 'Flutter', :path => 'Flutter'
# Plugin Pods
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.each do |name, path|
symlink = File.join('.symlinks', 'plugins', name)
File.symlink(path, symlink)
pod name, :path => File.join(symlink, 'ios')
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
PODS:
- Flutter (1.0.0)
- path_provider (0.0.1):
- Flutter
- path_provider_linux (0.0.1):
- Flutter
- path_provider_macos (0.0.1):
- Flutter
DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider:
:path: ".symlinks/plugins/path_provider/ios"
path_provider_linux:
:path: ".symlinks/plugins/path_provider_linux/ios"
path_provider_macos:
:path: ".symlinks/plugins/path_provider_macos/ios"
SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
COCOAPODS: 1.9.1
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
{
"images" : [
{
"idiom" : "universal",
"filename" : "LaunchImage.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "LaunchImage@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
# Launch Screen Assets
You can customize the launch screen with your own desired assets by replacing the image files in this directory.
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.
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
<viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
</imageView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
</constraints>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
<resources>
<image name="LaunchImage" width="168" height="185"/>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
</dependencies>
<scenes>
<!--Flutter View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>furniture_app</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>$(FLUTTER_BUILD_NAME)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
#import "GeneratedPluginRegistrant.h"
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import '../constants.dart';
class SearchBox extends StatelessWidget {
const SearchBox({
Key key,
this.onChanged,
}) : super(key: key);
final ValueChanged onChanged;
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.all(kDefaultPadding),
padding: EdgeInsets.symmetric(
horizontal: kDefaultPadding,
vertical: kDefaultPadding / 4, // 5 top and bottom
),
decoration: BoxDecoration(
color: Colors.white.withOpacity(0.4),
borderRadius: BorderRadius.circular(12),
),
child: TextField(
onChanged: onChanged,
style: TextStyle(color: Colors.white),
decoration: InputDecoration(
enabledBorder: InputBorder.none,
focusedBorder: InputBorder.none,
icon: SvgPicture.asset("assets/icons/search.svg"),
hintText: 'Search',
hintStyle: TextStyle(color: Colors.white),
),
),
);
}
}
import 'package:flutter/material.dart';
// list of colors that we use in our app
const kBackgroundColor = Color(0xFFF1EFF1);
const kPrimaryColor = Color(0xFF035AA6);
const kSecondaryColor = Color(0xFFFFA41B);
const kTextColor = Color(0xFF000839);
const kTextLightColor = Color(0xFF747474);
const kBlueColor = Color(0xFF40BAD5);
const kDefaultPadding = 20.0;
// our default Shadow
const kDefaultShadow = BoxShadow(
offset: Offset(0, 15),
blurRadius: 27,
color: Colors.black12, // Black color with 12% opacity
);
import 'package:flutter/material.dart';
import 'package:furniture_app/constants.dart';
import 'package:furniture_app/screens/product/products_screen.dart';
import 'package:google_fonts/google_fonts.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Furniture app',
theme: ThemeData(
// We set Poppins as our default font
textTheme: GoogleFonts.poppinsTextTheme(Theme.of(context).textTheme),
primaryColor: kPrimaryColor,
accentColor: kPrimaryColor,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: ProductsScreen(),
);
}
}
class Product {
final int id, price;
final String title, description, image;
Product({this.id, this.price, this.title, this.description, this.image});
}
// list of products
// for our demo
List<Product> products = [
Product(
id: 1,
price: 56,
title: "Classic Leather Arm Chair",
image: "assets/images/Item_1.png",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim",
),
Product(
id: 4,
price: 68,
title: "Poppy Plastic Tub Chair",
image: "assets/images/Item_2.png",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim",
),
Product(
id: 9,
price: 39,
title: "Bar Stool Chair",
image: "assets/images/Item_3.png",
description:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim",
),
];
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:furniture_app/constants.dart';
import 'package:furniture_app/models/product.dart';
import 'chat_and_add_to_cart.dart';
import 'list_of_colors.dart';
import 'product_image.dart';
class Body extends StatelessWidget {
final Product product;
const Body({Key key, this.product}) : super(key: key);
@override
Widget build(BuildContext context) {
// it provide us total height and width
Size size = MediaQuery.of(context).size;
// it enable scrolling on small devices
return SafeArea(
bottom: false,
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
width: double.infinity,
padding: EdgeInsets.symmetric(horizontal: kDefaultPadding),
decoration: BoxDecoration(
color: kBackgroundColor,
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(50),
bottomRight: Radius.circular(50),
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Center(
child: Hero(
tag: '${product.id}',
child: ProductPoster(
size: size,
image: product.image,
),
),
),
ListOfColors(),
Padding(
padding: const EdgeInsets.symmetric(
vertical: kDefaultPadding / 2),
child: Text(
product.title,
style: Theme.of(context).textTheme.headline6,
),
),
Text(
'\$${product.price}',
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w600,
color: kSecondaryColor,
),
),
Padding(
padding:
EdgeInsets.symmetric(vertical: kDefaultPadding / 2),
child: Text(
product.description,
style: TextStyle(color: kTextLightColor),
),
),
SizedBox(height: kDefaultPadding),
],
),
),
ChatAndAddToCart(),
],
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import '../../../constants.dart';
class ChatAndAddToCart extends StatelessWidget {
const ChatAndAddToCart({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.all(kDefaultPadding),
padding: EdgeInsets.symmetric(
horizontal: kDefaultPadding,
vertical: kDefaultPadding / 2,
),
decoration: BoxDecoration(
color: Color(0xFFFCBF1E),
borderRadius: BorderRadius.circular(30),
),
child: Row(
children: <Widget>[
SvgPicture.asset(
"assets/icons/chat.svg",
height: 18,
),
SizedBox(width: kDefaultPadding / 2),
Text(
"Chat",
style: TextStyle(color: Colors.white),
),
// it will cover all available spaces
Spacer(),
FlatButton.icon(
onPressed: () {},
icon: SvgPicture.asset(
"assets/icons/shopping-bag.svg",
height: 18,
),
label: Text(
"Add to Cart",
style: TextStyle(color: Colors.white),
),
),
],
),
);
}
}
import 'package:flutter/material.dart';
import '../../../constants.dart';
class ColorDot extends StatelessWidget {
const ColorDot({
Key key,
this.fillColor,
// by default we set it false
this.isSelected = false,
}) : super(key: key);
final Color fillColor;
final bool isSelected;
@override
Widget build(BuildContext context) {
return Container(
margin:
// left and right padding 8
EdgeInsets.symmetric(horizontal: kDefaultPadding / 2.5),
padding: EdgeInsets.all(3),
height: 24,
width: 24,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: isSelected ? Color(0xFF707070) : Colors.transparent,
),
),
child: Container(
decoration: BoxDecoration(
shape: BoxShape.circle,
color: fillColor,
),
),
);
}
}
import 'package:flutter/material.dart';
import '../../../constants.dart';
import 'color_dots.dart';
class ListOfColors extends StatelessWidget {
const ListOfColors({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: kDefaultPadding),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
ColorDot(
fillColor: Color(0xFF80989A),
isSelected: true,
),
ColorDot(
fillColor: Color(0xFFFF5200),
),
ColorDot(
fillColor: kPrimaryColor,
),
],
),
);
}
}
import 'package:flutter/material.dart';
import '../../../constants.dart';
class ProductPoster extends StatelessWidget {
const ProductPoster({
Key key,
@required this.size,
this.image,
}) : super(key: key);
final Size size;
final String image;
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(vertical: kDefaultPadding),
// the height of this container is 80% of our width
height: size.width * 0.8,
child: Stack(
alignment: Alignment.bottomCenter,
children: <Widget>[
Container(
height: size.width * 0.7,
width: size.width * 0.7,
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.circle,
),
),
Image.asset(
image,
height: size.width * 0.75,
width: size.width * 0.75,
fit: BoxFit.cover,
),
],
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:furniture_app/constants.dart';
import 'package:furniture_app/models/product.dart';
import 'components/body.dart';
class DetailsScreen extends StatelessWidget {
final Product product;
const DetailsScreen({Key key, this.product}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: kPrimaryColor,
appBar: buildAppBar(context),
body: Body(
product: product,
),
);
}
AppBar buildAppBar(BuildContext context) {
return AppBar(
backgroundColor: kBackgroundColor,
elevation: 0,
leading: IconButton(
padding: EdgeInsets.only(left: kDefaultPadding),
icon: SvgPicture.asset("assets/icons/back.svg"),
onPressed: () {
Navigator.pop(context);
},
),
centerTitle: false,
title: Text(
'Back'.toUpperCase(),
style: Theme.of(context).textTheme.bodyText2,
),
actions: <Widget>[
IconButton(
icon: SvgPicture.asset('assets/icons/cart_with_item.svg'),
onPressed: () {},
),
],
);
}
}
import 'package:flutter/material.dart';
import 'package:furniture_app/components/search_box.dart';
import 'package:furniture_app/constants.dart';
import 'package:furniture_app/models/product.dart';
import 'package:furniture_app/screens/details/details_screen.dart';
import 'category_list.dart';
import 'product_card.dart';
class Body extends StatelessWidget {
@override
Widget build(BuildContext context) {
return SafeArea(
bottom: false,
child: Column(
children: <Widget>[
SearchBox(onChanged: (value) {}),
CategoryList(),
SizedBox(height: kDefaultPadding / 2),
Expanded(
child: Stack(
children: <Widget>[
// Our background
Container(
margin: EdgeInsets.only(top: 70),
decoration: BoxDecoration(
color: kBackgroundColor,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(40),
topRight: Radius.circular(40),
),
),
),
ListView.builder(
// here we use our demo procuts list
itemCount: products.length,
itemBuilder: (context, index) => ProductCard(
itemIndex: index,
product: products[index],
press: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => DetailsScreen(
product: products[index],
),
),
);
},
),
)
],
),
),
],
),
);
}
}
import 'package:flutter/material.dart';
import '../../../constants.dart';
// We need statefull widget because we are gonna change some state on our category
class CategoryList extends StatefulWidget {
@override
_CategoryListState createState() => _CategoryListState();
}
class _CategoryListState extends State<CategoryList> {
// by default first item will be selected
int selectedIndex = 0;
List categories = ['All', 'Sofa', 'Park bench', 'Armchair'];
@override
Widget build(BuildContext context) {
return Container(
margin: EdgeInsets.symmetric(vertical: kDefaultPadding / 2),
height: 30,
child: ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: categories.length,
itemBuilder: (context, index) => GestureDetector(
onTap: () {
setState(() {
selectedIndex = index;
});
},
child: Container(
alignment: Alignment.center,
margin: EdgeInsets.only(
left: kDefaultPadding,
// At end item it add extra 20 right padding
right: index == categories.length - 1 ? kDefaultPadding : 0,
),
padding: EdgeInsets.symmetric(horizontal: kDefaultPadding),
decoration: BoxDecoration(
color: index == selectedIndex
? Colors.white.withOpacity(0.4)
: Colors.transparent,
borderRadius: BorderRadius.circular(6),
),
child: Text(
categories[index],
style: TextStyle(color: Colors.white),
),
),
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:furniture_app/models/product.dart';
import '../../../constants.dart';
class ProductCard extends StatelessWidget {
const ProductCard({
Key key,
this.itemIndex,
this.product,
this.press,
}) : super(key: key);
final int itemIndex;
final Product product;
final Function press;
@override
Widget build(BuildContext context) {
// It will provide us total height and width of our screen
Size size = MediaQuery.of(context).size;
return Container(
margin: EdgeInsets.symmetric(
horizontal: kDefaultPadding,
vertical: kDefaultPadding / 2,
),
// color: Colors.blueAccent,
height: 160,
child: InkWell(
onTap: press,
child: Stack(
alignment: Alignment.bottomCenter,
children: <Widget>[
// Those are our background
Container(
height: 136,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(22),
color: itemIndex.isEven ? kBlueColor : kSecondaryColor,
boxShadow: [kDefaultShadow],
),
child: Container(
margin: EdgeInsets.only(right: 10),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(22),
),
),
),
// our product image
Positioned(
top: 0,
right: 0,
child: Hero(
tag: '${product.id}',
child: Container(
padding: EdgeInsets.symmetric(horizontal: kDefaultPadding),
height: 160,
// image is square but we add extra 20 + 20 padding thats why width is 200
width: 200,
child: Image.asset(
product.image,
fit: BoxFit.cover,
),
),
),
),
// Product title and price
Positioned(
bottom: 0,
left: 0,
child: SizedBox(
height: 136,
// our image take 200 width, thats why we set out total width - 200
width: size.width - 200,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Spacer(),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: kDefaultPadding),
child: Text(
product.title,
style: Theme.of(context).textTheme.button,
),
),
// it use the available space
Spacer(),
Container(
padding: EdgeInsets.symmetric(
horizontal: kDefaultPadding * 1.5, // 30 padding
vertical: kDefaultPadding / 4, // 5 top and bottom
),
decoration: BoxDecoration(
color: kSecondaryColor,
borderRadius: BorderRadius.only(
bottomLeft: Radius.circular(22),
topRight: Radius.circular(22),
),
),
child: Text(
"\$${product.price}",
style: Theme.of(context).textTheme.button,
),
),
],
),
),
),
],
),
),
);
}
}
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:furniture_app/constants.dart';
import 'components/body.dart';
class ProductsScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: buildAppBar(),
backgroundColor: kPrimaryColor,
body: Body(),
);
}
AppBar buildAppBar() {
return AppBar(
elevation: 0,
centerTitle: false,
title: Text('Dashboard'),
actions: <Widget>[
IconButton(
icon: SvgPicture.asset("assets/icons/notification.svg"),
onPressed: () {},
),
],
);
}
}
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
archive:
dependency: transitive
description:
name: archive
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.13"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.12"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
cupertino_icons:
dependency: "direct main"
description:
name: cupertino_icons
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
file:
dependency: transitive
description:
name: file
url: "https://pub.dartlang.org"
source: hosted
version: "5.1.0"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_svg:
dependency: "direct main"
description:
name: flutter_svg
url: "https://pub.dartlang.org"
source: hosted
version: "0.17.4"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
google_fonts:
dependency: "direct main"
description:
name: google_fonts
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
http:
dependency: transitive
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.1"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "3.1.4"
image:
dependency: transitive
description:
name: image
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.12"
intl:
dependency: transitive
description:
name: intl
url: "https://pub.dartlang.org"
source: hosted
version: "0.16.1"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.6"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.8"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.4"
path_drawing:
dependency: transitive
description:
name: path_drawing
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.1"
path_parsing:
dependency: transitive
description:
name: path_parsing
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
path_provider:
dependency: transitive
description:
name: path_provider
url: "https://pub.dartlang.org"
source: hosted
version: "1.6.10"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.1+1"
path_provider_macos:
dependency: transitive
description:
name: path_provider_macos
url: "https://pub.dartlang.org"
source: hosted
version: "0.0.4+3"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
pedantic:
dependency: transitive
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.0"
petitparser:
dependency: transitive
description:
name: petitparser
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.0"
platform:
dependency: transitive
description:
name: platform
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.1"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
process:
dependency: transitive
description:
name: process
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.13"
quiver:
dependency: transitive
description:
name: quiver
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.3"
sky_engine:
dependency: transitive
description: flutter
source: sdk
version: "0.0.99"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.3"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.15"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.6"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
xdg_directories:
dependency: transitive
description:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.0"
xml:
dependency: transitive
description:
name: xml
url: "https://pub.dartlang.org"
source: hosted
version: "3.6.1"
sdks:
dart: ">=2.7.0 <3.0.0"
flutter: ">=1.17.0 <2.0.0"
name: furniture_app
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
flutter_svg: ^0.17.4 #it helps us to use SVG in our app
google_fonts: ^1.1.0 #this allows you to easily use any fonts from fonts.google.com in your Flutter app
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/images/
- assets/icons/
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.
# For details regarding adding assets from package dependencies, see
# https://flutter.dev/assets-and-images/#from-packages
# To add custom fonts to your application, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts from package dependencies,
# see https://flutter.dev/custom-fonts/#from-packages
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:furniture_app/main.dart';
void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(MyApp());
// Verify that our counter starts at 0.
expect(find.text('0'), findsOneWidget);
expect(find.text('1'), findsNothing);
// Tap the '+' icon and trigger a frame.
await tester.tap(find.byIcon(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment