[flutter_tool] Add messaging to --fast-start application (#47155)
diff --git a/examples/splash/lib/main.dart b/examples/splash/lib/main.dart
index 3f55136..d6dc8a4 100644
--- a/examples/splash/lib/main.dart
+++ b/examples/splash/lib/main.dart
@@ -6,10 +6,25 @@
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),
+ ),
+ ),
+ ],
+ ),
),
),
);
diff --git a/examples/splash/test/splash_test.dart b/examples/splash/test/splash_test.dart
index e1d597f..130c0e5 100644
--- a/examples/splash/test/splash_test.dart
+++ b/examples/splash/test/splash_test.dart
@@ -8,9 +8,10 @@
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);
});
}