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
347b9f4d
Unverified
Commit
347b9f4d
authored
Apr 21, 2021
by
Abhishek Ghaskata
Committed by
GitHub
Apr 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate multiple_flutters to null safety (#80630)
parent
0de20a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.dart
dev/benchmarks/multiple_flutters/module/lib/main.dart
+4
-4
pubspec.yaml
dev/benchmarks/multiple_flutters/module/pubspec.yaml
+1
-1
No files found.
dev/benchmarks/multiple_flutters/module/lib/main.dart
View file @
347b9f4d
...
...
@@ -13,7 +13,7 @@ void topMain() => runApp(const MyApp(Colors.green));
void
bottomMain
(
)
=>
runApp
(
const
MyApp
(
Colors
.
purple
));
class
MyApp
extends
StatelessWidget
{
const
MyApp
(
this
.
color
,
{
Key
key
})
:
super
(
key:
key
);
const
MyApp
(
this
.
color
,
{
Key
?
key
})
:
super
(
key:
key
);
final
Color
color
;
...
...
@@ -30,8 +30,8 @@ class MyApp extends StatelessWidget {
}
class
MyHomePage
extends
StatefulWidget
{
const
MyHomePage
({
Key
key
,
this
.
title
})
:
super
(
key:
key
);
final
String
title
;
const
MyHomePage
({
Key
?
key
,
this
.
title
})
:
super
(
key:
key
);
final
String
?
title
;
@override
_MyHomePageState
createState
()
=>
_MyHomePageState
();
...
...
@@ -42,7 +42,7 @@ class _MyHomePageState extends State<MyHomePage> {
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
title:
Text
(
widget
.
title
),
title:
Text
(
widget
.
title
??
''
),
),
body:
Center
(
child:
Column
(
...
...
dev/benchmarks/multiple_flutters/module/pubspec.yaml
View file @
347b9f4d
...
...
@@ -4,7 +4,7 @@ description: A module that is embedded in the multiple_flutters benchmark test.
version
:
1.0.0+1
environment
:
sdk
:
'
>=2.
8.1
<3.0.0'
sdk
:
'
>=2.
12.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