remove personal repo and replace with trivial example for smoke test (#28386)

This commit is contained in:
Jonah Williams
2019-02-26 19:25:35 -08:00
committed by GitHub
parent dd5559a5b8
commit e50ebfc6fa
9 changed files with 73 additions and 117 deletions

View File

@@ -4,18 +4,13 @@
import 'package:flutter/material.dart';
import 'package:flutter_driver/driver_extension.dart';
import 'coffee_app.dart';
import 'src/coffee.dart';
import 'message.dart' as generated; // ignore: uri_does_not_exist
Future<void> main() async {
enableFlutterDriverExtension();
coffeeApp = await CoffeeApp.create(PourOverCoffeeModule());
runApp(ExampleWidget());
}
CoffeeApp coffeeApp;
class ExampleWidget extends StatefulWidget {
@override
_ExampleWidgetState createState() => _ExampleWidgetState();
@@ -34,9 +29,8 @@ class _ExampleWidgetState extends State<ExampleWidget> {
RaisedButton(
child: const Text('Press Button, Get Coffee'),
onPressed: () async {
final CoffeeMaker coffeeMaker = coffeeApp.getCoffeeMaker();
setState(() {
_message = coffeeMaker.brew();
_message = generated.message;
});
},
),