This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 22 files changed +147
-43
lines changed
google_maps_flutter/google_maps_flutter_web
url_launcher/url_launcher_web
video_player/video_player_web
22 files changed +147
-43
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.0+7
2
+
3
+ * Substitute ` undefined_prefixed_name: ignore ` analyzer setting by a ` dart:ui ` shim with conditional exports. [ Issue] ( https://github.com/flutter/flutter/issues/69309 ) .
4
+
1
5
## 0.1.0+6
2
6
3
7
* Ensure a single ` InfoWindow ` is shown at a time. [ Issue] ( https://github.com/flutter/flutter/issues/67380 ) .
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ library google_maps_flutter_web;
6
6
7
7
import 'dart:async' ;
8
8
import 'dart:html' ;
9
- import 'dart:ui ' as ui;
9
+ import 'src/shims/dart_ui. dart' as ui; // Conditionally imports dart:ui in web
10
10
import 'dart:convert' ;
11
11
12
12
import 'package:flutter/rendering.dart' ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ /// This file shims dart:ui in web-only scenarios, getting rid of the need to
6
+ /// suppress analyzer warnings.
7
+
8
+ // TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs
9
+ // are exposed from a dedicated place.
10
+ export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart' ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import 'dart:html' as html;
6
+
7
+ // Fake interface for the logic that this package needs from (web-only) dart:ui.
8
+ // This is conditionally exported so the analyzer sees these methods as available.
9
+
10
+ /// Shim for web_ui engine.PlatformViewRegistry
11
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L62
12
+ class platformViewRegistry {
13
+ /// Shim for registerViewFactory
14
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72
15
+ static registerViewFactory (
16
+ String viewTypeId, html.Element Function (int viewId) viewFactory) {}
17
+ }
18
+
19
+ /// Shim for web_ui engine.AssetManager.
20
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L12
21
+ class webOnlyAssetManager {
22
+ /// Shim for getAssetUrl.
23
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45
24
+ static getAssetUrl (String asset) {}
25
+ }
26
+
27
+ /// Signature of callbacks that have no arguments and return no data.
28
+ typedef VoidCallback = void Function ();
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export 'dart:ui' ;
Original file line number Diff line number Diff line change 1
1
name : google_maps_flutter_web
2
2
description : Web platform implementation of google_maps_flutter
3
3
homepage : https://github.com/flutter/plugins/tree/master/packages/google_maps_flutter
4
- version : 0.1.0+6
4
+ version : 0.1.0+7
5
5
6
6
flutter :
7
7
plugin :
Original file line number Diff line number Diff line change
1
+ # 0.1.5+1
2
+
3
+ - Substitute ` undefined_prefixed_name: ignore ` analyzer setting by a ` dart:ui ` shim with conditional exports. [ Issue] ( https://github.com/flutter/flutter/issues/69309 ) .
4
+
1
5
# 0.1.5
2
6
3
7
- Added the web implementation of the Link widget.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ /// This file shims dart:ui in web-only scenarios, getting rid of the need to
6
+ /// suppress analyzer warnings.
7
+
8
+ // TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs
9
+ // are exposed from a dedicated place.
10
+ export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart' ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import 'dart:html' as html;
6
+
7
+ // Fake interface for the logic that this package needs from (web-only) dart:ui.
8
+ // This is conditionally exported so the analyzer sees these methods as available.
9
+
10
+ /// Shim for web_ui engine.PlatformViewRegistry
11
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L62
12
+ class platformViewRegistry {
13
+ /// Shim for registerViewFactory
14
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72
15
+ static registerViewFactory (
16
+ String viewTypeId, html.Element Function (int viewId) viewFactory) {}
17
+ }
18
+
19
+ /// Shim for web_ui engine.AssetManager.
20
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L12
21
+ class webOnlyAssetManager {
22
+ /// Shim for getAssetUrl.
23
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45
24
+ static getAssetUrl (String asset) {}
25
+ }
26
+
27
+ /// Signature of callbacks that have no arguments and return no data.
28
+ typedef VoidCallback = void Function ();
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export 'dart:ui' ;
Original file line number Diff line number Diff line change 4
4
5
5
import 'dart:async' ;
6
6
import 'dart:html' as html;
7
- // ignore: undefined_shown_name
8
- import 'dart:ui' as ui show platformViewRegistry;
7
+ import 'src/shims/dart_ui.dart' as ui;
9
8
10
9
import 'package:flutter_web_plugins/flutter_web_plugins.dart' ;
11
10
import 'package:meta/meta.dart' ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/url_launcher/u
4
4
# 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump
5
5
# the version to 2.0.0.
6
6
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7
- version : 0.1.5
7
+ version : 0.1.5+1
8
8
9
9
flutter :
10
10
plugin :
Original file line number Diff line number Diff line change
1
+ ## 0.1.4+1
2
+
3
+ * Substitute ` undefined_prefixed_name: ignore ` analyzer setting by a ` dart:ui ` shim with conditional exports. [ Issue] ( https://github.com/flutter/flutter/issues/69309 ) .
4
+
1
5
## 0.1.4
2
6
3
7
* Added option to set the video playback speed on the video controller.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ /// This file shims dart:ui in web-only scenarios, getting rid of the need to
6
+ /// suppress analyzer warnings.
7
+
8
+ // TODO(flutter/flutter#55000) Remove this file once web-only dart:ui APIs
9
+ // are exposed from a dedicated place.
10
+ export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart' ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ import 'dart:html' as html;
6
+
7
+ // Fake interface for the logic that this package needs from (web-only) dart:ui.
8
+ // This is conditionally exported so the analyzer sees these methods as available.
9
+
10
+ /// Shim for web_ui engine.PlatformViewRegistry
11
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L62
12
+ class platformViewRegistry {
13
+ /// Shim for registerViewFactory
14
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/ui.dart#L72
15
+ static registerViewFactory (
16
+ String viewTypeId, html.Element Function (int viewId) viewFactory) {}
17
+ }
18
+
19
+ /// Shim for web_ui engine.AssetManager.
20
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L12
21
+ class webOnlyAssetManager {
22
+ /// Shim for getAssetUrl.
23
+ /// https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/assets.dart#L45
24
+ static getAssetUrl (String asset) {}
25
+ }
26
+
27
+ /// Signature of callbacks that have no arguments and return no data.
28
+ typedef VoidCallback = void Function ();
Original file line number Diff line number Diff line change
1
+ // Copyright 2017 The Chromium Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ export 'dart:ui' ;
Original file line number Diff line number Diff line change 1
1
import 'dart:async' ;
2
2
import 'dart:html' ;
3
- import 'dart:ui ' as ui;
3
+ import 'src/shims/dart_ui. dart' as ui;
4
4
5
5
import 'package:flutter/material.dart' ;
6
6
import 'package:flutter/services.dart' ;
@@ -78,8 +78,6 @@ class VideoPlayerPlugin extends VideoPlayerPlatform {
78
78
if (dataSource.package != null && dataSource.package.isNotEmpty) {
79
79
assetUrl = 'packages/${dataSource .package }/$assetUrl ' ;
80
80
}
81
- // 'webOnlyAssetManager' is only in the web version of dart:ui
82
- // ignore: undefined_prefixed_name
83
81
assetUrl = ui.webOnlyAssetManager.getAssetUrl (assetUrl);
84
82
uri = assetUrl;
85
83
break ;
@@ -170,7 +168,6 @@ class _VideoPlayer {
170
168
videoElement.setAttribute ('playsinline' , 'true' );
171
169
172
170
// TODO(hterkelsen): Use initialization parameters once they are available
173
- // ignore: undefined_prefixed_name
174
171
ui.platformViewRegistry.registerViewFactory (
175
172
'videoPlayer-$textureId ' , (int viewId) => videoElement);
176
173
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/v
4
4
# 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump
5
5
# the version to 2.0.0.
6
6
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7
- version : 0.1.4
7
+ version : 0.1.4+1
8
8
9
9
flutter :
10
10
plugin :
Original file line number Diff line number Diff line change 20
20
#
21
21
# TODO(mklim): Remove everything from this list. https://github.com/flutter/flutter/issues/45440
22
22
CUSTOM_ANALYSIS_PLUGINS=(
23
- " video_player/video_player_web"
24
- " google_maps_flutter/google_maps_flutter_web"
25
- " url_launcher/url_launcher_web"
26
23
)
27
24
# Comma-separated string of the list above
28
25
readonly CUSTOM_FLAG=$( IFS=, ; echo " ${CUSTOM_ANALYSIS_PLUGINS[*]} " )
You can’t perform that action at this time.
0 commit comments