Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
556301de
Unverified
Commit
556301de
authored
Dec 16, 2019
by
Jonah Williams
Committed by
GitHub
Dec 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tool] Add messaging to --fast-start application (#47155)
parent
aa071efd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
main.dart
examples/splash/lib/main.dart
+17
-2
splash_test.dart
examples/splash/test/splash_test.dart
+2
-1
No files found.
examples/splash/lib/main.dart
View file @
556301de
...
@@ -6,10 +6,25 @@ import 'package:flutter/material.dart';
...
@@ -6,10 +6,25 @@ import 'package:flutter/material.dart';
void
main
(
)
{
void
main
(
)
{
runApp
(
runApp
(
const
DecoratedBox
(
DecoratedBox
(
decoration:
BoxDecoration
(
color:
Colors
.
white
),
decoration:
BoxDecoration
(
color:
Colors
.
white
),
child:
Center
(
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
),
),
),
],
),
),
),
),
),
);
);
...
...
examples/splash/test/splash_test.dart
View file @
556301de
...
@@ -8,9 +8,10 @@ import 'package:flutter_test/flutter_test.dart';
...
@@ -8,9 +8,10 @@ import 'package:flutter_test/flutter_test.dart';
import
'package:splash/main.dart'
as
entrypoint
;
import
'package:splash/main.dart'
as
entrypoint
;
void
main
(
)
{
void
main
(
)
{
testWidgets
(
'Displays flutter logo'
,
(
WidgetTester
tester
)
async
{
testWidgets
(
'Displays flutter logo
and message
'
,
(
WidgetTester
tester
)
async
{
entrypoint
.
main
();
entrypoint
.
main
();
expect
(
find
.
byType
(
FlutterLogo
),
findsOneWidget
);
expect
(
find
.
byType
(
FlutterLogo
),
findsOneWidget
);
expect
(
find
.
text
(
'This app is only meant to be run under the Flutter debugger'
),
findsOneWidget
);
});
});
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment