Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server port bug and int parse bug #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

memoriasIT
Copy link

@memoriasIT memoriasIT commented Feb 6, 2025

This PR will fix two bugs.

  1. In the example there is an error in parsing the height:
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: FormatException: Invalid radix-10 number (at character 1)
136.0
^

#0      int._handleFormatError (dart:core-patch/integers_patch.dart:127:5)
#1      int._parseRadix (dart:core-patch/integers_patch.dart:138:16)
#2      int._parse (dart:core-patch/integers_patch.dart:99:12)
#3      int.parse (dart:core-patch/integers_patch.dart:61:12)
#4      _MainPageState.initState.<anonymous closure>.<anonymous closure> (package:webview_flutter_plus_example/main.dart:44:32)
#5      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:902:45)
#6      Future._propagateToListeners (dart:async/future_impl.dart:931:13)
  1. Server port being closed already (issue HttpException: HttpServer is not bound to a socket #57)
flutter: HttpException: HttpServer is not bound to a socket
flutter: 
#0      _HttpServer.port (dart:_http/http_impl.dart:3324:17)
#1      LocalhostServer.port (package:webview_flutter_plus/src/localhost_server.dart:26:29)
#2      LocalhostServer.close (package:webview_flutter_plus/src/localhost_server.dart:105:50)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant