mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 23:51:55 +08:00
[google_sign_in_web] Updates package:web dependency to 0.5.0. (#6167)
This PR updates `google_sign_in_web` to use package `web: ^0.5.0`. ## Testing Manually verified using the `example/lib/button_tester.dart` app. This should be text exempt? This is a refactor with no semantic change (also, I wouldn't know how to test we're using `package:web` the expected way!) I removed a couple of `//ignore` at least! ## Issues * Fast follow of: https://github.com/flutter/packages/pull/5791
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
## 0.12.4
|
||||||
|
|
||||||
|
* Updates dependencies to `web: ^0.5.0` and `google_identity_services_web: ^0.3.1`.
|
||||||
|
|
||||||
## 0.12.3+3
|
## 0.12.3+3
|
||||||
|
|
||||||
* Updates SDK version to Dart `^3.3.0`. Flutter `^3.19.0`.
|
* Updates SDK version to Dart `^3.3.0`. Flutter `^3.19.0`.
|
||||||
|
@ -9,7 +9,7 @@ dependencies:
|
|||||||
cupertino_icons: ^1.0.2
|
cupertino_icons: ^1.0.2
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
google_identity_services_web: ^0.3.0
|
google_identity_services_web: ^0.3.1
|
||||||
google_sign_in_platform_interface: ^2.4.0
|
google_sign_in_platform_interface: ^2.4.0
|
||||||
google_sign_in_web:
|
google_sign_in_web:
|
||||||
path: ../
|
path: ../
|
||||||
@ -22,7 +22,7 @@ dev_dependencies:
|
|||||||
integration_test:
|
integration_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
mockito: 5.4.4
|
mockito: 5.4.4
|
||||||
web: ">=0.3.0 <0.6.0"
|
web: ^0.5.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
@ -73,13 +73,10 @@ class _FlexHtmlElementView extends State<FlexHtmlElementView> {
|
|||||||
|
|
||||||
/// The function called whenever an observed resize occurs.
|
/// The function called whenever an observed resize occurs.
|
||||||
void _onResizeEntries(
|
void _onResizeEntries(
|
||||||
// TODO(srujzs): Remove once typed JSArrays (JSArray<T>) get to `stable`.
|
JSArray<web.ResizeObserverEntry> resizes,
|
||||||
// ignore: always_specify_types
|
|
||||||
JSArray resizes,
|
|
||||||
web.ResizeObserver observer,
|
web.ResizeObserver observer,
|
||||||
) {
|
) {
|
||||||
final web.DOMRectReadOnly rect =
|
final web.DOMRectReadOnly rect = resizes.toDart.last.contentRect;
|
||||||
resizes.toDart.cast<web.ResizeObserverEntry>().last.contentRect;
|
|
||||||
if (rect.width > 0 && rect.height > 0) {
|
if (rect.width > 0 && rect.height > 0) {
|
||||||
_doResize(Size(rect.width.toDouble(), rect.height.toDouble()));
|
_doResize(Size(rect.width.toDouble(), rect.height.toDouble()));
|
||||||
}
|
}
|
||||||
@ -90,14 +87,10 @@ class _FlexHtmlElementView extends State<FlexHtmlElementView> {
|
|||||||
/// When mutations are received, this function attaches a Resize Observer to
|
/// When mutations are received, this function attaches a Resize Observer to
|
||||||
/// the first child of the mutation, which will drive
|
/// the first child of the mutation, which will drive
|
||||||
void _onMutationRecords(
|
void _onMutationRecords(
|
||||||
// TODO(srujzs): Remove once typed JSArrays (JSArray<T>) get to `stable`.
|
JSArray<web.MutationRecord> mutations,
|
||||||
// ignore: always_specify_types
|
|
||||||
JSArray mutations,
|
|
||||||
web.MutationObserver observer,
|
web.MutationObserver observer,
|
||||||
) {
|
) {
|
||||||
mutations.toDart
|
for (final web.MutationRecord mutation in mutations.toDart) {
|
||||||
.cast<web.MutationRecord>()
|
|
||||||
.forEach((web.MutationRecord mutation) {
|
|
||||||
if (mutation.addedNodes.length > 0) {
|
if (mutation.addedNodes.length > 0) {
|
||||||
final web.Element? element = _locateSizeProvider(mutation.addedNodes);
|
final web.Element? element = _locateSizeProvider(mutation.addedNodes);
|
||||||
if (element != null) {
|
if (element != null) {
|
||||||
@ -108,7 +101,7 @@ class _FlexHtmlElementView extends State<FlexHtmlElementView> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Registers a MutationObserver on the root element of the HtmlElementView.
|
/// Registers a MutationObserver on the root element of the HtmlElementView.
|
||||||
|
@ -3,7 +3,7 @@ description: Flutter plugin for Google Sign-In, a secure authentication system
|
|||||||
for signing in with a Google account on Android, iOS and Web.
|
for signing in with a Google account on Android, iOS and Web.
|
||||||
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_web
|
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_web
|
||||||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
|
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
|
||||||
version: 0.12.3+3
|
version: 0.12.4
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.3.0
|
sdk: ^3.3.0
|
||||||
@ -22,10 +22,10 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_web_plugins:
|
flutter_web_plugins:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
google_identity_services_web: ^0.3.0
|
google_identity_services_web: ^0.3.1
|
||||||
google_sign_in_platform_interface: ^2.4.0
|
google_sign_in_platform_interface: ^2.4.0
|
||||||
http: ">=0.13.0 <2.0.0"
|
http: ">=0.13.0 <2.0.0"
|
||||||
web: ">=0.3.0 <0.6.0" # because google_identity_services
|
web: ^0.5.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Reference in New Issue
Block a user