Skip to content

Commit

Permalink
removed test code from example
Browse files Browse the repository at this point in the history
  • Loading branch information
pichillilorenzo committed Dec 1, 2024
1 parent 844f29d commit 20782d6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,12 @@ class _InAppWebViewExampleScreenState extends State<InAppWebViewExampleScreen> {

return NavigationActionPolicy.ALLOW;
},
onLoadStop: (controller, url) async {
onLoadStop: (controller, url) {
pullToRefreshController?.endRefreshing();
setState(() {
this.url = url.toString();
urlController.text = this.url;
});

final printJobController = await controller.printCurrentPage(settings: PrintJobSettings(handledByClient: true));
printJobController?.onComplete = (completed, error) async {
print('Print job completed: $completed');
print('Print job error: $error');
printJobController.dispose();
};
},
onReceivedError: (controller, request, error) {
pullToRefreshController?.endRefreshing();
Expand Down

0 comments on commit 20782d6

Please sign in to comment.