├── .gitignore
├── .metadata
├── .vscode
└── launch.json
├── LICENSE
├── README.md
├── android
├── .gitignore
├── app
│ ├── build.gradle
│ └── src
│ │ ├── debug
│ │ └── AndroidManifest.xml
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin
│ │ │ └── com
│ │ │ │ └── example
│ │ │ │ └── product_web
│ │ │ │ └── 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
└── images
│ ├── battery.png
│ ├── beats.png
│ ├── bluetooth.png
│ ├── charging.png
│ ├── features.png
│ ├── headphone.png
│ ├── headset1.png
│ ├── headset2.png
│ ├── headset3.png
│ ├── headset4.png
│ ├── headset5.png
│ ├── headset6.png
│ ├── headset7.png
│ ├── headset8.png
│ ├── headset_left.png
│ ├── headset_right.png
│ ├── hsblack.png
│ ├── hsblue.png
│ ├── hsred.png
│ ├── logo.png
│ ├── microphone.png
│ └── microphone2.png
├── integration_test
├── app_test.dart
└── driver.dart
├── 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
├── main.dart
├── models
│ └── headphone.dart
├── pages
│ └── home.dart
├── utils
│ └── colors.dart
└── widgets
│ ├── animation_model.dart
│ ├── beats_ads.dart
│ ├── contact_us.dart
│ ├── feature_animator.dart
│ ├── features.dart
│ ├── footer.dart
│ ├── grey_ads.dart
│ ├── header.dart
│ ├── hero_section.dart
│ ├── input_widget.dart
│ ├── more_products.dart
│ ├── product_slider.dart
│ └── responsive_wrapper_widget.dart
├── pubspec.lock
├── pubspec.yaml
├── test
└── widget_test.dart
└── web
├── favicon.png
├── icons
├── Icon-192.png
└── Icon-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 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 5d36f2e7f5387b6c751449258ade8e4e6edf99be
8 | channel: beta
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | "version": "0.2.0",
6 | "configurations": [
7 | {
8 | "name": "product_web",
9 | "request": "launch",
10 | "type": "dart"
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Olayemii Garuba
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | This is a fun project, and so, not much work time have been put into it.
2 |
3 | ⛔ Not Totally Responsive 👀
4 |
5 | ⛔ Some performance issues noticed 👀
6 |
7 |
8 | 👉 Design was inspired by a design on Uplabs
9 |
10 | 
11 |
12 | 
13 |
14 | 
15 |
16 | 
17 |
18 | 
19 |
20 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply plugin: 'kotlin-android'
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27 |
28 | android {
29 | compileSdkVersion 30
30 |
31 | sourceSets {
32 | main.java.srcDirs += 'src/main/kotlin'
33 | }
34 |
35 | defaultConfig {
36 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
37 | applicationId "com.example.product_web"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/com/example/product_web/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.example.product_web
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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:4.1.0'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | google()
17 | jcenter()
18 | }
19 | }
20 |
21 | rootProject.buildDir = '../build'
22 | subprojects {
23 | project.buildDir = "${rootProject.buildDir}/${project.name}"
24 | }
25 | subprojects {
26 | project.evaluationDependsOn(':app')
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/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/images/battery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/battery.png
--------------------------------------------------------------------------------
/assets/images/beats.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/beats.png
--------------------------------------------------------------------------------
/assets/images/bluetooth.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/bluetooth.png
--------------------------------------------------------------------------------
/assets/images/charging.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/charging.png
--------------------------------------------------------------------------------
/assets/images/features.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/features.png
--------------------------------------------------------------------------------
/assets/images/headphone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headphone.png
--------------------------------------------------------------------------------
/assets/images/headset1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset1.png
--------------------------------------------------------------------------------
/assets/images/headset2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset2.png
--------------------------------------------------------------------------------
/assets/images/headset3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset3.png
--------------------------------------------------------------------------------
/assets/images/headset4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset4.png
--------------------------------------------------------------------------------
/assets/images/headset5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset5.png
--------------------------------------------------------------------------------
/assets/images/headset6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset6.png
--------------------------------------------------------------------------------
/assets/images/headset7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset7.png
--------------------------------------------------------------------------------
/assets/images/headset8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset8.png
--------------------------------------------------------------------------------
/assets/images/headset_left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset_left.png
--------------------------------------------------------------------------------
/assets/images/headset_right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/headset_right.png
--------------------------------------------------------------------------------
/assets/images/hsblack.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/hsblack.png
--------------------------------------------------------------------------------
/assets/images/hsblue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/hsblue.png
--------------------------------------------------------------------------------
/assets/images/hsred.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/hsred.png
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/logo.png
--------------------------------------------------------------------------------
/assets/images/microphone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/microphone.png
--------------------------------------------------------------------------------
/assets/images/microphone2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/assets/images/microphone2.png
--------------------------------------------------------------------------------
/integration_test/app_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter integration test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 | import 'package:integration_test/integration_test.dart';
11 |
12 | import 'package:product_web/main.dart' as app;
13 |
14 | void main() => run(_testMain);
15 |
16 | void _testMain() {
17 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
18 | // Build our app and trigger a frame.
19 | app.main();
20 |
21 | // Trigger a frame.
22 | await tester.pumpAndSettle();
23 |
24 | // Verify that our counter starts at 0.
25 | expect(find.text('0'), findsOneWidget);
26 | expect(find.text('1'), findsNothing);
27 |
28 | // Tap the '+' icon and trigger a frame.
29 | await tester.tap(find.byIcon(Icons.add));
30 | await tester.pump();
31 |
32 | // Verify that our counter has incremented.
33 | expect(find.text('0'), findsNothing);
34 | expect(find.text('1'), findsOneWidget);
35 | });
36 | }
37 |
--------------------------------------------------------------------------------
/integration_test/driver.dart:
--------------------------------------------------------------------------------
1 | // This file is provided as a convenience for running integration tests via the
2 | // flutter drive command.
3 | //
4 | // flutter drive --driver integration_test/driver.dart --target integration_test/app_test.dart
5 |
6 | import 'package:integration_test/integration_test_driver.dart';
7 |
8 | Future main() => integrationDriver();
9 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/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, '9.0'
3 |
4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true'
6 |
7 | project 'Runner', {
8 | 'Debug' => :debug,
9 | 'Profile' => :release,
10 | 'Release' => :release,
11 | }
12 |
13 | def 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 = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
13 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
14 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
15 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16 | /* End PBXBuildFile section */
17 |
18 | /* Begin PBXCopyFilesBuildPhase section */
19 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
20 | isa = PBXCopyFilesBuildPhase;
21 | buildActionMask = 2147483647;
22 | dstPath = "";
23 | dstSubfolderSpec = 10;
24 | files = (
25 | );
26 | name = "Embed Frameworks";
27 | runOnlyForDeploymentPostprocessing = 0;
28 | };
29 | /* End PBXCopyFilesBuildPhase section */
30 |
31 | /* Begin PBXFileReference section */
32 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
33 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
34 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
35 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
36 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
39 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
40 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
41 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
42 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
43 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
44 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
45 | /* End PBXFileReference section */
46 |
47 | /* Begin PBXFrameworksBuildPhase section */
48 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
49 | isa = PBXFrameworksBuildPhase;
50 | buildActionMask = 2147483647;
51 | files = (
52 | );
53 | runOnlyForDeploymentPostprocessing = 0;
54 | };
55 | /* End PBXFrameworksBuildPhase section */
56 |
57 | /* Begin PBXGroup section */
58 | 9740EEB11CF90186004384FC /* Flutter */ = {
59 | isa = PBXGroup;
60 | children = (
61 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
62 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
63 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
64 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
65 | );
66 | name = Flutter;
67 | sourceTree = "";
68 | };
69 | 97C146E51CF9000F007C117D = {
70 | isa = PBXGroup;
71 | children = (
72 | 9740EEB11CF90186004384FC /* Flutter */,
73 | 97C146F01CF9000F007C117D /* Runner */,
74 | 97C146EF1CF9000F007C117D /* Products */,
75 | );
76 | sourceTree = "";
77 | };
78 | 97C146EF1CF9000F007C117D /* Products */ = {
79 | isa = PBXGroup;
80 | children = (
81 | 97C146EE1CF9000F007C117D /* Runner.app */,
82 | );
83 | name = Products;
84 | sourceTree = "";
85 | };
86 | 97C146F01CF9000F007C117D /* Runner */ = {
87 | isa = PBXGroup;
88 | children = (
89 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
90 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
91 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
92 | 97C147021CF9000F007C117D /* Info.plist */,
93 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
94 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
95 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
96 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
97 | );
98 | path = Runner;
99 | sourceTree = "";
100 | };
101 | /* End PBXGroup section */
102 |
103 | /* Begin PBXNativeTarget section */
104 | 97C146ED1CF9000F007C117D /* Runner */ = {
105 | isa = PBXNativeTarget;
106 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107 | buildPhases = (
108 | 9740EEB61CF901F6004384FC /* Run Script */,
109 | 97C146EA1CF9000F007C117D /* Sources */,
110 | 97C146EB1CF9000F007C117D /* Frameworks */,
111 | 97C146EC1CF9000F007C117D /* Resources */,
112 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
113 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
114 | );
115 | buildRules = (
116 | );
117 | dependencies = (
118 | );
119 | name = Runner;
120 | productName = Runner;
121 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
122 | productType = "com.apple.product-type.application";
123 | };
124 | /* End PBXNativeTarget section */
125 |
126 | /* Begin PBXProject section */
127 | 97C146E61CF9000F007C117D /* Project object */ = {
128 | isa = PBXProject;
129 | attributes = {
130 | LastUpgradeCheck = 1020;
131 | ORGANIZATIONNAME = "";
132 | TargetAttributes = {
133 | 97C146ED1CF9000F007C117D = {
134 | CreatedOnToolsVersion = 7.3.1;
135 | LastSwiftMigration = 1100;
136 | };
137 | };
138 | };
139 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
140 | compatibilityVersion = "Xcode 9.3";
141 | developmentRegion = en;
142 | hasScannedForEncodings = 0;
143 | knownRegions = (
144 | en,
145 | Base,
146 | );
147 | mainGroup = 97C146E51CF9000F007C117D;
148 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
149 | projectDirPath = "";
150 | projectRoot = "";
151 | targets = (
152 | 97C146ED1CF9000F007C117D /* Runner */,
153 | );
154 | };
155 | /* End PBXProject section */
156 |
157 | /* Begin PBXResourcesBuildPhase section */
158 | 97C146EC1CF9000F007C117D /* Resources */ = {
159 | isa = PBXResourcesBuildPhase;
160 | buildActionMask = 2147483647;
161 | files = (
162 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
164 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166 | );
167 | runOnlyForDeploymentPostprocessing = 0;
168 | };
169 | /* End PBXResourcesBuildPhase section */
170 |
171 | /* Begin PBXShellScriptBuildPhase section */
172 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173 | isa = PBXShellScriptBuildPhase;
174 | buildActionMask = 2147483647;
175 | files = (
176 | );
177 | inputPaths = (
178 | );
179 | name = "Thin Binary";
180 | outputPaths = (
181 | );
182 | runOnlyForDeploymentPostprocessing = 0;
183 | shellPath = /bin/sh;
184 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
185 | };
186 | 9740EEB61CF901F6004384FC /* Run Script */ = {
187 | isa = PBXShellScriptBuildPhase;
188 | buildActionMask = 2147483647;
189 | files = (
190 | );
191 | inputPaths = (
192 | );
193 | name = "Run Script";
194 | outputPaths = (
195 | );
196 | runOnlyForDeploymentPostprocessing = 0;
197 | shellPath = /bin/sh;
198 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199 | };
200 | /* End PBXShellScriptBuildPhase section */
201 |
202 | /* Begin PBXSourcesBuildPhase section */
203 | 97C146EA1CF9000F007C117D /* Sources */ = {
204 | isa = PBXSourcesBuildPhase;
205 | buildActionMask = 2147483647;
206 | files = (
207 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
208 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
209 | );
210 | runOnlyForDeploymentPostprocessing = 0;
211 | };
212 | /* End PBXSourcesBuildPhase section */
213 |
214 | /* Begin PBXVariantGroup section */
215 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
216 | isa = PBXVariantGroup;
217 | children = (
218 | 97C146FB1CF9000F007C117D /* Base */,
219 | );
220 | name = Main.storyboard;
221 | sourceTree = "";
222 | };
223 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
224 | isa = PBXVariantGroup;
225 | children = (
226 | 97C147001CF9000F007C117D /* Base */,
227 | );
228 | name = LaunchScreen.storyboard;
229 | sourceTree = "";
230 | };
231 | /* End PBXVariantGroup section */
232 |
233 | /* Begin XCBuildConfiguration section */
234 | 249021D3217E4FDB00AE95B9 /* Profile */ = {
235 | isa = XCBuildConfiguration;
236 | buildSettings = {
237 | ALWAYS_SEARCH_USER_PATHS = NO;
238 | CLANG_ANALYZER_NONNULL = YES;
239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
240 | CLANG_CXX_LIBRARY = "libc++";
241 | CLANG_ENABLE_MODULES = YES;
242 | CLANG_ENABLE_OBJC_ARC = YES;
243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
244 | CLANG_WARN_BOOL_CONVERSION = YES;
245 | CLANG_WARN_COMMA = YES;
246 | CLANG_WARN_CONSTANT_CONVERSION = YES;
247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
249 | CLANG_WARN_EMPTY_BODY = YES;
250 | CLANG_WARN_ENUM_CONVERSION = YES;
251 | CLANG_WARN_INFINITE_RECURSION = YES;
252 | CLANG_WARN_INT_CONVERSION = YES;
253 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
254 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
255 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
256 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
258 | CLANG_WARN_STRICT_PROTOTYPES = YES;
259 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
260 | CLANG_WARN_UNREACHABLE_CODE = YES;
261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
263 | COPY_PHASE_STRIP = NO;
264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
265 | ENABLE_NS_ASSERTIONS = NO;
266 | ENABLE_STRICT_OBJC_MSGSEND = YES;
267 | GCC_C_LANGUAGE_STANDARD = gnu99;
268 | GCC_NO_COMMON_BLOCKS = YES;
269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
271 | GCC_WARN_UNDECLARED_SELECTOR = YES;
272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
273 | GCC_WARN_UNUSED_FUNCTION = YES;
274 | GCC_WARN_UNUSED_VARIABLE = YES;
275 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
276 | MTL_ENABLE_DEBUG_INFO = NO;
277 | SDKROOT = iphoneos;
278 | SUPPORTED_PLATFORMS = iphoneos;
279 | TARGETED_DEVICE_FAMILY = "1,2";
280 | VALIDATE_PRODUCT = YES;
281 | };
282 | name = Profile;
283 | };
284 | 249021D4217E4FDB00AE95B9 /* Profile */ = {
285 | isa = XCBuildConfiguration;
286 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
287 | buildSettings = {
288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
289 | CLANG_ENABLE_MODULES = YES;
290 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
291 | ENABLE_BITCODE = NO;
292 | INFOPLIST_FILE = Runner/Info.plist;
293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
294 | PRODUCT_BUNDLE_IDENTIFIER = com.example.productWeb;
295 | PRODUCT_NAME = "$(TARGET_NAME)";
296 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
297 | SWIFT_VERSION = 5.0;
298 | VERSIONING_SYSTEM = "apple-generic";
299 | };
300 | name = Profile;
301 | };
302 | 97C147031CF9000F007C117D /* Debug */ = {
303 | isa = XCBuildConfiguration;
304 | buildSettings = {
305 | ALWAYS_SEARCH_USER_PATHS = NO;
306 | CLANG_ANALYZER_NONNULL = YES;
307 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
308 | CLANG_CXX_LIBRARY = "libc++";
309 | CLANG_ENABLE_MODULES = YES;
310 | CLANG_ENABLE_OBJC_ARC = YES;
311 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
312 | CLANG_WARN_BOOL_CONVERSION = YES;
313 | CLANG_WARN_COMMA = YES;
314 | CLANG_WARN_CONSTANT_CONVERSION = YES;
315 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
316 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
317 | CLANG_WARN_EMPTY_BODY = YES;
318 | CLANG_WARN_ENUM_CONVERSION = YES;
319 | CLANG_WARN_INFINITE_RECURSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
322 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
323 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
324 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
325 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
326 | CLANG_WARN_STRICT_PROTOTYPES = YES;
327 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
328 | CLANG_WARN_UNREACHABLE_CODE = YES;
329 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
330 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
331 | COPY_PHASE_STRIP = NO;
332 | DEBUG_INFORMATION_FORMAT = dwarf;
333 | ENABLE_STRICT_OBJC_MSGSEND = YES;
334 | ENABLE_TESTABILITY = YES;
335 | GCC_C_LANGUAGE_STANDARD = gnu99;
336 | GCC_DYNAMIC_NO_PIC = NO;
337 | GCC_NO_COMMON_BLOCKS = YES;
338 | GCC_OPTIMIZATION_LEVEL = 0;
339 | GCC_PREPROCESSOR_DEFINITIONS = (
340 | "DEBUG=1",
341 | "$(inherited)",
342 | );
343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
345 | GCC_WARN_UNDECLARED_SELECTOR = YES;
346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
347 | GCC_WARN_UNUSED_FUNCTION = YES;
348 | GCC_WARN_UNUSED_VARIABLE = YES;
349 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350 | MTL_ENABLE_DEBUG_INFO = YES;
351 | ONLY_ACTIVE_ARCH = YES;
352 | SDKROOT = iphoneos;
353 | TARGETED_DEVICE_FAMILY = "1,2";
354 | };
355 | name = Debug;
356 | };
357 | 97C147041CF9000F007C117D /* Release */ = {
358 | isa = XCBuildConfiguration;
359 | buildSettings = {
360 | ALWAYS_SEARCH_USER_PATHS = NO;
361 | CLANG_ANALYZER_NONNULL = YES;
362 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
363 | CLANG_CXX_LIBRARY = "libc++";
364 | CLANG_ENABLE_MODULES = YES;
365 | CLANG_ENABLE_OBJC_ARC = YES;
366 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
367 | CLANG_WARN_BOOL_CONVERSION = YES;
368 | CLANG_WARN_COMMA = YES;
369 | CLANG_WARN_CONSTANT_CONVERSION = YES;
370 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
372 | CLANG_WARN_EMPTY_BODY = YES;
373 | CLANG_WARN_ENUM_CONVERSION = YES;
374 | CLANG_WARN_INFINITE_RECURSION = YES;
375 | CLANG_WARN_INT_CONVERSION = YES;
376 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
377 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
378 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
379 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
380 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
381 | CLANG_WARN_STRICT_PROTOTYPES = YES;
382 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
383 | CLANG_WARN_UNREACHABLE_CODE = YES;
384 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
385 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
386 | COPY_PHASE_STRIP = NO;
387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
388 | ENABLE_NS_ASSERTIONS = NO;
389 | ENABLE_STRICT_OBJC_MSGSEND = YES;
390 | GCC_C_LANGUAGE_STANDARD = gnu99;
391 | GCC_NO_COMMON_BLOCKS = YES;
392 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
393 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
394 | GCC_WARN_UNDECLARED_SELECTOR = YES;
395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
396 | GCC_WARN_UNUSED_FUNCTION = YES;
397 | GCC_WARN_UNUSED_VARIABLE = YES;
398 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
399 | MTL_ENABLE_DEBUG_INFO = NO;
400 | SDKROOT = iphoneos;
401 | SUPPORTED_PLATFORMS = iphoneos;
402 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
403 | TARGETED_DEVICE_FAMILY = "1,2";
404 | VALIDATE_PRODUCT = YES;
405 | };
406 | name = Release;
407 | };
408 | 97C147061CF9000F007C117D /* Debug */ = {
409 | isa = XCBuildConfiguration;
410 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
411 | buildSettings = {
412 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
413 | CLANG_ENABLE_MODULES = YES;
414 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
415 | ENABLE_BITCODE = NO;
416 | INFOPLIST_FILE = Runner/Info.plist;
417 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
418 | PRODUCT_BUNDLE_IDENTIFIER = com.example.productWeb;
419 | PRODUCT_NAME = "$(TARGET_NAME)";
420 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
421 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
422 | SWIFT_VERSION = 5.0;
423 | VERSIONING_SYSTEM = "apple-generic";
424 | };
425 | name = Debug;
426 | };
427 | 97C147071CF9000F007C117D /* Release */ = {
428 | isa = XCBuildConfiguration;
429 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
430 | buildSettings = {
431 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
432 | CLANG_ENABLE_MODULES = YES;
433 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
434 | ENABLE_BITCODE = NO;
435 | INFOPLIST_FILE = Runner/Info.plist;
436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
437 | PRODUCT_BUNDLE_IDENTIFIER = com.example.productWeb;
438 | PRODUCT_NAME = "$(TARGET_NAME)";
439 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
440 | SWIFT_VERSION = 5.0;
441 | VERSIONING_SYSTEM = "apple-generic";
442 | };
443 | name = Release;
444 | };
445 | /* End XCBuildConfiguration section */
446 |
447 | /* Begin XCConfigurationList section */
448 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
449 | isa = XCConfigurationList;
450 | buildConfigurations = (
451 | 97C147031CF9000F007C117D /* Debug */,
452 | 97C147041CF9000F007C117D /* Release */,
453 | 249021D3217E4FDB00AE95B9 /* Profile */,
454 | );
455 | defaultConfigurationIsVisible = 0;
456 | defaultConfigurationName = Release;
457 | };
458 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
459 | isa = XCConfigurationList;
460 | buildConfigurations = (
461 | 97C147061CF9000F007C117D /* Debug */,
462 | 97C147071CF9000F007C117D /* Release */,
463 | 249021D4217E4FDB00AE95B9 /* Profile */,
464 | );
465 | defaultConfigurationIsVisible = 0;
466 | defaultConfigurationName = Release;
467 | };
468 | /* End XCConfigurationList section */
469 | };
470 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
471 | }
472 |
--------------------------------------------------------------------------------
/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 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/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 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | product_web
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:google_fonts/google_fonts.dart';
3 | import 'package:product_web/pages/home.dart';
4 | import 'package:responsive_framework/responsive_framework.dart';
5 |
6 | void main() {
7 | runApp(MyApp());
8 | }
9 |
10 | class MyApp extends StatelessWidget {
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | debugShowCheckedModeBanner: false,
15 | theme: Theme.of(context).copyWith(
16 | platform: TargetPlatform.android,
17 | textTheme: GoogleFonts.interTextTheme(),
18 | scaffoldBackgroundColor: Colors.white,
19 | ),
20 | builder: (context, widget) => ResponsiveWrapper.builder(
21 | Navigator(
22 | pages: [
23 | MaterialPage(
24 | key: ValueKey("home"),
25 | child: Home(),
26 | )
27 | ],
28 | onPopPage: (route, result) => route.didPop(result),
29 | ),
30 | // maxWidth: 1200,
31 | minWidth: 480,
32 | defaultScale: true,
33 | breakpoints: [
34 | ResponsiveBreakpoint.resize(480, name: MOBILE),
35 | ResponsiveBreakpoint.autoScale(800, name: TABLET),
36 | ResponsiveBreakpoint.resize(1000, name: DESKTOP),
37 | ],
38 | background: Container(
39 | color: Color(0xFFFFFFFF),
40 | ),
41 | ),
42 | );
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/lib/models/headphone.dart:
--------------------------------------------------------------------------------
1 | class Headphone {
2 | final String color;
3 | final String image;
4 | final String price;
5 |
6 | Headphone({this.color, this.image, this.price});
7 | }
8 |
--------------------------------------------------------------------------------
/lib/pages/home.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:inview_notifier_list/inview_notifier_list.dart';
3 | import 'package:product_web/utils/colors.dart';
4 | import 'package:product_web/widgets/beats_ads.dart';
5 | import 'package:product_web/widgets/contact_us.dart';
6 | import 'package:product_web/widgets/features.dart';
7 | import 'package:product_web/widgets/footer.dart';
8 | import 'package:product_web/widgets/grey_ads.dart';
9 | import 'package:product_web/widgets/header.dart';
10 | import 'package:product_web/widgets/hero_section.dart';
11 | import 'package:product_web/widgets/more_products.dart';
12 | import 'package:product_web/widgets/product_slider.dart';
13 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
14 | import 'package:responsive_framework/responsive_wrapper.dart';
15 |
16 | import '../widgets/beats_ads.dart';
17 |
18 | class Home extends StatelessWidget {
19 | final ScrollController controller = ScrollController();
20 | final List colors = [
21 | Colors.red,
22 | Colors.blue,
23 | kDarkButtonColor,
24 | ];
25 | bool featuresActive = false;
26 |
27 | final List uis = [
28 | // Container(
29 | // child: Column(
30 | // children: [],
31 | // ),
32 | // ),
33 | Padding(
34 | padding: const EdgeInsets.symmetric(vertical: 16.0),
35 | child: ResponsiveWrapperWidget(
36 | child: Header(),
37 | height: 51.0,
38 | ),
39 | ),
40 | HeroSection(),
41 | ProductSlider(),
42 | Container(
43 | child: GreyAds(),
44 | ),
45 | SizedBox(),
46 | Container(
47 | child: MoreProducts(),
48 | ),
49 | Container(
50 | child: BeatsAds(),
51 | ),
52 | Container(
53 | child: ContactUs(),
54 | ),
55 | Container(
56 | child: Footer(),
57 | )
58 | ];
59 | @override
60 | Widget build(BuildContext context) {
61 | return Scaffold(
62 | body: Container(
63 | child: InViewNotifierList(
64 | isInViewPortCondition:
65 | (double deltaTop, double deltaBottom, double vpHeight) {
66 | return deltaTop < (0.5 * vpHeight) &&
67 | deltaBottom > (0.5 * vpHeight);
68 | },
69 | itemCount: uis.length,
70 | builder: (BuildContext context, int index) {
71 | return InViewNotifierWidget(
72 | id: '$index',
73 | builder: (BuildContext context, bool isInView, Widget child) {
74 | return Container(
75 | // color: isInView ? Colors.green : Colors.red,
76 | child: index == 4
77 | ? Container(
78 | child: Features(isActive: isInView),
79 | )
80 | : uis[index],
81 | );
82 | },
83 | );
84 | },
85 | ),
86 | ),
87 | );
88 | }
89 | }
90 |
--------------------------------------------------------------------------------
/lib/utils/colors.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | const Color kTextDarkColor = Color.fromRGBO(3, 9, 18, 1);
4 | const Color kDarkButtonColor = Color.fromRGBO(9, 29, 59, 1);
5 |
--------------------------------------------------------------------------------
/lib/widgets/animation_model.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/cupertino.dart';
2 |
3 | class SlideItemAnimationModel {
4 | final String id;
5 | final int entryDuration;
6 | final int entry;
7 | bool visible;
8 |
9 | SlideItemAnimationModel(
10 | {@required this.id,
11 | @required this.entryDuration,
12 | @required this.entry,
13 | this.visible = false});
14 |
15 | @override
16 | bool operator ==(other) {
17 | if (this.id == other.id) {
18 | return true;
19 | }
20 |
21 | return false;
22 | }
23 |
24 | @override
25 | int get hashCode => this.id.hashCode;
26 | }
27 |
28 | Duration getSlideItemAnimationDuration(
29 | String id, List items) {
30 | return Duration(
31 | milliseconds: items.firstWhere((element) => element.id == id).visible
32 | ? items.firstWhere((element) => element.id == id).entryDuration
33 | : 2001);
34 | }
35 |
36 | bool getSlideItemAnimationVisibility(
37 | String id, List items) {
38 | return items.firstWhere((element) => element.id == id).visible;
39 | }
40 |
41 | List getSlideItemAnimationUpdate(
42 | double animationValue, List items) {
43 | return items.map((e) {
44 | if (e.visible == false && animationValue >= e.entry) {
45 | e.visible = true;
46 | return e;
47 | } else if (e.visible == true && animationValue < e.entry) {
48 | e.visible = false;
49 | return e;
50 | }
51 | return e;
52 | }).toList();
53 | }
54 |
--------------------------------------------------------------------------------
/lib/widgets/beats_ads.dart:
--------------------------------------------------------------------------------
1 | import 'package:carousel_slider/carousel_slider.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_icons/flutter_icons.dart';
4 | import 'package:product_web/models/headphone.dart';
5 | import 'package:product_web/utils/colors.dart';
6 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
7 |
8 | class BeatsAds extends StatefulWidget {
9 | @override
10 | _BeatsAdsState createState() => _BeatsAdsState();
11 | }
12 |
13 | class _BeatsAdsState extends State
14 | with SingleTickerProviderStateMixin {
15 | AnimationController controller;
16 | Animation animation;
17 |
18 | @override
19 | void initState() {
20 | controller =
21 | AnimationController(vsync: this, duration: Duration(seconds: 2));
22 | animation = Tween(begin: 0, end: 100).animate(controller)
23 | ..addListener(() {
24 | setState(() {});
25 | });
26 | controller.repeat(reverse: true);
27 | super.initState();
28 | }
29 |
30 | @override
31 | void dispose() {
32 | controller.dispose();
33 | super.dispose();
34 | }
35 |
36 | @override
37 | Widget build(BuildContext context) {
38 | return ResponsiveWrapperWidget(
39 | height: 400.0,
40 | child: Row(
41 | children: [
42 | Expanded(
43 | child: Column(
44 | mainAxisAlignment: MainAxisAlignment.center,
45 | children: [
46 | Expanded(
47 | child: AnimatedContainer(
48 | duration: Duration(seconds: 2),
49 | transform: Matrix4.translationValues(0, animation.value, 0),
50 | child: Image.asset(
51 | "assets/images/beats.png",
52 | width: 450.0,
53 | ),
54 | ),
55 | ),
56 | ],
57 | ),
58 | ),
59 | Expanded(
60 | child: Column(
61 | crossAxisAlignment: CrossAxisAlignment.start,
62 | mainAxisAlignment: MainAxisAlignment.center,
63 | children: [
64 | Text(
65 | "Responsive noise\nblocking",
66 | style: TextStyle(
67 | fontSize: 36.0,
68 | fontWeight: FontWeight.w700,
69 | ),
70 | ),
71 | SizedBox(
72 | height: 8.0,
73 | ),
74 | Text(
75 | "Headphones are a necessity without a doubt. As the millennial culture says,house without our wallets but not without headphones!”Headphones are a necessity without a doubt. As the millennial culture says,",
76 | style: TextStyle(
77 | height: 1.8,
78 | color: kTextDarkColor.withOpacity(0.7),
79 | ),
80 | ),
81 | SizedBox(
82 | height: 20.0,
83 | ),
84 | RichText(
85 | text: TextSpan(
86 | children: [
87 | TextSpan(
88 | text: "\$199.99",
89 | style: TextStyle(
90 | color: kTextDarkColor.withOpacity(0.5),
91 | decoration: TextDecoration.lineThrough,
92 | ),
93 | ),
94 | TextSpan(text: " " * 5),
95 | TextSpan(
96 | text: "\$179.99",
97 | style: TextStyle(),
98 | ),
99 | ],
100 | ),
101 | ),
102 | SizedBox(height: 30.0),
103 | FlatButton(
104 | color: kDarkButtonColor,
105 | onPressed: () {},
106 | padding: EdgeInsets.symmetric(
107 | vertical: 18.0,
108 | horizontal: 25.0,
109 | ),
110 | child: Text(
111 | "Shop Now",
112 | style: TextStyle(
113 | color: Colors.white,
114 | ),
115 | ),
116 | )
117 | ],
118 | ),
119 | ),
120 | ],
121 | ),
122 | );
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/lib/widgets/contact_us.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_icons/flutter_icons.dart';
3 | import 'package:product_web/widgets/input_widget.dart';
4 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
5 |
6 | import '../utils/colors.dart';
7 | import '../utils/colors.dart';
8 |
9 | class ContactUs extends StatelessWidget {
10 | @override
11 | Widget build(BuildContext context) {
12 | return Stack(
13 | children: [
14 | Container(
15 | width: double.infinity,
16 | child: Row(
17 | children: [
18 | Expanded(
19 | child: Padding(
20 | padding: const EdgeInsets.symmetric(horizontal: 80.0),
21 | child: ResponsiveWrapperWidget(
22 | height: 300.0,
23 | child: Column(
24 | mainAxisAlignment: MainAxisAlignment.center,
25 | children: [
26 | Container(
27 | decoration: BoxDecoration(),
28 | ),
29 | Text(
30 | "Say Hello to Us",
31 | style: TextStyle(
32 | fontSize: 28.0,
33 | fontWeight: FontWeight.w700,
34 | ),
35 | ),
36 | SizedBox(
37 | height: 50.0,
38 | ),
39 | Row(
40 | mainAxisAlignment: MainAxisAlignment.center,
41 | children: [
42 | Container(
43 | width: 300.0,
44 | child: InputWidget(
45 | prefixIcon: FlutterIcons.user_ent,
46 | hintText: "Enter your name",
47 | ),
48 | ),
49 | SizedBox(
50 | width: 20.0,
51 | ),
52 | Container(
53 | width: 300.0,
54 | child: InputWidget(
55 | prefixIcon: FlutterIcons.mail_ant,
56 | hintText: "Enter your email address",
57 | ),
58 | ),
59 | Container(
60 | height: 48.0,
61 | child: FlatButton(
62 | onPressed: () {},
63 | color: kDarkButtonColor,
64 | child: Text(
65 | "Send",
66 | style: TextStyle(
67 | color: Colors.white,
68 | ),
69 | ),
70 | ),
71 | )
72 | // InputWidget(),
73 | ],
74 | ),
75 | ],
76 | ),
77 | ),
78 | ),
79 | ),
80 | ],
81 | ),
82 | ),
83 | Positioned(
84 | top: -30.0,
85 | left: -150.0,
86 | child: Image.asset(
87 | "assets/images/headset_left.png",
88 | ),
89 | ),
90 | Positioned(
91 | top: 40.0,
92 | width: 250.0,
93 | right: -90.0,
94 | child: Image.asset(
95 | "assets/images/headset_right.png",
96 | ),
97 | ),
98 | ],
99 | );
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lib/widgets/feature_animator.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class FeatureAnimator extends StatelessWidget {
4 | final Duration duration;
5 | final Offset offset;
6 | final bool direction;
7 | final Widget child;
8 |
9 | const FeatureAnimator(
10 | {Key key, this.duration, this.offset, this.direction, this.child})
11 | : super(key: key);
12 |
13 | @override
14 | Widget build(BuildContext context) {
15 | print(direction);
16 | return AnimatedOpacity(
17 | duration: duration,
18 | opacity: direction ? 1 : 0,
19 | curve: direction ? Curves.easeIn : Curves.easeOut,
20 | child: AnimatedContainer(
21 | duration: duration,
22 | transform: direction
23 | ? Matrix4.translationValues(0, 0, 0)
24 | : Matrix4.translationValues(offset.dx, offset.dy, 0),
25 | curve: direction ? Curves.linear : Curves.linear,
26 | child: child,
27 | ),
28 | );
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/lib/widgets/features.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:product_web/widgets/animation_model.dart';
3 | import 'package:product_web/widgets/feature_animator.dart';
4 |
5 | class Features extends StatefulWidget {
6 | final bool isActive;
7 | Features({this.isActive});
8 | @override
9 | _FeaturesState createState() => _FeaturesState();
10 | }
11 |
12 | class _FeaturesState extends State
13 | with SingleTickerProviderStateMixin {
14 | AnimationController controller;
15 | Animation animation;
16 | List slideItems = [
17 | SlideItemAnimationModel(
18 | id: 'slide_1',
19 | entryDuration: 800,
20 | entry: 0,
21 | ),
22 | SlideItemAnimationModel(
23 | id: 'slide_2',
24 | entryDuration: 800,
25 | entry: 500,
26 | ),
27 | SlideItemAnimationModel(
28 | id: 'slide_3',
29 | entryDuration: 800,
30 | entry: 1300,
31 | ),
32 | SlideItemAnimationModel(
33 | id: 'slide_4',
34 | entryDuration: 800,
35 | entry: 33,
36 | ),
37 | ];
38 | final slideItemOffset = Offset(0, 60);
39 |
40 | @override
41 | void initState() {
42 | controller = AnimationController(
43 | vsync: this,
44 | duration: Duration(milliseconds: 600),
45 | );
46 | animation = Tween(begin: 0, end: 2000).animate(controller);
47 |
48 | animation.addListener(() {
49 | print(animation.value);
50 | this.slideItems =
51 | getSlideItemAnimationUpdate(animation.value, this.slideItems);
52 | setState(() {});
53 | });
54 |
55 | super.initState();
56 | }
57 |
58 | @override
59 | void dispose() {
60 | controller.dispose();
61 | super.dispose();
62 | }
63 |
64 | @override
65 | void didUpdateWidget(covariant Features oldWidget) {
66 | if (this.widget.isActive) {
67 | controller
68 | ..forward()
69 | ..addListener(() {});
70 | }
71 | super.didUpdateWidget(oldWidget);
72 | }
73 |
74 | @override
75 | Widget build(BuildContext context) {
76 | print(slideItems.map((e) => e.visible).toList());
77 | return Container(
78 | height: MediaQuery.of(context).size.height,
79 | padding: EdgeInsets.symmetric(vertical: 50.0),
80 | child: Column(
81 | crossAxisAlignment: CrossAxisAlignment.stretch,
82 | children: [
83 | Text(
84 | "Exhale your worries while\ninhaling music.",
85 | textAlign: TextAlign.center,
86 | style: TextStyle(
87 | fontSize: 32.0,
88 | fontWeight: FontWeight.w700,
89 | ),
90 | ),
91 | Expanded(
92 | child: Stack(
93 | // alignment: Alignment.center,
94 | fit: StackFit.expand,
95 | children: [
96 | Image.asset("assets/images/headset8.png"),
97 | Positioned(
98 | top: 100.0,
99 | left: 150.0,
100 | child: FeatureAnimator(
101 | direction:
102 | getSlideItemAnimationVisibility("slide_1", slideItems),
103 | duration:
104 | getSlideItemAnimationDuration("slide_1", slideItems),
105 | child: Image.asset("assets/images/bluetooth.png"),
106 | offset: slideItemOffset,
107 | ),
108 | ),
109 | Positioned(
110 | top: 120.0,
111 | left: 150.0,
112 | child: FeatureAnimator(
113 | direction:
114 | getSlideItemAnimationVisibility("slide_2", slideItems),
115 | duration:
116 | getSlideItemAnimationDuration("slide_2", slideItems),
117 | child: Image.asset("assets/images/headphone.png"),
118 | offset: slideItemOffset,
119 | ),
120 | ),
121 | Positioned(
122 | top: 350.0,
123 | left: 150.0,
124 | child: FeatureAnimator(
125 | direction:
126 | getSlideItemAnimationVisibility("slide_3", slideItems),
127 | duration:
128 | getSlideItemAnimationDuration("slide_3", slideItems),
129 | child: Image.asset("assets/images/microphone.png"),
130 | offset: slideItemOffset,
131 | ),
132 | ),
133 | Positioned(
134 | top: 80.0,
135 | right: 150.0,
136 | child: FeatureAnimator(
137 | direction:
138 | getSlideItemAnimationVisibility("slide_1", slideItems),
139 | duration:
140 | getSlideItemAnimationDuration("slide_1", slideItems),
141 | child: Image.asset("assets/images/microphone2.png"),
142 | offset: slideItemOffset,
143 | ),
144 | ),
145 | Positioned(
146 | top: 200.0,
147 | right: 140.0,
148 | child: FeatureAnimator(
149 | direction:
150 | getSlideItemAnimationVisibility("slide_2", slideItems),
151 | duration:
152 | getSlideItemAnimationDuration("slide_2", slideItems),
153 | child: Image.asset("assets/images/charging.png"),
154 | offset: slideItemOffset,
155 | ),
156 | ),
157 | Positioned(
158 | top: 400.0,
159 | right: 150.0,
160 | child: FeatureAnimator(
161 | direction:
162 | getSlideItemAnimationVisibility("slide_3", slideItems),
163 | duration:
164 | getSlideItemAnimationDuration("slide_3", slideItems),
165 | child: Image.asset("assets/images/battery.png"),
166 | offset: slideItemOffset,
167 | ),
168 | ),
169 | ],
170 | ),
171 | ),
172 | ],
173 | ),
174 | );
175 | }
176 | }
177 |
--------------------------------------------------------------------------------
/lib/widgets/footer.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_icons/flutter_icons.dart';
3 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
4 |
5 | import '../utils/colors.dart';
6 |
7 | class Footer extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return Container(
11 | height: 120.0,
12 | width: double.infinity,
13 | color: kDarkButtonColor,
14 | child: ResponsiveWrapperWidget(
15 | height: 120.0,
16 | child: Row(
17 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
18 | children: [
19 | Image.asset(
20 | "assets/images/logo.png",
21 | ),
22 | Row(
23 | children: [
24 | Text(
25 | "Contact",
26 | style: TextStyle(
27 | color: Colors.white.withOpacity(0.7),
28 | ),
29 | ),
30 | SizedBox(
31 | width: 35.0,
32 | ),
33 | Text(
34 | "Feedback",
35 | style: TextStyle(
36 | color: Colors.white.withOpacity(0.7),
37 | ),
38 | ),
39 | SizedBox(
40 | width: 35.0,
41 | ),
42 | Text(
43 | "Join Our Slack",
44 | style: TextStyle(
45 | color: Colors.white.withOpacity(0.7),
46 | ),
47 | ),
48 | SizedBox(
49 | width: 35.0,
50 | ),
51 | Text(
52 | "Terms",
53 | style: TextStyle(
54 | color: Colors.white.withOpacity(0.7),
55 | ),
56 | ),
57 | ],
58 | ),
59 | Row(
60 | children: [
61 | Container(
62 | padding: EdgeInsets.all(10.0),
63 | decoration: BoxDecoration(
64 | shape: BoxShape.circle,
65 | border: Border.all(
66 | color: Colors.white.withOpacity(0.7),
67 | ),
68 | ),
69 | child: Icon(
70 | FlutterIcons.facebook_faw,
71 | color: Colors.white.withOpacity(0.7),
72 | size: 14.0,
73 | ),
74 | ),
75 | SizedBox(
76 | width: 20.0,
77 | ),
78 | Container(
79 | padding: EdgeInsets.all(10.0),
80 | decoration: BoxDecoration(
81 | shape: BoxShape.circle,
82 | border: Border.all(
83 | color: Colors.white.withOpacity(0.7),
84 | ),
85 | ),
86 | child: Icon(
87 | FlutterIcons.instagram_ant,
88 | color: Colors.white.withOpacity(0.7),
89 | size: 14.0,
90 | ),
91 | ),
92 | SizedBox(
93 | width: 20.0,
94 | ),
95 | Container(
96 | padding: EdgeInsets.all(10.0),
97 | decoration: BoxDecoration(
98 | shape: BoxShape.circle,
99 | border: Border.all(
100 | color: Colors.white.withOpacity(0.7),
101 | ),
102 | ),
103 | child: Icon(
104 | FlutterIcons.twitter_ant,
105 | color: Colors.white.withOpacity(0.7),
106 | size: 14.0,
107 | ),
108 | ),
109 | ],
110 | )
111 | ],
112 | ),
113 | ),
114 | );
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/lib/widgets/grey_ads.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:product_web/utils/colors.dart';
3 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
4 |
5 | class GreyAds extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | final List colors = [
9 | Colors.red,
10 | Colors.blue,
11 | kDarkButtonColor,
12 | ];
13 | return Container(
14 | width: double.infinity,
15 | color: Color.fromRGBO(230, 235, 242, 0.3),
16 | child: Container(
17 | child: ResponsiveWrapperWidget(
18 | child: Row(
19 | children: [
20 | Expanded(
21 | child: Column(
22 | crossAxisAlignment: CrossAxisAlignment.start,
23 | mainAxisAlignment: MainAxisAlignment.center,
24 | children: [
25 | Text(
26 | "Immerse yourself in\nyour music",
27 | style: TextStyle(
28 | fontSize: 36.0,
29 | fontWeight: FontWeight.w700,
30 | ),
31 | ),
32 | SizedBox(
33 | height: 8.0,
34 | ),
35 | Container(
36 | constraints: BoxConstraints(
37 | maxWidth: 400.0,
38 | ),
39 | child: Text(
40 | "Headphones are a necessity without a doubt. As millennial culture says, “we can leave the house without our wallets but not without headphones!”.",
41 | style: TextStyle(
42 | height: 1.8,
43 | color: kTextDarkColor.withOpacity(0.7),
44 | ),
45 | ),
46 | ),
47 | SizedBox(
48 | height: 20.0,
49 | ),
50 | RichText(
51 | text: TextSpan(
52 | children: [
53 | TextSpan(
54 | text: "\$199.99",
55 | style: TextStyle(
56 | color: kTextDarkColor.withOpacity(0.5),
57 | decoration: TextDecoration.lineThrough,
58 | ),
59 | ),
60 | TextSpan(text: " " * 5),
61 | TextSpan(
62 | text: "\$179.99",
63 | style: TextStyle(),
64 | ),
65 | ],
66 | ),
67 | ),
68 | SizedBox(height: 30.0),
69 | FlatButton(
70 | color: kDarkButtonColor,
71 | onPressed: () {},
72 | padding: EdgeInsets.symmetric(
73 | vertical: 18.0,
74 | horizontal: 25.0,
75 | ),
76 | child: Text(
77 | "Shop Now",
78 | style: TextStyle(
79 | color: Colors.white,
80 | ),
81 | ),
82 | )
83 | ],
84 | ),
85 | ),
86 | Expanded(
87 | child: Column(
88 | mainAxisAlignment: MainAxisAlignment.center,
89 | children: [
90 | Container(
91 | child: Image.asset(
92 | "assets/images/headset7.png",
93 | ),
94 | ),
95 | SizedBox(
96 | width: 50.0,
97 | ),
98 | Wrap(
99 | spacing: 10.0,
100 | children: colors.map((item) {
101 | int index = colors.indexOf(item);
102 | return Container(
103 | width: 35.0,
104 | height: 35.0,
105 | decoration: BoxDecoration(
106 | shape: BoxShape.circle,
107 | color: item,
108 | border: Border.all(
109 | width: 3.0,
110 | color:
111 | index == 1 ? Colors.red : Colors.transparent,
112 | ),
113 | ),
114 | );
115 | }).toList(),
116 | )
117 | ],
118 | ),
119 | ),
120 | ],
121 | ),
122 | ),
123 | ),
124 | );
125 | }
126 | }
127 |
--------------------------------------------------------------------------------
/lib/widgets/header.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_icons/flutter_icons.dart';
3 | import 'package:product_web/utils/colors.dart';
4 |
5 | class Header extends StatelessWidget {
6 | @override
7 | Widget build(BuildContext context) {
8 | return Container(
9 | height: 51.0,
10 | child: Row(
11 | mainAxisAlignment: MainAxisAlignment.spaceBetween,
12 | children: [
13 | Image.asset(
14 | "assets/images/logo.png",
15 | ),
16 | Row(
17 | children: [
18 | Text(
19 | "Home",
20 | style: TextStyle(
21 | color: kTextDarkColor,
22 | fontWeight: FontWeight.w600,
23 | ),
24 | ),
25 | SizedBox(width: 45.0),
26 | Text(
27 | "Product",
28 | style: TextStyle(
29 | color: kTextDarkColor,
30 | ),
31 | ),
32 | SizedBox(width: 45.0),
33 | Text(
34 | "Features",
35 | style: TextStyle(
36 | color: kTextDarkColor,
37 | ),
38 | ),
39 | SizedBox(width: 45.0),
40 | Text(
41 | "Design",
42 | style: TextStyle(
43 | color: kTextDarkColor,
44 | ),
45 | ),
46 | SizedBox(width: 45.0),
47 | Text(
48 | "Support",
49 | style: TextStyle(
50 | color: kTextDarkColor,
51 | ),
52 | ),
53 | SizedBox(
54 | width: 60.0,
55 | ),
56 | IconButton(
57 | icon: Icon(FlutterIcons.search1_ant),
58 | iconSize: 18.0,
59 | onPressed: () {},
60 | ),
61 | SizedBox(
62 | width: 10.0,
63 | ),
64 | IconButton(
65 | icon: Icon(FlutterIcons.user_ant),
66 | iconSize: 18.0,
67 | onPressed: () {},
68 | ),
69 | SizedBox(
70 | width: 10.0,
71 | ),
72 | IconButton(
73 | icon: Icon(FlutterIcons.shoppingcart_ant),
74 | iconSize: 18.0,
75 | onPressed: () {},
76 | ),
77 | SizedBox(
78 | width: 20.0,
79 | ),
80 | FlatButton(
81 | color: kDarkButtonColor,
82 | onPressed: () {},
83 | padding: EdgeInsets.symmetric(
84 | vertical: 18.0,
85 | horizontal: 25.0,
86 | ),
87 | child: Text(
88 | "Contact",
89 | style: TextStyle(
90 | color: Colors.white,
91 | ),
92 | ),
93 | )
94 | ],
95 | )
96 | ],
97 | ),
98 | );
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/lib/widgets/hero_section.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:flutter_icons/flutter_icons.dart';
3 | import 'package:product_web/utils/colors.dart';
4 |
5 | import 'responsive_wrapper_widget.dart';
6 |
7 | class HeroSection extends StatelessWidget {
8 | @override
9 | Widget build(BuildContext context) {
10 | return ResponsiveWrapperWidget(
11 | height: MediaQuery.of(context).size.height - 330.0,
12 | child: Container(
13 | height: 500.0,
14 | child: Row(
15 | children: [
16 | SizedBox(
17 | width: 20.0,
18 | ),
19 | Column(
20 | crossAxisAlignment: CrossAxisAlignment.center,
21 | mainAxisAlignment: MainAxisAlignment.center,
22 | children: [
23 | Container(
24 | height: 106.0,
25 | width: 2.0,
26 | color: kTextDarkColor.withOpacity(0.1),
27 | ),
28 | SizedBox(
29 | height: 20.0,
30 | ),
31 | Icon(
32 | FlutterIcons.facebook_f_faw,
33 | size: 17.0,
34 | ),
35 | SizedBox(
36 | height: 30.0,
37 | ),
38 | Icon(
39 | FlutterIcons.dribbble_ant,
40 | size: 17.0,
41 | ),
42 | SizedBox(
43 | height: 30.0,
44 | ),
45 | Icon(
46 | FlutterIcons.twitter_ant,
47 | size: 17.0,
48 | ),
49 | SizedBox(
50 | height: 20.0,
51 | ),
52 | Container(
53 | height: 106.0,
54 | width: 2.0,
55 | color: kTextDarkColor.withOpacity(0.1),
56 | ),
57 | ],
58 | ),
59 | SizedBox(
60 | width: 50.0,
61 | ),
62 | Image.asset(
63 | "assets/images/headset1.png",
64 | ),
65 | SizedBox(
66 | width: 50.0,
67 | ),
68 | Container(
69 | constraints: BoxConstraints(
70 | maxWidth: 500.0,
71 | ),
72 | child: Column(
73 | crossAxisAlignment: CrossAxisAlignment.start,
74 | mainAxisAlignment: MainAxisAlignment.center,
75 | children: [
76 | Text(
77 | "Surface\nHeadphones",
78 | style: TextStyle(
79 | fontSize: 48.0,
80 | fontWeight: FontWeight.w700,
81 | ),
82 | ),
83 | SizedBox(
84 | height: 8.0,
85 | ),
86 | Text(
87 | "Headphones are a necessity without a doubt. As the millennial culture says unique music taste.",
88 | style: TextStyle(
89 | height: 1.8,
90 | color: kTextDarkColor.withOpacity(0.7),
91 | ),
92 | ),
93 | SizedBox(
94 | height: 20.0,
95 | ),
96 | RichText(
97 | text: TextSpan(
98 | children: [
99 | TextSpan(
100 | text: "\$199.99",
101 | style: TextStyle(
102 | color: kTextDarkColor.withOpacity(0.5),
103 | decoration: TextDecoration.lineThrough,
104 | ),
105 | ),
106 | TextSpan(text: " " * 5),
107 | TextSpan(
108 | text: "\$179.99",
109 | style: TextStyle(),
110 | ),
111 | ],
112 | ),
113 | ),
114 | SizedBox(height: 30.0),
115 | FlatButton(
116 | color: kDarkButtonColor,
117 | onPressed: () {},
118 | padding: EdgeInsets.symmetric(
119 | vertical: 18.0,
120 | horizontal: 25.0,
121 | ),
122 | child: Text(
123 | "Shop Now",
124 | style: TextStyle(
125 | color: Colors.white,
126 | ),
127 | ),
128 | )
129 | ],
130 | ),
131 | ),
132 | ],
133 | ),
134 | ),
135 | );
136 | }
137 | }
138 |
--------------------------------------------------------------------------------
/lib/widgets/input_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class InputWidget extends StatelessWidget {
4 | final String hintText;
5 | final IconData prefixIcon;
6 | final bool obscureText;
7 |
8 | InputWidget({this.hintText, this.obscureText = false, this.prefixIcon});
9 |
10 | @override
11 | Widget build(BuildContext context) {
12 | return Container(
13 | alignment: Alignment.centerLeft,
14 | height: 48.0,
15 | decoration: BoxDecoration(
16 | color: Color.fromRGBO(255, 255, 255, 1),
17 | borderRadius: BorderRadius.circular(4.0),
18 | boxShadow: [
19 | BoxShadow(
20 | color: Color.fromRGBO(169, 176, 185, 0.42),
21 | spreadRadius: 0,
22 | blurRadius: 1.0,
23 | offset: Offset(0, 0),
24 | )
25 | ],
26 | ),
27 | // padding: EdgeInsets.symmetric(horizontal: 24.0),
28 | child: TextFormField(
29 | obscureText: this.obscureText,
30 | decoration: InputDecoration(
31 | hintText: this.hintText,
32 | hintStyle: TextStyle(
33 | fontSize: 14.0,
34 | color: Color.fromRGBO(124, 124, 124, 1),
35 | ),
36 | prefixIcon: this.prefixIcon == null
37 | ? null
38 | : Icon(
39 | this.prefixIcon,
40 | color: Color.fromRGBO(105, 108, 121, 1),
41 | ),
42 | enabledBorder: InputBorder.none,
43 | focusedBorder: InputBorder.none,
44 | border: OutlineInputBorder(
45 | borderSide: BorderSide(
46 | color: Colors.transparent,
47 | ),
48 | ),
49 | ),
50 | ),
51 | );
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/lib/widgets/more_products.dart:
--------------------------------------------------------------------------------
1 | import 'package:carousel_slider/carousel_slider.dart';
2 | import 'package:flutter/material.dart';
3 | import 'package:flutter_icons/flutter_icons.dart';
4 | import 'package:product_web/models/headphone.dart';
5 | import 'package:product_web/widgets/responsive_wrapper_widget.dart';
6 |
7 | class MoreProducts extends StatelessWidget {
8 | final List headphones = [
9 | Headphone(
10 | color: "Red",
11 | image: "assets/images/hsred.png",
12 | price: "\$249.99",
13 | ),
14 | Headphone(
15 | color: "Black",
16 | image: "assets/images/hsblack.png",
17 | price: "\$249.99",
18 | ),
19 | Headphone(
20 | color: "Blue",
21 | image: "assets/images/hsblue.png",
22 | price: "\$249.99",
23 | ),
24 | ];
25 | @override
26 | Widget build(BuildContext context) {
27 | return ResponsiveWrapperWidget(
28 | height: 430.0,
29 | child: Container(
30 | padding: EdgeInsets.symmetric(vertical: 0.0),
31 | child: Column(
32 | crossAxisAlignment: CrossAxisAlignment.stretch,
33 | children: [
34 | Padding(
35 | padding: const EdgeInsets.symmetric(
36 | horizontal: 30.0,
37 | vertical: 20.0,
38 | ),
39 | child: Row(
40 | children: [
41 | Text(
42 | "The market provides a huge\nrange of headphones.",
43 | style: TextStyle(
44 | fontSize: 24.0,
45 | fontWeight: FontWeight.w700,
46 | ),
47 | ),
48 | Spacer(),
49 | Icon(
50 | FlutterIcons.long_arrow_left_faw,
51 | ),
52 | SizedBox(
53 | width: 10.0,
54 | ),
55 | Icon(FlutterIcons.long_arrow_right_faw)
56 | ],
57 | ),
58 | ),
59 | SizedBox(
60 | height: 25.0,
61 | ),
62 | Expanded(
63 | child: Container(
64 | child: CarouselSlider(
65 | options: CarouselOptions(
66 | viewportFraction: 0.2,
67 | autoPlay: true,
68 | enableInfiniteScroll: true,
69 | height: 200.0,
70 | ),
71 | items: headphones.map((i) {
72 | int currentIndex = headphones.indexOf(i);
73 |
74 | return Builder(builder: (BuildContext context) {
75 | return Container(
76 | width: 360.0,
77 | margin: EdgeInsets.symmetric(horizontal: 10.0),
78 | child: Stack(
79 | clipBehavior: Clip.none,
80 | children: [
81 | Positioned(
82 | bottom: 0.0,
83 | left: 0.0,
84 | right: 0.0,
85 | child: Container(
86 | height: 120.0,
87 | color: Color.fromRGBO(230, 235, 242, 1),
88 | ),
89 | ),
90 | Positioned(
91 | left: 20.0,
92 | right: 20.0,
93 | top: -30.0,
94 | child: Container(
95 | child: Image.asset(
96 | headphones[currentIndex].image,
97 | width: 180.0,
98 | ),
99 | ),
100 | ),
101 | Positioned(
102 | bottom: -30.0,
103 | height: 55.0,
104 | left: 20.0,
105 | right: 20.0,
106 | child: Container(
107 | decoration: BoxDecoration(
108 | color: Colors.white,
109 | boxShadow: [
110 | BoxShadow(
111 | color:
112 | Color.fromRGBO(169, 176, 185, 0.42),
113 | spreadRadius: 0,
114 | blurRadius: 1.0,
115 | offset: Offset(0, 0),
116 | )
117 | ],
118 | ),
119 | padding: EdgeInsets.symmetric(
120 | horizontal: 16.0,
121 | vertical: 8.0,
122 | ),
123 | child: Row(
124 | mainAxisAlignment:
125 | MainAxisAlignment.spaceBetween,
126 | children: [
127 | Column(
128 | crossAxisAlignment:
129 | CrossAxisAlignment.start,
130 | children: [
131 | Text(
132 | headphones[currentIndex].color,
133 | style: TextStyle(
134 | fontSize: 17.0,
135 | fontWeight: FontWeight.w600,
136 | ),
137 | ),
138 | Text(
139 | headphones[currentIndex].price,
140 | style: TextStyle(
141 | fontSize: 12.0,
142 | ),
143 | ),
144 | ],
145 | ),
146 | ClipRRect(
147 | borderRadius: BorderRadius.circular(20.0),
148 | child: Container(
149 | color: Color.fromRGBO(230, 235, 242, 1),
150 | child: IconButton(
151 | icon: Icon(
152 | FlutterIcons.shoppingcart_ant),
153 | onPressed: () {},
154 | ),
155 | ),
156 | ),
157 | ],
158 | ),
159 | ),
160 | )
161 | ],
162 | ),
163 | );
164 | });
165 | }).toList(),
166 | ),
167 | ),
168 | )
169 | ],
170 | ),
171 | ),
172 | );
173 | }
174 | }
175 |
--------------------------------------------------------------------------------
/lib/widgets/product_slider.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:carousel_slider/carousel_slider.dart';
4 | import 'package:flutter/material.dart';
5 | import 'package:flutter_icons/flutter_icons.dart';
6 | import 'package:product_web/models/headphone.dart';
7 | import 'package:product_web/utils/colors.dart';
8 |
9 | import 'responsive_wrapper_widget.dart';
10 |
11 | class ProductSlider extends StatefulWidget {
12 | @override
13 | _ProductSliderState createState() => _ProductSliderState();
14 | }
15 |
16 | class _ProductSliderState extends State {
17 | CarouselController controller;
18 | @override
19 | void initState() {
20 | controller = CarouselController();
21 | super.initState();
22 | }
23 |
24 | final List headphones = [
25 | Headphone(
26 | color: "Red",
27 | image: "assets/images/headset2.png",
28 | price: "\$249.99",
29 | ),
30 | Headphone(
31 | color: "Black",
32 | image: "assets/images/headset3.png",
33 | price: "\$249.99",
34 | ),
35 | Headphone(
36 | color: "Silver",
37 | image: "assets/images/headset4.png",
38 | price: "\$249.99",
39 | ),
40 | Headphone(
41 | color: "Blue",
42 | image: "assets/images/headset5.png",
43 | price: "\$249.99",
44 | ),
45 | Headphone(
46 | color: "Yellow",
47 | image: "assets/images/headset6.png",
48 | price: "\$249.99",
49 | )
50 | ];
51 |
52 | @override
53 | Widget build(BuildContext context) {
54 | return ResponsiveWrapperWidget(
55 | height: 300.0,
56 | child: Container(
57 | height: 160.0,
58 | width: MediaQuery.of(context).size.width * 0.75,
59 | margin: EdgeInsets.only(bottom: 50.0, top: 30.0),
60 | child: Row(
61 | crossAxisAlignment: CrossAxisAlignment.stretch,
62 | children: [
63 | InkWell(
64 | onTap: () {
65 | controller.previousPage();
66 | },
67 | child: Container(
68 | width: 40.0,
69 | child: Icon(
70 | FlutterIcons.chevron_left_fea,
71 | color: kTextDarkColor.withOpacity(0.5),
72 | ),
73 | ),
74 | ),
75 | Expanded(
76 | child: CarouselSlider(
77 | carouselController: controller,
78 | options: CarouselOptions(
79 | viewportFraction: 0.2,
80 | autoPlay: true,
81 | enableInfiniteScroll: true,
82 | ),
83 | items: headphones.map((i) {
84 | int currentIndex = headphones.indexOf(i);
85 |
86 | return Builder(builder: (BuildContext context) {
87 | return Column(
88 | children: [
89 | Expanded(
90 | child: Container(
91 | width: 150.0,
92 | child: Image.asset(
93 | headphones[currentIndex].image,
94 | ),
95 | ),
96 | ),
97 | SizedBox(
98 | height: 10.0,
99 | ),
100 | Text(
101 | headphones[currentIndex].color,
102 | style: TextStyle(
103 | fontWeight: FontWeight.w700,
104 | ),
105 | ),
106 | SizedBox(
107 | height: 5.0,
108 | ),
109 | Text(
110 | headphones[currentIndex].price,
111 | style: TextStyle(
112 | fontSize: 13.0,
113 | ),
114 | )
115 | ],
116 | );
117 | });
118 | }).toList(),
119 | ),
120 | ),
121 | InkWell(
122 | onTap: () {
123 | controller.nextPage();
124 | },
125 | child: Container(
126 | width: 40.0,
127 | child: Icon(
128 | FlutterIcons.chevron_right_fea,
129 | color: kTextDarkColor.withOpacity(0.5),
130 | ),
131 | ),
132 | ),
133 | ],
134 | ),
135 | ),
136 | );
137 | }
138 | }
139 |
--------------------------------------------------------------------------------
/lib/widgets/responsive_wrapper_widget.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:responsive_framework/responsive_wrapper.dart';
3 |
4 | class ResponsiveWrapperWidget extends StatelessWidget {
5 | final Widget child;
6 | final double height;
7 | ResponsiveWrapperWidget({this.child, this.height = 640.0});
8 | @override
9 | Widget build(BuildContext context) {
10 | return ResponsiveWrapper(
11 | maxWidth: 1200,
12 | minWidth: 1200,
13 | defaultScale: true,
14 | mediaQueryData: MediaQueryData(size: Size(1200, height)),
15 | child: RepaintBoundary(
16 | child: Padding(
17 | padding: const EdgeInsets.symmetric(horizontal: 32.0),
18 | child: child,
19 | ),
20 | ),
21 | );
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/pubspec.lock:
--------------------------------------------------------------------------------
1 | # Generated by pub
2 | # See https://dart.dev/tools/pub/glossary#lockfile
3 | packages:
4 | _fe_analyzer_shared:
5 | dependency: transitive
6 | description:
7 | name: _fe_analyzer_shared
8 | url: "https://pub.dartlang.org"
9 | source: hosted
10 | version: "12.0.0"
11 | analyzer:
12 | dependency: transitive
13 | description:
14 | name: analyzer
15 | url: "https://pub.dartlang.org"
16 | source: hosted
17 | version: "0.40.6"
18 | archive:
19 | dependency: transitive
20 | description:
21 | name: archive
22 | url: "https://pub.dartlang.org"
23 | source: hosted
24 | version: "2.0.13"
25 | args:
26 | dependency: transitive
27 | description:
28 | name: args
29 | url: "https://pub.dartlang.org"
30 | source: hosted
31 | version: "1.6.0"
32 | async:
33 | dependency: transitive
34 | description:
35 | name: async
36 | url: "https://pub.dartlang.org"
37 | source: hosted
38 | version: "2.5.0-nullsafety.3"
39 | boolean_selector:
40 | dependency: transitive
41 | description:
42 | name: boolean_selector
43 | url: "https://pub.dartlang.org"
44 | source: hosted
45 | version: "2.1.0-nullsafety.3"
46 | carousel_slider:
47 | dependency: "direct main"
48 | description:
49 | name: carousel_slider
50 | url: "https://pub.dartlang.org"
51 | source: hosted
52 | version: "2.3.1"
53 | characters:
54 | dependency: transitive
55 | description:
56 | name: characters
57 | url: "https://pub.dartlang.org"
58 | source: hosted
59 | version: "1.1.0-nullsafety.5"
60 | charcode:
61 | dependency: transitive
62 | description:
63 | name: charcode
64 | url: "https://pub.dartlang.org"
65 | source: hosted
66 | version: "1.2.0-nullsafety.3"
67 | cli_util:
68 | dependency: transitive
69 | description:
70 | name: cli_util
71 | url: "https://pub.dartlang.org"
72 | source: hosted
73 | version: "0.2.0"
74 | clock:
75 | dependency: transitive
76 | description:
77 | name: clock
78 | url: "https://pub.dartlang.org"
79 | source: hosted
80 | version: "1.1.0-nullsafety.3"
81 | collection:
82 | dependency: transitive
83 | description:
84 | name: collection
85 | url: "https://pub.dartlang.org"
86 | source: hosted
87 | version: "1.15.0-nullsafety.5"
88 | convert:
89 | dependency: transitive
90 | description:
91 | name: convert
92 | url: "https://pub.dartlang.org"
93 | source: hosted
94 | version: "2.1.1"
95 | coverage:
96 | dependency: transitive
97 | description:
98 | name: coverage
99 | url: "https://pub.dartlang.org"
100 | source: hosted
101 | version: "0.14.2"
102 | crypto:
103 | dependency: transitive
104 | description:
105 | name: crypto
106 | url: "https://pub.dartlang.org"
107 | source: hosted
108 | version: "2.1.5"
109 | cupertino_icons:
110 | dependency: "direct main"
111 | description:
112 | name: cupertino_icons
113 | url: "https://pub.dartlang.org"
114 | source: hosted
115 | version: "1.0.2"
116 | fake_async:
117 | dependency: transitive
118 | description:
119 | name: fake_async
120 | url: "https://pub.dartlang.org"
121 | source: hosted
122 | version: "1.2.0-nullsafety.3"
123 | ffi:
124 | dependency: transitive
125 | description:
126 | name: ffi
127 | url: "https://pub.dartlang.org"
128 | source: hosted
129 | version: "0.1.3"
130 | file:
131 | dependency: transitive
132 | description:
133 | name: file
134 | url: "https://pub.dartlang.org"
135 | source: hosted
136 | version: "6.0.0-nullsafety.4"
137 | flutter:
138 | dependency: "direct main"
139 | description: flutter
140 | source: sdk
141 | version: "0.0.0"
142 | flutter_driver:
143 | dependency: transitive
144 | description: flutter
145 | source: sdk
146 | version: "0.0.0"
147 | flutter_icons:
148 | dependency: "direct main"
149 | description:
150 | name: flutter_icons
151 | url: "https://pub.dartlang.org"
152 | source: hosted
153 | version: "1.1.0"
154 | flutter_test:
155 | dependency: "direct dev"
156 | description: flutter
157 | source: sdk
158 | version: "0.0.0"
159 | fuchsia_remote_debug_protocol:
160 | dependency: transitive
161 | description: flutter
162 | source: sdk
163 | version: "0.0.0"
164 | glob:
165 | dependency: transitive
166 | description:
167 | name: glob
168 | url: "https://pub.dartlang.org"
169 | source: hosted
170 | version: "1.2.0"
171 | google_fonts:
172 | dependency: "direct main"
173 | description:
174 | name: google_fonts
175 | url: "https://pub.dartlang.org"
176 | source: hosted
177 | version: "1.1.2"
178 | http:
179 | dependency: transitive
180 | description:
181 | name: http
182 | url: "https://pub.dartlang.org"
183 | source: hosted
184 | version: "0.12.2"
185 | http_parser:
186 | dependency: transitive
187 | description:
188 | name: http_parser
189 | url: "https://pub.dartlang.org"
190 | source: hosted
191 | version: "3.1.4"
192 | integration_test:
193 | dependency: "direct dev"
194 | description: flutter
195 | source: sdk
196 | version: "0.9.2+2"
197 | inview_notifier_list:
198 | dependency: "direct main"
199 | description:
200 | name: inview_notifier_list
201 | url: "https://pub.dartlang.org"
202 | source: hosted
203 | version: "1.0.0"
204 | io:
205 | dependency: transitive
206 | description:
207 | name: io
208 | url: "https://pub.dartlang.org"
209 | source: hosted
210 | version: "0.3.4"
211 | js:
212 | dependency: transitive
213 | description:
214 | name: js
215 | url: "https://pub.dartlang.org"
216 | source: hosted
217 | version: "0.6.3-nullsafety.3"
218 | json_rpc_2:
219 | dependency: transitive
220 | description:
221 | name: json_rpc_2
222 | url: "https://pub.dartlang.org"
223 | source: hosted
224 | version: "2.2.2"
225 | logging:
226 | dependency: transitive
227 | description:
228 | name: logging
229 | url: "https://pub.dartlang.org"
230 | source: hosted
231 | version: "0.11.4"
232 | matcher:
233 | dependency: transitive
234 | description:
235 | name: matcher
236 | url: "https://pub.dartlang.org"
237 | source: hosted
238 | version: "0.12.10-nullsafety.3"
239 | meta:
240 | dependency: transitive
241 | description:
242 | name: meta
243 | url: "https://pub.dartlang.org"
244 | source: hosted
245 | version: "1.3.0-nullsafety.6"
246 | node_interop:
247 | dependency: transitive
248 | description:
249 | name: node_interop
250 | url: "https://pub.dartlang.org"
251 | source: hosted
252 | version: "1.2.1"
253 | node_io:
254 | dependency: transitive
255 | description:
256 | name: node_io
257 | url: "https://pub.dartlang.org"
258 | source: hosted
259 | version: "1.1.1"
260 | package_config:
261 | dependency: transitive
262 | description:
263 | name: package_config
264 | url: "https://pub.dartlang.org"
265 | source: hosted
266 | version: "1.9.3"
267 | path:
268 | dependency: transitive
269 | description:
270 | name: path
271 | url: "https://pub.dartlang.org"
272 | source: hosted
273 | version: "1.8.0-nullsafety.3"
274 | path_provider:
275 | dependency: transitive
276 | description:
277 | name: path_provider
278 | url: "https://pub.dartlang.org"
279 | source: hosted
280 | version: "1.6.27"
281 | path_provider_linux:
282 | dependency: transitive
283 | description:
284 | name: path_provider_linux
285 | url: "https://pub.dartlang.org"
286 | source: hosted
287 | version: "0.0.1+2"
288 | path_provider_macos:
289 | dependency: transitive
290 | description:
291 | name: path_provider_macos
292 | url: "https://pub.dartlang.org"
293 | source: hosted
294 | version: "0.0.4+8"
295 | path_provider_platform_interface:
296 | dependency: transitive
297 | description:
298 | name: path_provider_platform_interface
299 | url: "https://pub.dartlang.org"
300 | source: hosted
301 | version: "1.0.4"
302 | path_provider_windows:
303 | dependency: transitive
304 | description:
305 | name: path_provider_windows
306 | url: "https://pub.dartlang.org"
307 | source: hosted
308 | version: "0.0.4+3"
309 | pedantic:
310 | dependency: transitive
311 | description:
312 | name: pedantic
313 | url: "https://pub.dartlang.org"
314 | source: hosted
315 | version: "1.10.0-nullsafety.3"
316 | platform:
317 | dependency: transitive
318 | description:
319 | name: platform
320 | url: "https://pub.dartlang.org"
321 | source: hosted
322 | version: "3.0.0-nullsafety.4"
323 | plugin_platform_interface:
324 | dependency: transitive
325 | description:
326 | name: plugin_platform_interface
327 | url: "https://pub.dartlang.org"
328 | source: hosted
329 | version: "1.0.3"
330 | pool:
331 | dependency: transitive
332 | description:
333 | name: pool
334 | url: "https://pub.dartlang.org"
335 | source: hosted
336 | version: "1.5.0-nullsafety.3"
337 | process:
338 | dependency: transitive
339 | description:
340 | name: process
341 | url: "https://pub.dartlang.org"
342 | source: hosted
343 | version: "4.0.0-nullsafety.4"
344 | pub_semver:
345 | dependency: transitive
346 | description:
347 | name: pub_semver
348 | url: "https://pub.dartlang.org"
349 | source: hosted
350 | version: "1.4.4"
351 | responsive_framework:
352 | dependency: "direct main"
353 | description:
354 | name: responsive_framework
355 | url: "https://pub.dartlang.org"
356 | source: hosted
357 | version: "0.0.14"
358 | sky_engine:
359 | dependency: transitive
360 | description: flutter
361 | source: sdk
362 | version: "0.0.99"
363 | smooth_scroll_web:
364 | dependency: "direct main"
365 | description:
366 | name: smooth_scroll_web
367 | url: "https://pub.dartlang.org"
368 | source: hosted
369 | version: "0.0.4"
370 | source_map_stack_trace:
371 | dependency: transitive
372 | description:
373 | name: source_map_stack_trace
374 | url: "https://pub.dartlang.org"
375 | source: hosted
376 | version: "2.1.0-nullsafety.4"
377 | source_maps:
378 | dependency: transitive
379 | description:
380 | name: source_maps
381 | url: "https://pub.dartlang.org"
382 | source: hosted
383 | version: "0.10.10-nullsafety.3"
384 | source_span:
385 | dependency: transitive
386 | description:
387 | name: source_span
388 | url: "https://pub.dartlang.org"
389 | source: hosted
390 | version: "1.8.0-nullsafety.4"
391 | stack_trace:
392 | dependency: transitive
393 | description:
394 | name: stack_trace
395 | url: "https://pub.dartlang.org"
396 | source: hosted
397 | version: "1.10.0-nullsafety.6"
398 | stream_channel:
399 | dependency: transitive
400 | description:
401 | name: stream_channel
402 | url: "https://pub.dartlang.org"
403 | source: hosted
404 | version: "2.1.0-nullsafety.3"
405 | stream_transform:
406 | dependency: transitive
407 | description:
408 | name: stream_transform
409 | url: "https://pub.dartlang.org"
410 | source: hosted
411 | version: "1.2.0"
412 | string_scanner:
413 | dependency: transitive
414 | description:
415 | name: string_scanner
416 | url: "https://pub.dartlang.org"
417 | source: hosted
418 | version: "1.1.0-nullsafety.3"
419 | sync_http:
420 | dependency: transitive
421 | description:
422 | name: sync_http
423 | url: "https://pub.dartlang.org"
424 | source: hosted
425 | version: "0.2.0"
426 | term_glyph:
427 | dependency: transitive
428 | description:
429 | name: term_glyph
430 | url: "https://pub.dartlang.org"
431 | source: hosted
432 | version: "1.2.0-nullsafety.3"
433 | test_api:
434 | dependency: transitive
435 | description:
436 | name: test_api
437 | url: "https://pub.dartlang.org"
438 | source: hosted
439 | version: "0.2.19-nullsafety.6"
440 | test_core:
441 | dependency: transitive
442 | description:
443 | name: test_core
444 | url: "https://pub.dartlang.org"
445 | source: hosted
446 | version: "0.3.12-nullsafety.9"
447 | typed_data:
448 | dependency: transitive
449 | description:
450 | name: typed_data
451 | url: "https://pub.dartlang.org"
452 | source: hosted
453 | version: "1.3.0-nullsafety.5"
454 | vector_math:
455 | dependency: transitive
456 | description:
457 | name: vector_math
458 | url: "https://pub.dartlang.org"
459 | source: hosted
460 | version: "2.1.0-nullsafety.5"
461 | vm_service:
462 | dependency: transitive
463 | description:
464 | name: vm_service
465 | url: "https://pub.dartlang.org"
466 | source: hosted
467 | version: "5.5.0"
468 | watcher:
469 | dependency: transitive
470 | description:
471 | name: watcher
472 | url: "https://pub.dartlang.org"
473 | source: hosted
474 | version: "0.9.7+15"
475 | web_socket_channel:
476 | dependency: transitive
477 | description:
478 | name: web_socket_channel
479 | url: "https://pub.dartlang.org"
480 | source: hosted
481 | version: "1.1.0"
482 | webdriver:
483 | dependency: transitive
484 | description:
485 | name: webdriver
486 | url: "https://pub.dartlang.org"
487 | source: hosted
488 | version: "2.1.2"
489 | win32:
490 | dependency: transitive
491 | description:
492 | name: win32
493 | url: "https://pub.dartlang.org"
494 | source: hosted
495 | version: "1.7.4"
496 | xdg_directories:
497 | dependency: transitive
498 | description:
499 | name: xdg_directories
500 | url: "https://pub.dartlang.org"
501 | source: hosted
502 | version: "0.1.2"
503 | yaml:
504 | dependency: transitive
505 | description:
506 | name: yaml
507 | url: "https://pub.dartlang.org"
508 | source: hosted
509 | version: "2.2.1"
510 | sdks:
511 | dart: ">=2.12.0-0.0 <3.0.0"
512 | flutter: ">=1.17.0 <2.0.0"
513 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: product_web
2 | description: A new Flutter project.
3 |
4 | # The following line prevents the package from being accidentally published to
5 | # pub.dev using `pub publish`. This is preferred for private packages.
6 | publish_to: "none" # Remove this line if you wish to publish to pub.dev
7 |
8 | # The following defines the version and build number for your application.
9 | # A version number is three numbers separated by dots, like 1.2.43
10 | # followed by an optional build number separated by a +.
11 | # Both the version and the builder number may be overridden in flutter
12 | # build by specifying --build-name and --build-number, respectively.
13 | # In Android, build-name is used as versionName while build-number used as versionCode.
14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning
15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
16 | # Read more about iOS versioning at
17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
18 | version: 1.0.0+1
19 |
20 | environment:
21 | sdk: ">=2.7.0 <3.0.0"
22 |
23 | dependencies:
24 | flutter:
25 | sdk: flutter
26 | google_fonts: ^1.1.2
27 | responsive_framework: ^0.0.14
28 | flutter_icons: ^1.1.0
29 | carousel_slider: ^2.3.1
30 | smooth_scroll_web: ^0.0.4
31 | inview_notifier_list: ^1.0.0
32 |
33 | # The following adds the Cupertino Icons font to your application.
34 | # Use with the CupertinoIcons class for iOS style icons.
35 | cupertino_icons: ^1.0.1
36 |
37 | dev_dependencies:
38 | flutter_test:
39 | sdk: flutter
40 | integration_test:
41 | sdk: flutter
42 |
43 | # For information on the generic Dart part of this file, see the
44 | # following page: https://dart.dev/tools/pub/pubspec
45 |
46 | # The following section is specific to Flutter.
47 | flutter:
48 | # The following line ensures that the Material Icons font is
49 | # included with your application, so that you can use the icons in
50 | # the material Icons class.
51 | uses-material-design: true
52 |
53 | # To add assets to your application, add an assets section, like this:
54 | assets:
55 | - assets/images/
56 | # - images/a_dot_ham.jpeg
57 |
58 | # An image asset can refer to one or more resolution-specific "variants", see
59 | # https://flutter.dev/assets-and-images/#resolution-aware.
60 |
61 | # For details regarding adding assets from package dependencies, see
62 | # https://flutter.dev/assets-and-images/#from-packages
63 |
64 | # To add custom fonts to your application, add a fonts section here,
65 | # in this "flutter" section. Each entry in this list should have a
66 | # "family" key with the font family name, and a "fonts" key with a
67 | # list giving the asset and other descriptors for the font. For
68 | # example:
69 | # fonts:
70 | # - family: Schyler
71 | # fonts:
72 | # - asset: fonts/Schyler-Regular.ttf
73 | # - asset: fonts/Schyler-Italic.ttf
74 | # style: italic
75 | # - family: Trajan Pro
76 | # fonts:
77 | # - asset: fonts/TrajanPro.ttf
78 | # - asset: fonts/TrajanPro_Bold.ttf
79 | # weight: 700
80 | #
81 | # For details regarding fonts from package dependencies,
82 | # see https://flutter.dev/custom-fonts/#from-packages
83 |
--------------------------------------------------------------------------------
/test/widget_test.dart:
--------------------------------------------------------------------------------
1 | // This is a basic Flutter widget test.
2 | //
3 | // To perform an interaction with a widget in your test, use the WidgetTester
4 | // utility that Flutter provides. For example, you can send tap and scroll
5 | // gestures. You can also use WidgetTester to find child widgets in the widget
6 | // tree, read text, and verify that the values of widget properties are correct.
7 |
8 | import 'package:flutter/material.dart';
9 | import 'package:flutter_test/flutter_test.dart';
10 |
11 | import 'package:product_web/main.dart';
12 |
13 | void main() {
14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15 | // Build our app and trigger a frame.
16 | await tester.pumpWidget(MyApp());
17 |
18 | // Verify that our counter starts at 0.
19 | expect(find.text('0'), findsOneWidget);
20 | expect(find.text('1'), findsNothing);
21 |
22 | // Tap the '+' icon and trigger a frame.
23 | await tester.tap(find.byIcon(Icons.add));
24 | await tester.pump();
25 |
26 | // Verify that our counter has incremented.
27 | expect(find.text('0'), findsNothing);
28 | expect(find.text('1'), findsOneWidget);
29 | });
30 | }
31 |
--------------------------------------------------------------------------------
/web/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/web/favicon.png
--------------------------------------------------------------------------------
/web/icons/Icon-192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/web/icons/Icon-192.png
--------------------------------------------------------------------------------
/web/icons/Icon-512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/olayemii/flutter-web-test/00494566ba3e78cf42caa367be982f22583cdabc/web/icons/Icon-512.png
--------------------------------------------------------------------------------
/web/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | product_web
30 |
31 |
32 |
33 |
36 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/web/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "product_web",
3 | "short_name": "product_web",
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 | }
24 |
--------------------------------------------------------------------------------