flutter-form-builder-ecosystem / phone_number

Flutter plugin for parsing, formatting and validating international phone numbers.
https://pub.dev/packages/phone_number
BSD 3-Clause "New" or "Revised" License
81 stars 63 forks source link

MissingPluginException(No implementation found for method validate on channel com.julienvignali/phone_number) #96

Closed marcogermani87 closed 1 year ago

marcogermani87 commented 1 year ago

When use await PhoneNumberUtil().validate on windows platform:

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method validate on channel com.julienvignali/phone_number)

0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:294:7)

#1 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:499:43) #2 PhoneNumberUtil.validate (package:phone_number/src/phone_number_util.dart:109:20) #3 _MyHomePageState.createClipboardListener.. (package:clip_to_call/main.dart:137:28) _Originally posted by @necrox87 in https://github.com/flutter-form-builder-ecosystem/phone_number/issues/89#issuecomment-1422848921_
deandreamatias commented 1 year ago

This package currently don't support Windows platform. Only Android and iOS. Your report is a expected error Screenshot 2023-02-09 at 08 58 20

Please feel free to implement windows plugin and open a PR with this nice feature