This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val newFloor = floor.copy(floorNumber = "1F") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final newFloor = floor.rebuild((b) => b..floorNumber = '1F'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abstract class Floor { | |
| String get floorNumber; | |
| BuiltList<Space> get spaces; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| abstract class Floor implements Built<Floor, FloorBuilder> { | |
| factory Floor([Function(FloorBuilder b) updates]) => | |
| _$Floor((b) => b..update(updates)); | |
| Floor._(); | |
| String get floorNumber; | |
| BuiltList<Space> get spaces; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies: | |
| built_collection: ^4.2.2 | |
| built_value: ^7.0.8 | |
| built_value_generator: ^7.0.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies: | |
| rxdart: ^0.24.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io'; | |
| import 'package:flutter_driver/flutter_driver.dart'; | |
| extension DriverExt on FlutterDriver { | |
| Future<void> saveScreenshot() async { | |
| final path = 'screenshots/' | |
| '${DateTime.now().toIso8601String().replaceAll(':', '-')}' | |
| '.png'; | |
| final List<int> pixels = await screenshot(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Future<void> goToRooms(FlutterDriver driver) async { | |
| await driver.tap(find.byValueKey('rooms')); | |
| await driver.assertElementPresent('sliverList'); | |
| await driver.assertElementPresent('floorHeader'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:io'; | |
| import 'package:flutter_driver/flutter_driver.dart'; | |
| import 'package:test/test.dart'; | |
| import 'app_test_resources.dart'; | |
| void main() { | |
| group('Smoke tests', () { | |
| FlutterDriver driver; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:commander/main.dart' as app; | |
| import 'package:flutter_driver/driver_extension.dart'; | |
| void main() { | |
| enableFlutterDriverExtension(); | |
| app.main(); | |
| } |