telephone_check 0.0.4 copy "telephone_check: ^0.0.4" to clipboard
telephone_check: ^0.0.4 copied to clipboard

This package will help you to validate if a telephone number is well written.

example/main.dart

import 'package:flutter/material.dart';
import 'package:telephone_check/telephone_check.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var validTelefone = telephoneCheck('+18095563254');
    String resultString = '';

    if (validTelefone) {
      resultString = 'Valid :)';
    } else {
      resultString = 'Not Valid :(';
    }

    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: Container(
            child: Text('Hello the number is: $resultString'),
          ),
        ),
      ),
    );
  }
}
2
likes
120
pub points
16%
popularity

Publisher

unverified uploader

This package will help you to validate if a telephone number is well written.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on telephone_check