Skip to content

Commit d542ae9

Browse files
committed
Migrate package lib to null-safety.
1 parent 575d243 commit d542ae9

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎packages/web_pointer_interceptor/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The result is that Flutter widget's `onTap` (and other) handlers won't fire as e
1010

1111
<center>
1212

13-
![In the dashed areas, clicks won't work](docs/affected-areas.png)
13+
![In the dashed areas, clicks won't work](doc/img/affected-areas.png)
1414

1515
_In the dashed areas, clicks won't work as expected._
1616
</center>
@@ -25,7 +25,7 @@ This gives an opportunity to the Flutter framework to handle the click, as expec
2525

2626
<center>
2727

28-
![The PointerInterceptor renders between the flutter element, and the platform view](docs/fixed-areas.png)
28+
![The PointerInterceptor renders between the flutter element, and the platform view](doc/img/fixed-areas.png)
2929

3030
_Each `PointerInterceptor` (green) renders between Flutter widgets and the underlying `HtmlElementView`. Clicks work as expected._
3131
</center>

packages/web_pointer_interceptor/docs/affected-areas.png renamed to packages/web_pointer_interceptor/doc/img/affected-areas.png

File renamed without changes.

packages/web_pointer_interceptor/docs/fixed-areas.png renamed to packages/web_pointer_interceptor/doc/img/fixed-areas.png

File renamed without changes.

‎packages/web_pointer_interceptor/lib/src/mobile.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import 'package:flutter/widgets.dart';
88
class PointerInterceptor extends StatelessWidget {
99
/// Create a `PointerInterceptor` wrapping a `child`.
1010
const PointerInterceptor({
11-
@required this.child,
11+
required this.child,
1212
this.debug = false,
13-
Key key,
13+
Key? key,
1414
}) : super(key: key);
1515

1616
/// The `Widget` that is being wrapped by this `PointerInterceptor`.

‎packages/web_pointer_interceptor/lib/src/shim/dart_ui_fake.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class webOnlyAssetManager {
2424
/// Shim for getAssetUrl.
2525
/// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45
2626
static String getAssetUrl(String asset) {
27-
return null;
27+
return '';
2828
}
2929
}
3030

‎packages/web_pointer_interceptor/lib/src/web.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ void _registerFactory({bool debug = false}) {
4040
class PointerInterceptor extends StatelessWidget {
4141
/// Creates a PointerInterceptor for the web.
4242
PointerInterceptor({
43-
@required this.child,
43+
required this.child,
4444
this.debug = false,
45-
Key key,
45+
Key? key,
4646
}) : super(key: key) {
4747
if (!_registered) {
4848
_register();

‎packages/web_pointer_interceptor/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 0.8.0
44
repository: https://github.com/flutter/packages
55

66
environment:
7-
sdk: ">=2.7.0 <3.0.0"
7+
sdk: ">=2.12.0-0 <3.0.0"
88
flutter: ">=1.17.0"
99

1010
dependencies:

0 commit comments

Comments
 (0)