File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
lib/app/modules/notices/presentation/widgets Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11import 'dart:async' ;
22import 'dart:collection' ;
33import 'dart:convert' ;
4- import 'dart:io' ;
54
65import 'package:flutter/material.dart' ;
76import 'package:flutter_inappwebview/flutter_inappwebview.dart' ;
@@ -19,7 +18,6 @@ class NoticeBody extends StatefulWidget {
1918
2019class _NoticeBodyState extends State <NoticeBody > {
2120 double _height = 1 ;
22- late bool _initial = Platform .isIOS;
2321 final _completer = Completer <void >();
2422 late final InAppWebViewController _controller;
2523
@@ -48,8 +46,7 @@ class _NoticeBodyState extends State<NoticeBody> {
4846 builtInZoomControls: false ,
4947 ),
5048 shouldOverrideUrlLoading: (controller, navigationAction) async {
51- if (_initial) {
52- _initial = false ;
49+ if (navigationAction.request.url.toString () == 'about:blank' ) {
5350 return NavigationActionPolicy .ALLOW ;
5451 }
5552 final uri = navigationAction.request.url;
Original file line number Diff line number Diff line change 11name : ziggle
22description : ziggle
33publish_to : ' none'
4- version : 4.1.7
4+ version : 4.1.8
55
66environment :
77 sdk : ^3.5.1
You can’t perform that action at this time.
0 commit comments