phonenumbers 0.0.5 copy "phonenumbers: ^0.0.5" to clipboard
phonenumbers: ^0.0.5 copied to clipboard

outdated

Phone number validation and input widget written in pure dart without any native dependency

example/lib/main.dart

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
        brightness: Brightness.dark,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: Text('Phone Number Input'),
        ),
        body: Padding(
          padding: const EdgeInsets.all(24),
          child: PhoneNumberField(
            controller: PhoneNumberEditingController.countryCode('AZ'),
            decoration: InputDecoration(border: OutlineInputBorder()),
          ),
        ),
      ),
    );
  }
}
21
likes
0
pub points
80%
popularity

Publisher

unverified uploader

Phone number validation and input widget written in pure dart without any native dependency

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on phonenumbers