This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -823,7 +823,7 @@ void main() {
823
823
});
824
824
});
825
825
826
- group ('$ SurfaceAndroidWebView ' , () {
826
+ group ('SurfaceAndroidWebView' , () {
827
827
setUpAll (() {
828
828
WebView .platform = SurfaceAndroidWebView ();
829
829
});
@@ -902,6 +902,8 @@ void main() {
902
902
903
903
testWidgets ('inputs are scrolled into view when focused' ,
904
904
(WidgetTester tester) async {
905
+ expect (Platform .isAndroid, isTrue);
906
+
905
907
final String scrollTestPage = '''
906
908
<!DOCTYPE html>
907
909
<html>
@@ -1004,7 +1006,7 @@ void main() {
1004
1006
viewportRectRelativeToViewport['right' ],
1005
1007
isTrue);
1006
1008
});
1007
- }, skip: ! Platform .isAndroid);
1009
+ }, skip: Platform .isAndroid ? false : 'Platform isn \' t Android' );
1008
1010
1009
1011
group ('NavigationDelegate' , () {
1010
1012
final String blankPage = "<!DOCTYPE html><head></head><body></body></html>" ;
Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
import 'dart:async' ;
6
+ import 'dart:io' ;
6
7
7
8
import 'package:flutter/foundation.dart' ;
8
9
import 'package:flutter/gestures.dart' ;
@@ -85,6 +86,7 @@ class SurfaceAndroidWebView extends AndroidWebView {
85
86
Set <Factory <OneSequenceGestureRecognizer >>? gestureRecognizers,
86
87
required WebViewPlatformCallbacksHandler webViewPlatformCallbacksHandler,
87
88
}) {
89
+ assert (Platform .isAndroid);
88
90
assert (webViewPlatformCallbacksHandler != null );
89
91
return PlatformViewLink (
90
92
viewType: 'plugins.flutter.io/webview' ,
You can’t perform that action at this time.
0 commit comments