international_phone_text_field 0.0.1+6 copy "international_phone_text_field: ^0.0.1+6" to clipboard
international_phone_text_field: ^0.0.1+6 copied to clipboard

A Flutter package for international phone field with country code.

example/lib/main.dart

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

void main() {
  runApp(
    MaterialApp(
      home: MyApp(),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('International Phone Text Field Example'),
      ),
      body: Padding(
        padding: const EdgeInsets.all(16),
        child: Column(
          children: [
            /// InternationalPhoneTextField widget
            /// with onChanged callback
            InternationalPhoneTextField(
              onChanged: (number) {},

              /// control the style of the text
              /// default is false
              inOneLine: true,
            ),
          ],
        ),
      ),
    );
  }
}
15
likes
140
points
6
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package for international phone field with country code.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

bloc, cupertino_icons, equatable, flutter, flutter_bloc, formz, mask_text_input_formatter

More

Packages that depend on international_phone_text_field