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
3cb5942e
Unverified
Commit
3cb5942e
authored
Apr 16, 2021
by
Abhishek Ghaskata
Committed by
GitHub
Apr 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update abstract_method_smoke_test to null safety (#80555)
parent
a0f7694d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.dart
...ntegration_tests/abstract_method_smoke_test/lib/main.dart
+4
-4
pubspec.yaml
...integration_tests/abstract_method_smoke_test/pubspec.yaml
+1
-1
No files found.
dev/integration_tests/abstract_method_smoke_test/lib/main.dart
View file @
3cb5942e
...
...
@@ -14,7 +14,7 @@ Future<void> main() async {
}
class
MyApp
extends
StatelessWidget
{
const
MyApp
({
Key
key
})
:
super
(
key:
key
);
const
MyApp
({
Key
?
key
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -29,7 +29,7 @@ class MyApp extends StatelessWidget {
}
class
HomePage
extends
StatefulWidget
{
const
HomePage
({
Key
key
})
:
super
(
key:
key
);
const
HomePage
({
Key
?
key
})
:
super
(
key:
key
);
@override
_HomePage
createState
()
=>
_HomePage
();
...
...
@@ -42,7 +42,7 @@ class _HomePage extends State<HomePage> {
// Trigger the second route.
// https://github.com/flutter/flutter/issues/40126
WidgetsBinding
.
instance
.
addPostFrameCallback
((
_
)
async
{
WidgetsBinding
.
instance
?
.
addPostFrameCallback
((
_
)
async
{
Navigator
.
of
(
context
).
push
(
MaterialPageRoute
<
void
>(
builder:
(
_
)
=>
const
SecondPage
()));
});
...
...
@@ -55,7 +55,7 @@ class _HomePage extends State<HomePage> {
}
class
SecondPage
extends
StatelessWidget
{
const
SecondPage
({
Key
key
})
:
super
(
key:
key
);
const
SecondPage
({
Key
?
key
})
:
super
(
key:
key
);
@override
Widget
build
(
BuildContext
context
)
{
...
...
dev/integration_tests/abstract_method_smoke_test/pubspec.yaml
View file @
3cb5942e
...
...
@@ -4,7 +4,7 @@ description: A new Flutter project.
version
:
1.0.0+1
environment
:
sdk
:
"
>=2.1.0
<3.0.0"
sdk
:
"
>=2.1
2
.0
<3.0.0"
dependencies
:
flutter
:
...
...
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