This repository was archived by the owner on Jan 27, 2024. It is now read-only.
Description Is there an existing issue for this?
Package/Plugin version
2.0.1
Platforms
Flutter doctor
Flutter doctor
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.1 22C65 darwin-x64, locale en-GB)
• Flutter version 3.3.9 on channel stable at /Users/asega/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b8f7f1f986 (8 months ago), 2022-11-23 06:43:51 +0900
• Engine revision 8f2221fbef
• Dart version 2.18.5
• DevTools version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/asega/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14B47b
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[✓] VS Code (version 1.80.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.68.0
[✓] Connected device (3 available)
• iPhone 14 Pro Max (mobile) • 7FE96E0B-7D21-43B4-9C73-54B5FC5B1800 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)
• macOS (desktop) • macos • darwin-x64 • macOS 13.1 22C65 darwin-x64
• Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.114
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Minimal code example
Code sample
// Validation is based on input filed
phoneNumber = phoneController.text;
String validPhoneNumber = '${widget.selectedCountryCode}$phoneNumber';
RegionInfo region = RegionInfo(
name: widget.selectedCountry,
code: widget.countryCode,
prefix: int.parse(widget.selectedCountryCode));
bool isValid =
await plugin.validate(validPhoneNumber, regionCode: region.code);
setState(() {
if (isValid == true) {
//Sets button active for user to proceed ,
phoneInputStatus = true;
} else {
phoneInputStatus = false;
}
});
Current Behavior
My button does not become active for use to proceed as the "765" prefix is missing for MTN Uganda numbers
Expected Behavior
On inputing the correct format "765xxxxxx" the button is set to active for user to proceed.
Steps To Reproduce
Select Country - Uganda
input phone number - 765xxxxxx
Aditional information
No response
Reactions are currently unavailable
Is there an existing issue for this?
Package/Plugin version
2.0.1
Platforms
Flutter doctor
Flutter doctor
Minimal code example
Code sample
Current Behavior
My button does not become active for use to proceed as the "765" prefix is missing for MTN Uganda numbers
Expected Behavior
On inputing the correct format "765xxxxxx" the button is set to active for user to proceed.
Steps To Reproduce
Aditional information
No response