Skip to content

Commit

Permalink
fix: link open error (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar authored Dec 22, 2024
1 parent 36d7a7c commit ce07366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:collection';
import 'dart:convert';
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
Expand All @@ -19,7 +18,6 @@ class NoticeBody extends StatefulWidget {

class _NoticeBodyState extends State<NoticeBody> {
double _height = 1;
late bool _initial = Platform.isIOS;
final _completer = Completer<void>();
late final InAppWebViewController _controller;

Expand Down Expand Up @@ -48,8 +46,7 @@ class _NoticeBodyState extends State<NoticeBody> {
builtInZoomControls: false,
),
shouldOverrideUrlLoading: (controller, navigationAction) async {
if (_initial) {
_initial = false;
if (navigationAction.request.url.toString() == 'about:blank') {
return NavigationActionPolicy.ALLOW;
}
final uri = navigationAction.request.url;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: ziggle
description: ziggle
publish_to: 'none'
version: 4.1.7
version: 4.1.8

environment:
sdk: ^3.5.1
Expand Down

0 comments on commit ce07366

Please sign in to comment.