Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

General: MTN Uganda Number prefix #109

Open
3 of 7 tasks
ismailasega opened this issue Jul 30, 2023 · 0 comments
Open
3 of 7 tasks

General: MTN Uganda Number prefix #109

ismailasega opened this issue Jul 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ismailasega
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Package/Plugin version

2.0.1

Platforms

  • Android
  • iOS
  • Linux
  • MacOS
  • Web
  • Windows

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

  1. Select Country - Uganda
  2. input phone number - 765xxxxxx

Aditional information

No response

@ismailasega ismailasega added the bug Something isn't working label Jul 30, 2023
@ismailasega ismailasega changed the title [Field name or General]: <title>MTN Uganda Number prefix General: MTN Uganda Number prefix Jul 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant