Skip to content

Commit 3bf8a8b

Browse files
committed
Null Safety Migration #3
*Migrate scroll behavior.
1 parent 927af38 commit 3bf8a8b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/utils/scroll_behavior.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ class BouncingScrollBehavior extends ScrollBehavior {
1616
}
1717

1818
class BouncingScrollWrapper extends StatelessWidget {
19-
final Widget? child;
19+
final Widget child;
2020

21-
const BouncingScrollWrapper({Key? key, this.child}) : super(key: key);
21+
const BouncingScrollWrapper({Key? key, required this.child})
22+
: super(key: key);
2223

2324
static Widget builder(BuildContext context, Widget child) {
2425
return BouncingScrollWrapper(child: child);
@@ -28,7 +29,7 @@ class BouncingScrollWrapper extends StatelessWidget {
2829
Widget build(BuildContext context) {
2930
return ScrollConfiguration(
3031
behavior: BouncingScrollBehavior(),
31-
child: child!,
32+
child: child,
3233
);
3334
}
3435
}

0 commit comments

Comments
 (0)