Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 241d3b4

Browse files
committed
Merge remote-tracking branch 'upstream/main' into issue/94051_webview_4.0
2 parents ca99630 + 2ca342c commit 241d3b4

File tree

72 files changed

+2234
-406
lines changed

Some content is hidden

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

72 files changed

+2234
-406
lines changed

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4bed76757db7a4eea74d77d5a63804ef52198f37
1+
df7111a848cb0cc076a9c89d48332f0ec2700c45

packages/file_selector/file_selector_platform_interface/CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
## 2.0.5
1+
## NEXT
22

33
* Removes unnecessary imports.
4-
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
5-
lint warnings.
64

75
## 2.0.4
86

packages/file_selector/file_selector_platform_interface/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repository: https://github.com/flutter/plugins/tree/main/packages/file_selector/
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+file_selector%22
55
# NOTE: We strongly prefer non-breaking changes, even at the expense of a
66
# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
7-
version: 2.0.5
7+
version: 2.0.4
88

99
environment:
1010
sdk: ">=2.12.0 <3.0.0"

packages/local_auth/local_auth/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
## 2.0.2
2+
3+
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
4+
lint warnings.
5+
16
## 2.0.1
27

38
* Restores the ability to import `error_codes.dart`.
49
* Updates README to match API changes in 2.0, and to improve clarity in
510
general.
611
* Removes unnecessary imports.
7-
* Fixes library_private_types_in_public_api, sort_child_properties_last and use_key_in_widget_constructors
8-
lint warnings.
912

1013
## 2.0.0
1114

packages/local_auth/local_auth/example/lib/readme_excerpts.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ import 'package:local_auth_ios/local_auth_ios.dart';
2424
// #enddocregion CustomMessages
2525

2626
void main() {
27-
runApp(MyApp());
27+
runApp(const MyApp());
2828
}
2929

3030
class MyApp extends StatefulWidget {
31+
const MyApp({Key? key}) : super(key: key);
32+
3133
@override
3234
State<MyApp> createState() => _MyAppState();
3335
}

packages/local_auth/local_auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Android and iOS devices to allow local
33
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
44
repository: https://github.com/flutter/plugins/tree/main/packages/local_auth/local_auth
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+local_auth%22
6-
version: 2.0.1
6+
version: 2.0.2
77

88
environment:
99
sdk: ">=2.14.0 <3.0.0"

packages/webview_flutter/webview_flutter_platform_interface/lib/v4/src/platform_webview_controller.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import 'webview_platform.dart';
2121
/// [WebViewCookieManagerDelegate] methods.
2222
abstract class PlatformWebViewController extends PlatformInterface {
2323
/// Creates a new [PlatformWebViewController]
24-
factory PlatformWebViewController(WebViewControllerCreationParams params) {
24+
factory PlatformWebViewController(
25+
PlatformWebViewControllerCreationParams params) {
2526
final PlatformWebViewController webViewControllerDelegate =
2627
WebViewPlatform.instance!.createPlatformWebViewController(params);
2728
PlatformInterface.verify(webViewControllerDelegate, _token);
@@ -38,7 +39,7 @@ abstract class PlatformWebViewController extends PlatformInterface {
3839
static final Object _token = Object();
3940

4041
/// The parameters used to initialize the [PlatformWebViewController].
41-
final WebViewControllerCreationParams params;
42+
final PlatformWebViewControllerCreationParams params;
4243

4344
/// Loads the file located on the specified [absoluteFilePath].
4445
///
@@ -156,12 +157,12 @@ abstract class PlatformWebViewController extends PlatformInterface {
156157
'clearLocalStorage is not implemented on the current platform');
157158
}
158159

159-
/// Sets the [NavigationCallbackDelegate] containing the callback methods that
160+
/// Sets the [PlatformNavigationCallbackDelegate] containing the callback methods that
160161
/// are called during navigation events.
161-
Future<void> setNavigationCallbackDelegate(
162+
Future<void> setPlatformNavigationCallbackDelegate(
162163
PlatformNavigationCallbackDelegate handler) {
163164
throw UnimplementedError(
164-
'setNavigationCallbackDelegate is not implemented on the current platform');
165+
'setPlatformNavigationCallbackDelegate is not implemented on the current platform');
165166
}
166167

167168
/// Runs the given JavaScript in the context of the current page.
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@
44

55
import 'package:flutter/material.dart';
66

7-
/// Object specifying creation parameters for creating a [WebViewControllerDelegate].
7+
/// Object specifying creation parameters for creating a [PlatformWebViewController].
88
///
99
/// Platform specific implementations can add additional fields by extending
1010
/// this class.
1111
///
1212
/// {@tool sample}
13-
/// This example demonstrates how to extend the [WebViewControllerCreationParams] to
13+
/// This example demonstrates how to extend the [PlatformWebViewControllerCreationParams] to
1414
/// provide additional platform specific parameters.
1515
///
16-
/// When extending [WebViewControllerCreationParams] additional parameters
16+
/// When extending [PlatformWebViewControllerCreationParams] additional parameters
1717
/// should always accept `null` or have a default value to prevent breaking
1818
/// changes.
1919
///
2020
/// ```dart
2121
/// class WKWebViewControllerCreationParams
22-
/// extends WebViewControllerCreationParams {
22+
/// extends PlatformWebViewControllerCreationParams {
2323
/// WKWebViewControllerCreationParams._(
2424
/// // This parameter prevents breaking changes later.
2525
/// // ignore: avoid_unused_constructor_parameters
26-
/// WebViewControllerCreationParams params, {
26+
/// PlatformWebViewControllerCreationParams params, {
2727
/// this.domain,
2828
/// }) : super();
2929
///
30-
/// factory WKWebViewControllerCreationParams.fromWebViewControllerCreationParams(
31-
/// WebViewControllerCreationParams params, {
30+
/// factory WKWebViewControllerCreationParams.fromPlatformWebViewControllerCreationParams(
31+
/// PlatformWebViewControllerCreationParams params, {
3232
/// String? domain,
3333
/// }) {
3434
/// return WKWebViewControllerCreationParams._(params, domain: domain);
@@ -39,7 +39,7 @@ import 'package:flutter/material.dart';
3939
/// ```
4040
/// {@end-tool}
4141
@immutable
42-
class WebViewControllerCreationParams {
43-
/// Used by the platform implementation to create a new [WebViewControllerCreationParams].
44-
const WebViewControllerCreationParams();
42+
class PlatformWebViewControllerCreationParams {
43+
/// Used by the platform implementation to create a new [PlatformWebViewController].
44+
const PlatformWebViewControllerCreationParams();
4545
}

packages/webview_flutter/webview_flutter_platform_interface/lib/v4/src/types/types.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export 'javascript_message.dart';
66
export 'javascript_mode.dart';
77
export 'load_request_params.dart';
88
export 'platform_navigation_callback_delegate_creation_params.dart';
9+
export 'platform_webview_controller_creation_params.dart';
910
export 'platform_webview_cookie_manager_creation_params.dart';
1011
export 'platform_webview_widget_creation_params.dart';
1112
export 'web_resource_error.dart';
12-
export 'webview_controller_creation_params.dart';
1313
export 'webview_cookie.dart';

packages/webview_flutter/webview_flutter_platform_interface/lib/v4/src/webview_platform.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ abstract class WebViewPlatform extends PlatformInterface {
6363
/// This function should only be called by the app-facing package.
6464
/// Look at using [WebViewController] in `webview_flutter` instead.
6565
PlatformWebViewController createPlatformWebViewController(
66-
WebViewControllerCreationParams params,
66+
PlatformWebViewControllerCreationParams params,
6767
) {
6868
throw UnimplementedError(
6969
'createWebViewControllerDelegate is not implemented on the current platform.');

0 commit comments

Comments
 (0)