Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e16b22

Browse files
committed
Migrate to null safety
This commit is Copyright (C) 2021 The Boston Consulting Group Pty Ltd
1 parent0baad80 commit9e16b22

File tree

41 files changed

+261
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+261
-276
lines changed

‎example/lib/common/app_shell.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
22

33
classAppShellextendsStatelessWidget {
44
finalString title;
5-
finalWidget child;
6-
constAppShell({Key key,this.title,this.child}):super(key: key);
5+
finalWidget? child;
6+
constAppShell({Key? key,requiredthis.title,this.child}):super(key: key);
77

88
@override
99
Widgetbuild(BuildContext context) {

‎example/lib/common/button.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import 'package:flutter/material.dart';
22

33
classButtonextendsStatelessWidget {
44
finalString label;
5-
finalFunction onTap;
6-
constButton(this.label, {Key key,this.onTap}):super(key: key);
5+
finalVoidCallback? onTap;
6+
constButton(this.label, {Key? key,this.onTap}):super(key: key);
77

88
@override
99
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_basic.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '../../common/app_shell.dart';
55
import'../../common/button.dart';
66

77
classAnimatedBasicExampleextendsStatelessWidget {
8-
constAnimatedBasicExample({Key key}):super(key: key);
8+
constAnimatedBasicExample({Key? key}):super(key: key);
99

1010
@override
1111
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_child.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/app_shell.dart';
44
import'../../common/button.dart';
55

66
classAnimatedChildExampleextendsStatelessWidget {
7-
constAnimatedChildExample({Key key}):super(key: key);
7+
constAnimatedChildExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_color.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/button.dart';
44
import'package:flutter/material.dart';
55

66
classAnimatedColorExampleextendsStatelessWidget {
7-
constAnimatedColorExample({Key key}):super(key: key);
7+
constAnimatedColorExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_debug.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/button.dart';
44
import'package:flutter/material.dart';
55

66
classAnimatedDebugExampleextendsStatelessWidget {
7-
constAnimatedDebugExample({Key key}):super(key: key);
7+
constAnimatedDebugExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_gradient.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/button.dart';
44
import'package:flutter/material.dart';
55

66
classAnimatedGradientExampleextendsStatelessWidget {
7-
constAnimatedGradientExample({Key key}):super(key: key);
7+
constAnimatedGradientExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_hash.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/button.dart';
44
import'package:flutter/material.dart';
55

66
classAnimatedHashExampleextendsStatelessWidget {
7-
constAnimatedHashExample({Key key}):super(key: key);
7+
constAnimatedHashExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

‎example/lib/examples/animated/animated_multiple_hash.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../../common/app_shell.dart';
33
import'package:flutter/material.dart';
44

55
classAnimatedMultipleHashExampleextendsStatefulWidget {
6-
constAnimatedMultipleHashExample({Key key}):super(key: key);
6+
constAnimatedMultipleHashExample({Key? key}):super(key: key);
77

88
@override
99
_AnimatedMultipleHashExampleStatecreateState()=>
@@ -12,7 +12,7 @@ class AnimatedMultipleHashExample extends StatefulWidget {
1212

1313
class_AnimatedMultipleHashExampleState
1414
extendsState<AnimatedMultipleHashExample> {
15-
Color clr;
15+
Color? clr;
1616
@override
1717
Widgetbuild(BuildContext context) {
1818
BlobController blobCtrl=BlobController();

‎example/lib/examples/animated/animated_stroke.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../common/button.dart';
44
import'package:flutter/material.dart';
55

66
classAnimatedStrokeExampleextendsStatelessWidget {
7-
constAnimatedStrokeExample({Key key}):super(key: key);
7+
constAnimatedStrokeExample({Key? key}):super(key: key);
88

99
@override
1010
Widgetbuild(BuildContext context) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp