diff --git a/example/lib/in_app_webiew_example.screen.dart b/example/lib/in_app_webiew_example.screen.dart index 6e884859..3847f26e 100755 --- a/example/lib/in_app_webiew_example.screen.dart +++ b/example/lib/in_app_webiew_example.screen.dart @@ -26,7 +26,6 @@ class _InAppWebViewExampleScreenState extends State { ); PullToRefreshController? pullToRefreshController; - FindInteractionController? findInteractionController; late ContextMenu contextMenu; String url = ""; @@ -82,14 +81,6 @@ class _InAppWebViewExampleScreenState extends State { } }, ); - - findInteractionController = kIsWeb - ? null - : FindInteractionController( - onFindResultReceived: (controller, activeMatchOrdinal, numberOfMatches, isDoneCounting) => { - print("$activeMatchOrdinal $numberOfMatches $isDoneCounting") - }, - ); } @override @@ -133,7 +124,6 @@ class _InAppWebViewExampleScreenState extends State { initialSettings: settings, // contextMenu: contextMenu, pullToRefreshController: pullToRefreshController, - findInteractionController: findInteractionController, onWebViewCreated: (controller) async { webViewController = controller; }, @@ -179,32 +169,6 @@ class _InAppWebViewExampleScreenState extends State { this.url = url.toString(); urlController.text = this.url; }); - await findInteractionController?.findAllAsync(find: "video"); - // print(await findInteractionController?.getActiveFindSession()); - await Future.delayed(Duration(seconds: 1)); - findInteractionController?.findNext(forward: true); - findInteractionController?.findNext(forward: true); - findInteractionController?.findNext(forward: true); - await Future.delayed(Duration(seconds: 1)); - // findInteractionController?.clearMatches(); - findInteractionController?.findNext(forward: true); - findInteractionController?.findNext(forward: true); - findInteractionController?.findNext(forward: true); - findInteractionController?.findNext(forward: true); - await Future.delayed(Duration(seconds: 1)); - findInteractionController?.clearMatches(); - // print(await findInteractionController?.getSearchText()); - // findInteractionController?.findNext(forward: true); - // findInteractionController?.findNext(forward: false); - // findInteractionController?.setSearchText("text"); - // print(await findInteractionController?.getSearchText()); - // print(await findInteractionController?.isFindNavigatorVisible()); - // findInteractionController?.updateResultCount(); - // findInteractionController?.clearMatches(); - // findInteractionController?.presentFindNavigator(); - // await Future.delayed(Duration(milliseconds: 500)); - // findInteractionController?.dismissFindNavigator(); - // print(await findInteractionController?.isFindNavigatorVisible()); }, onReceivedError: (controller, request, error) { pullToRefreshController?.endRefreshing();