Unverified Commit 556301de authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tool] Add messaging to --fast-start application (#47155)

parent aa071efd
......@@ -6,10 +6,25 @@ import 'package:flutter/material.dart';
void main() {
runApp(
const DecoratedBox(
DecoratedBox(
decoration: BoxDecoration(color: Colors.white),
child: Center(
child: FlutterLogo(size: 48),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
textDirection: TextDirection.ltr,
children: const <Widget>[
FlutterLogo(size: 48),
Padding(
padding: EdgeInsets.all(32),
child: Text(
'This app is only meant to be run under the Flutter debugger',
textDirection: TextDirection.ltr,
textAlign: TextAlign.center,
style: TextStyle(color: Colors.black87),
),
),
],
),
),
),
);
......
......@@ -8,9 +8,10 @@ import 'package:flutter_test/flutter_test.dart';
import 'package:splash/main.dart' as entrypoint;
void main() {
testWidgets('Displays flutter logo', (WidgetTester tester) async {
testWidgets('Displays flutter logo and message', (WidgetTester tester) async {
entrypoint.main();
expect(find.byType(FlutterLogo), findsOneWidget);
expect(find.text('This app is only meant to be run under the Flutter debugger'), findsOneWidget);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment