├── ios
├── Flutter
│ ├── Debug.xcconfig
│ ├── Release.xcconfig
│ └── AppFrameworkInfo.plist
├── Runner
│ ├── Runner-Bridging-Header.h
│ ├── Assets.xcassets
│ │ ├── LaunchImage.imageset
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ ├── README.md
│ │ │ └── Contents.json
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-83.5x83.5@2x.png
│ │ │ └── Contents.json
│ ├── AppDelegate.swift
│ ├── Base.lproj
│ │ ├── Main.storyboard
│ │ └── LaunchScreen.storyboard
│ └── Info.plist
├── Runner.xcodeproj
│ ├── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ ├── WorkspaceSettings.xcsettings
│ │ │ └── IDEWorkspaceChecks.plist
│ ├── xcshareddata
│ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ └── project.pbxproj
├── Runner.xcworkspace
│ ├── contents.xcworkspacedata
│ └── xcshareddata
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── IDEWorkspaceChecks.plist
└── .gitignore
├── assets
├── vgv_logo.png
├── vgv_logo_black.png
└── vgv_logo_white.png
├── android
├── gradle.properties
├── app
│ ├── src
│ │ ├── main
│ │ │ ├── res
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ │ └── ic_launcher.png
│ │ │ │ ├── drawable
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── drawable-v21
│ │ │ │ │ └── launch_background.xml
│ │ │ │ ├── values
│ │ │ │ │ └── styles.xml
│ │ │ │ └── values-night
│ │ │ │ │ └── styles.xml
│ │ │ ├── kotlin
│ │ │ │ └── ventures
│ │ │ │ │ └── verygood
│ │ │ │ │ └── robot_testing
│ │ │ │ │ └── MainActivity.kt
│ │ │ └── AndroidManifest.xml
│ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ └── profile
│ │ │ └── AndroidManifest.xml
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── .gitignore
├── settings.gradle
└── build.gradle
├── e2e
├── scenarios
│ ├── robots
│ │ ├── scrolling_list
│ │ │ ├── scrolling_list.dart
│ │ │ ├── details_robot.dart
│ │ │ └── scrolling_list_robot.dart
│ │ ├── robots.dart
│ │ ├── counter_robot.dart
│ │ ├── home_robot.dart
│ │ └── login_robot.dart
│ ├── counter_scenario.dart
│ ├── scrolling_list_scenario.dart
│ └── login_scenario.dart
└── e2e.dart
├── .metadata
├── .vscode
└── launch.json
├── pubspec.yaml
├── lib
├── counter_page.dart
├── main.dart
├── login_page.dart
└── scrolling_list_page.dart
├── .gitignore
├── LICENSE
├── README.md
└── pubspec.lock
/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/ios/Runner/Runner-Bridging-Header.h:
--------------------------------------------------------------------------------
1 | #import "GeneratedPluginRegistrant.h"
2 |
--------------------------------------------------------------------------------
/assets/vgv_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/assets/vgv_logo.png
--------------------------------------------------------------------------------
/assets/vgv_logo_black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/assets/vgv_logo_black.png
--------------------------------------------------------------------------------
/assets/vgv_logo_white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/assets/vgv_logo_white.png
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 | android.useAndroidX=true
3 | android.enableJetifier=true
4 |
--------------------------------------------------------------------------------
/e2e/scenarios/robots/scrolling_list/scrolling_list.dart:
--------------------------------------------------------------------------------
1 | export 'details_robot.dart';
2 | export 'scrolling_list_robot.dart';
3 |
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/e2e/scenarios/robots/robots.dart:
--------------------------------------------------------------------------------
1 | export 'counter_robot.dart';
2 | export 'home_robot.dart';
3 | export 'login_robot.dart';
4 | export 'scrolling_list/scrolling_list.dart';
5 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/VGVentures/robot_testing/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/e2e/e2e.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/driver_extension.dart';
2 | import 'package:robot_testing/main.dart' as app;
3 |
4 | void main() {
5 | enableFlutterDriverExtension();
6 | app.main();
7 | }
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/main/kotlin/ventures/verygood/robot_testing/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package ventures.verygood.robot_testing
2 |
3 | import io.flutter.embedding.android.FlutterActivity
4 |
5 | class MainActivity: FlutterActivity() {
6 | }
7 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
7 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | gradle-wrapper.jar
2 | /.gradle
3 | /captures/
4 | /gradlew
5 | /gradlew.bat
6 | /local.properties
7 | GeneratedPluginRegistrant.java
8 |
9 | # Remember to never publicly share your keystore.
10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11 | key.properties
12 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreviewsEnabled
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.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: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c
8 | channel: stable
9 |
10 | project_type: app
11 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/android/app/src/profile/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/.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": "robot_testing",
9 | "request": "launch",
10 | "type": "dart"
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/e2e/scenarios/robots/scrolling_list/details_robot.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 |
3 | class DetailsRobot {
4 | const DetailsRobot(this.driver);
5 |
6 | final FlutterDriver driver;
7 |
8 | Future saveItem() async {
9 | await driver.tap(find.byValueKey('detailsPage_saveIcon'));
10 | await driver.waitFor(find.byType('AlertDialog'));
11 | await driver.tap(find.text('OK'));
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: robot_testing
2 | description: Project used to showcase the robot testing pattern
3 | publish_to: 'none'
4 | version: 1.0.0
5 |
6 | environment:
7 | sdk: ">=2.7.0 <3.0.0"
8 |
9 | dependencies:
10 | flutter:
11 | sdk: flutter
12 |
13 | dev_dependencies:
14 | flutter_driver:
15 | sdk: flutter
16 | flutter_test:
17 | sdk: flutter
18 | test: any
19 |
20 | flutter:
21 | uses-material-design: true
22 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/e2e/scenarios/robots/counter_robot.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | class CounterRobot {
5 | const CounterRobot(this.driver);
6 |
7 | final FlutterDriver driver;
8 |
9 | Future increment() async {
10 | await driver.tap(find.byTooltip('Increment'));
11 | }
12 |
13 | Future validateCounter(int counterValue) async {
14 | expect(await driver.getText(find.text('$counterValue')), '$counterValue');
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4 | def properties = new Properties()
5 |
6 | assert localPropertiesFile.exists()
7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
8 |
9 | def flutterSdkPath = properties.getProperty("flutter.sdk")
10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
12 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable-v21/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/e2e/scenarios/robots/scrolling_list/scrolling_list_robot.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 |
3 | class ScrollingListRobot {
4 | const ScrollingListRobot(this.driver);
5 |
6 | final FlutterDriver driver;
7 |
8 | Future scrollToItem(String itemName) async {
9 | await driver.waitFor(find.byType('ListView'));
10 | await driver.scrollUntilVisible(
11 | find.byValueKey('scrollingListPage_listView'),
12 | find.text(itemName),
13 | dyScroll: -200.0,
14 | );
15 | }
16 |
17 | Future tapOnItem(String itemName) async {
18 | await driver.tap(find.text(itemName));
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ios/.gitignore:
--------------------------------------------------------------------------------
1 | *.mode1v3
2 | *.mode2v3
3 | *.moved-aside
4 | *.pbxuser
5 | *.perspectivev3
6 | **/*sync/
7 | .sconsign.dblite
8 | .tags*
9 | **/.vagrant/
10 | **/DerivedData/
11 | Icon?
12 | **/Pods/
13 | **/.symlinks/
14 | profile
15 | xcuserdata
16 | **/.generated/
17 | Flutter/App.framework
18 | Flutter/Flutter.framework
19 | Flutter/Flutter.podspec
20 | Flutter/Generated.xcconfig
21 | Flutter/app.flx
22 | Flutter/app.zip
23 | Flutter/flutter_assets/
24 | Flutter/flutter_export_environment.sh
25 | ServiceDefinitions.json
26 | Runner/GeneratedPluginRegistrant.*
27 |
28 | # Exceptions to above rules.
29 | !default.mode1v3
30 | !default.mode2v3
31 | !default.pbxuser
32 | !default.perspectivev3
33 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | ext.kotlin_version = '1.3.50'
3 | repositories {
4 | google()
5 | jcenter()
6 | }
7 |
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle: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 |
--------------------------------------------------------------------------------
/lib/counter_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class CounterPage extends StatefulWidget {
4 | static Route route() {
5 | return MaterialPageRoute(builder: (_) => CounterPage());
6 | }
7 |
8 | @override
9 | _CounterPageState createState() => _CounterPageState();
10 | }
11 |
12 | class _CounterPageState extends State {
13 | var counter = 0;
14 |
15 | @override
16 | Widget build(BuildContext context) {
17 | return Scaffold(
18 | appBar: AppBar(title: Text('Counter')),
19 | body: Center(child: Text('$counter')),
20 | floatingActionButton: FloatingActionButton(
21 | child: Icon(Icons.add),
22 | tooltip: 'Increment',
23 | onPressed: () {
24 | setState(() {
25 | counter++;
26 | });
27 | },
28 | ),
29 | );
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 8.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 | *.class
3 | *.log
4 | *.pyc
5 | *.swp
6 | .DS_Store
7 | .atom/
8 | .buildlog/
9 | .history
10 | .svn/
11 |
12 | # IntelliJ related
13 | *.iml
14 | *.ipr
15 | *.iws
16 | .idea/
17 |
18 | # The .vscode folder contains launch configuration and tasks you configure in
19 | # VS Code which you may wish to be included in version control, so this line
20 | # is commented out by default.
21 | #.vscode/
22 |
23 | # Flutter/Dart/Pub related
24 | **/doc/api/
25 | **/ios/Flutter/.last_build_id
26 | .dart_tool/
27 | .flutter-plugins
28 | .flutter-plugins-dependencies
29 | .packages
30 | .pub-cache/
31 | .pub/
32 | /build/
33 |
34 | # Web related
35 | lib/generated_plugin_registrant.dart
36 |
37 | # Symbolication related
38 | app.*.symbols
39 |
40 | # Obfuscation related
41 | app.*.map.json
42 |
43 | # Android Studio will place build artifacts here
44 | /android/app/debug
45 | /android/app/profile
46 | /android/app/release
47 |
--------------------------------------------------------------------------------
/e2e/scenarios/counter_scenario.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | import 'robots/robots.dart';
5 |
6 | void main() {
7 | FlutterDriver driver;
8 | CounterRobot counterRobot;
9 | HomeRobot homeRobot;
10 |
11 | setUpAll(() async {
12 | driver = await FlutterDriver.connect();
13 | counterRobot = CounterRobot(driver);
14 | homeRobot = HomeRobot(driver);
15 | });
16 |
17 | tearDownAll(() async {
18 | await driver.close();
19 | });
20 |
21 | group('Counter', () {
22 | test('increments the counter', () async {
23 | await homeRobot.navigateToCounterPage();
24 | expect(await driver.getText(find.text('0')), '0');
25 | await driver.tap(find.byTooltip('Increment'));
26 | await driver.tap(find.byTooltip('Increment'));
27 | await driver.tap(find.byTooltip('Increment'));
28 | await driver.tap(find.byTooltip('Increment'));
29 | expect(await driver.getText(find.text('4')), '4');
30 | });
31 | });
32 | }
33 |
--------------------------------------------------------------------------------
/e2e/scenarios/robots/home_robot.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | class HomeRobot {
5 | const HomeRobot(this.driver);
6 |
7 | final FlutterDriver driver;
8 |
9 | Future navigateToCounterPage() async {
10 | await driver.tap(find.text('Counter'));
11 | await Future.delayed(const Duration(seconds: 1));
12 | }
13 |
14 | Future navigateToLoginPage() async {
15 | await driver.tap(find.text('Login'));
16 | await Future.delayed(const Duration(seconds: 1));
17 | }
18 |
19 | Future navigateToScrollingListPage() async {
20 | await driver.tap(find.text('Scrolling list'));
21 | await Future.delayed(const Duration(seconds: 1));
22 | }
23 |
24 | Future assertUserIsOnTheHomeScreen() async {
25 | expect(await driver.getText(find.text('Counter')), 'Counter');
26 | expect(await driver.getText(find.text('Login')), 'Login');
27 | expect(await driver.getText(find.text('Scrolling list')), 'Scrolling list');
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values-night/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
15 |
18 |
19 |
--------------------------------------------------------------------------------
/e2e/scenarios/scrolling_list_scenario.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | import 'robots/robots.dart';
5 |
6 | void main() {
7 | FlutterDriver driver;
8 | HomeRobot homeRobot;
9 | ScrollingListRobot scrollingListRobot;
10 | DetailsRobot detailsRobot;
11 |
12 | setUpAll(() async {
13 | driver = await FlutterDriver.connect();
14 | homeRobot = HomeRobot(driver);
15 | scrollingListRobot = ScrollingListRobot(driver);
16 | detailsRobot = DetailsRobot(driver);
17 | });
18 |
19 | tearDownAll(() async {
20 | await driver.close();
21 | });
22 |
23 | group('Scrolling List', () {
24 | test(
25 | 'can scroll to the desire item, open details '
26 | 'and save the selected icon', () async {
27 | await homeRobot.navigateToScrollingListPage();
28 | await scrollingListRobot.scrollToItem('Zoom Out');
29 | await scrollingListRobot.tapOnItem('Zoom Out');
30 | await detailsRobot.saveItem();
31 | await homeRobot.assertUserIsOnTheHomeScreen();
32 | });
33 | });
34 | }
35 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2021 Very Good Ventures
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.
--------------------------------------------------------------------------------
/e2e/scenarios/robots/login_robot.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | class LoginRobot {
5 | const LoginRobot(this.driver);
6 |
7 | final FlutterDriver driver;
8 |
9 | Future enterEmail(String email) async {
10 | await driver.tap(find.byValueKey('emailTextField'));
11 | await driver.enterText(email);
12 | }
13 |
14 | Future enterPassword(String password) async {
15 | await driver.tap(find.byValueKey('passwordTextField'));
16 | await driver.enterText(password);
17 | }
18 |
19 | Future tapLoginButton() async {
20 | await driver.tap(find.text('Login'));
21 | }
22 |
23 | Future checkInvalidCredentialsMessageIsShown() async {
24 | final errorMessageFinder = find.byValueKey('snackbar');
25 | await driver.waitFor(errorMessageFinder);
26 | }
27 |
28 | Future checkWelcomeMessageIsShown(String email) async {
29 | final welcomeMessageFinder = find.text('Welcome $email');
30 | await driver.waitFor(welcomeMessageFinder);
31 | expect(await driver.getText(welcomeMessageFinder), 'Welcome $email');
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/e2e/scenarios/login_scenario.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter_driver/flutter_driver.dart';
2 | import 'package:test/test.dart';
3 |
4 | import 'robots/robots.dart';
5 |
6 | void main() {
7 | FlutterDriver driver;
8 | LoginRobot loginRobot;
9 | HomeRobot homeRobot;
10 |
11 | setUpAll(() async {
12 | driver = await FlutterDriver.connect();
13 | loginRobot = LoginRobot(driver);
14 | homeRobot = HomeRobot(driver);
15 | });
16 |
17 | tearDownAll(() async {
18 | await driver.close();
19 | });
20 |
21 | group('Login', () {
22 | test('shows error message when login information is missing', () async {
23 | await homeRobot.navigateToLoginPage();
24 | await loginRobot.enterEmail('notvalid');
25 | await loginRobot.tapLoginButton();
26 | await loginRobot.checkInvalidCredentialsMessageIsShown();
27 | });
28 |
29 | test('authenticates a user with an email and password', () async {
30 | await loginRobot.enterEmail('email@email.com');
31 | await loginRobot.enterPassword('s3cr3etP4ssw0rd');
32 | await loginRobot.tapLoginButton();
33 | await loginRobot.checkWelcomeMessageIsShown('email@email.com');
34 | });
35 | });
36 | }
37 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Robot Testing Pattern in Flutter
2 |
3 | [![Very Good Ventures][logo_white]][very_good_ventures_link_dark]
4 | [![Very Good Ventures][logo_black]][very_good_ventures_link_light]
5 |
6 | Developed with 💙 by [Very Good Ventures](https://verygood.ventures) 🦄
7 |
8 | [](https://opensource.org/licenses/MIT)
9 |
10 | ---
11 |
12 | This project showcases how to apply the Robot Testing pattern to a Flutter application.
13 |
14 | It is a demo project used for the conference [Future of Testing: Mobile](https://applitools.com/future-of-testing-mobile-north-america/) hosted by Applitools.
15 |
16 | ### How to run the tests
17 |
18 | ```bash
19 | flutter drive --target=e2e/e2e.dart --driver=e2e/scenarios/counter_scenario.dart
20 | flutter drive --target=e2e/e2e.dart --driver=e2e/scenarios/login_scenario.dart
21 | flutter drive --target=e2e/e2e.dart --driver=e2e/scenarios/scrolling_list_scenario.dart
22 | ```
23 |
24 | [Check out our blog](https://verygood.ventures/blog/robot-testing-in-flutter) for more about using the Robot Testing pattern in Flutter.
25 |
26 | [logo_black]: https://raw.githubusercontent.com/VGVentures/robot_testing/main/assets/vgv_logo_black.png#gh-light-mode-only
27 | [logo_white]: https://raw.githubusercontent.com/VGVentures/robot_testing/main/assets/vgv_logo_white.png#gh-dark-mode-only
28 | [very_good_ventures_link_dark]: https://verygood.ventures/#gh-dark-mode-only
29 | [very_good_ventures_link_light]: https://verygood.ventures/#gh-light-mode-only
30 |
--------------------------------------------------------------------------------
/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 | robot_testing
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 | import 'package:robot_testing/counter_page.dart';
3 | import 'package:robot_testing/login_page.dart';
4 | import 'package:robot_testing/scrolling_list_page.dart';
5 |
6 | void main() {
7 | runApp(RobotTestingApp());
8 | }
9 |
10 | class RobotTestingApp extends StatelessWidget {
11 | @override
12 | Widget build(BuildContext context) {
13 | return MaterialApp(
14 | title: 'Flutter Demo',
15 | theme: ThemeData(
16 | primarySwatch: Colors.blue,
17 | ),
18 | home: Home(),
19 | );
20 | }
21 | }
22 |
23 | class Home extends StatelessWidget {
24 | @override
25 | Widget build(BuildContext context) {
26 | return Scaffold(
27 | appBar: AppBar(title: Text('Robot Testing Example')),
28 | body: Padding(
29 | padding: EdgeInsets.all(8),
30 | child: SingleChildScrollView(
31 | child: Column(
32 | children: [
33 | ListTile(
34 | title: Text('Counter'),
35 | trailing: Icon(Icons.chevron_right),
36 | onTap: () => Navigator.of(context).push(CounterPage.route()),
37 | ),
38 | ListTile(
39 | title: Text('Login'),
40 | trailing: Icon(Icons.chevron_right),
41 | onTap: () => Navigator.of(context).push(LoginPage.route()),
42 | ),
43 | ListTile(
44 | title: Text('Scrolling list'),
45 | trailing: Icon(Icons.chevron_right),
46 | onTap: () =>
47 | Navigator.of(context).push(ScrollingListPage.route()),
48 | ),
49 | ],
50 | ),
51 | ),
52 | ),
53 | );
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/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 "ventures.verygood.robot_testing"
38 | minSdkVersion 16
39 | targetSdkVersion 30
40 | versionCode flutterVersionCode.toInteger()
41 | versionName flutterVersionName
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
59 | }
60 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
6 |
13 |
17 |
21 |
26 |
30 |
31 |
32 |
33 |
34 |
35 |
37 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/lib/login_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class LoginPage extends StatelessWidget {
4 | static Route route() {
5 | return MaterialPageRoute(builder: (_) => LoginPage());
6 | }
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Scaffold(
11 | appBar: AppBar(title: Text('Authentication')),
12 | body: Padding(
13 | padding: EdgeInsets.all(8),
14 | child: LoginForm(),
15 | ),
16 | );
17 | }
18 | }
19 |
20 | class LoginForm extends StatefulWidget {
21 | @override
22 | _LoginFormState createState() => _LoginFormState();
23 | }
24 |
25 | class _LoginFormState extends State {
26 | var _isLoading = false;
27 | final _emailController = TextEditingController();
28 | final _passwordController = TextEditingController();
29 |
30 | @override
31 | void dispose() {
32 | _emailController.dispose();
33 | _passwordController.dispose();
34 | super.dispose();
35 | }
36 |
37 | @override
38 | Widget build(BuildContext context) {
39 | return Column(
40 | children: [
41 | TextFormField(
42 | key: Key('emailTextField'),
43 | decoration: InputDecoration(hintText: 'Email'),
44 | keyboardType: TextInputType.emailAddress,
45 | controller: _emailController,
46 | ),
47 | SizedBox(height: 8),
48 | TextFormField(
49 | key: Key('passwordTextField'),
50 | obscureText: true,
51 | decoration: InputDecoration(hintText: 'Password'),
52 | controller: _passwordController,
53 | ),
54 | ElevatedButton(
55 | child: Text('Login'),
56 | onPressed: () async {
57 | if (_emailController.text.isEmpty ||
58 | _passwordController.text.isEmpty) {
59 | _showSnackBar('Invalid credentials');
60 | return;
61 | }
62 | setState(() {
63 | _isLoading = true;
64 | });
65 | await Future.delayed(Duration(seconds: 1));
66 | setState(() {
67 | _isLoading = false;
68 | });
69 | _showSnackBar('Welcome ${_emailController.text}');
70 | },
71 | ),
72 | if (_isLoading) CircularProgressIndicator(),
73 | ],
74 | );
75 | }
76 |
77 | void _showSnackBar(String message) {
78 | ScaffoldMessenger.of(context)
79 | ..hideCurrentSnackBar()
80 | ..showSnackBar(SnackBar(key: Key('snackbar'), content: Text(message)));
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/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.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
66 |
67 |
73 |
75 |
81 |
82 |
83 |
84 |
86 |
87 |
90 |
91 |
92 |
--------------------------------------------------------------------------------
/lib/scrolling_list_page.dart:
--------------------------------------------------------------------------------
1 | import 'package:flutter/material.dart';
2 |
3 | class ScrollingListPage extends StatelessWidget {
4 | static Route route() {
5 | return MaterialPageRoute(builder: (_) => ScrollingListPage());
6 | }
7 |
8 | @override
9 | Widget build(BuildContext context) {
10 | return Scaffold(
11 | appBar: AppBar(title: Text('Scrolling List')),
12 | body: FutureBuilder