starlight_country_picker is a country picker.

Overview

Starlight Country Picker

starlight_country_picker is a country picker.

Features

☑️ Add New Country
☑️ Search Your Country
Our package was not used setState ❤️

Watch the video

Installation

Add starlight_country_picker as dependency to your pubspec file.

starlight_country_picker: 
    git:
      url: https://github.com/YeMyoAung/starlight_country_picker.git

Usage

First of all you need to import our package.

import 'package:starlight_country_picker/country_picker.dart';

Country Picker

The Starlight Country Picker is used as any other dialog function.

import 'package:flutter/material.dart';
import 'package:starlight_country_picker/country_picker.dart';

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return  ElevatedButton(
        onPressed: () async {
          final Country? _country = await countryPicker(
                        context,///required
                        selectedColor: Colors.green,///optional
                        unSelectedColor: Colors.black,///optional
                        supportedCountry: [],///optional
                        addNewSupportedCountry: [],///optional
                        width: 100,///optional
                        height: 100,///optional
                        backgroundColor: Colors.white,///optional
                        hintStyle: TextStyle(),///optional
                        barrierDismissible: true,///optional
                        barrierColor: Colors.black54,///optional
                    );
          print(_country.toString());
        },
        child: const Text(
          "Country Picker",
          style: TextStyle(
            fontSize: 18,
            fontWeight: FontWeight.bold,
          ),
        ),
    );
  }
}

Country Model

const Country country =  Country(dialCode: '+95',name: 'Myanmar',flag: '🇲🇲');

Contact Us

Starlight Studio

You might also like...

Flutter Number Picker is a custom widget designed for choosing an integer or decimal number by using add and minus buttons

Flutter Number Picker is a custom widget designed for choosing an integer or decimal number by using add and minus buttons

Flutter Number Picker is a custom widget designed for choosing an integer or decimal number by using add and minus buttons. Getting Started Head to /p

Jul 4, 2022

Flutter Color Picker Wheel - an easy to use widget which can be heavily customized

Flutter Color Picker Wheel  - an easy to use widget which can be heavily customized

Flutter Color Picker Wheel Flutter Color Picker Wheel is an easy to use widget which can be heavily customized. You can use the WheelColorPicker direc

Oct 4, 2022

This Country Selector UI Library written by Dart and Fluter and supports three locales with country's name, achieves lazy loading, and country card animation on listview

This Country Selector UI Library written by Dart and Fluter and supports three locales with country's name, achieves lazy loading, and country card animation on listview

Country Selector Widget This Country Selector Widget UI Library written by Dart and Fluter and supports three locales with country's name, achieves la

Nov 15, 2022

A Flutter Country Picker Widget with support to country dialing codes

A Flutter Country Picker Widget with support to country dialing codes

flutter_country_picker A Flutter Country Picker Widget with support to country dialing codes Usage Add the CountryPicker widget in your layout and use

Apr 6, 2022

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.

A flutter package to display a country, states, and cities. In addition it gives the possibility to select a list of countries, States and Cities depends on Selected, also you can search country, state, and city all around the world.

Dec 20, 2022

A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.

A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.

A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.

Jun 7, 2022

A Dart package that provides a customizable country phone code picker for your Flutter application

A Dart package that provides a customizable country phone code picker for your Flutter application

A Flutter package that provides an easy and customizable country phone code picker widget! Features This package comes with a lot of customization all

Oct 1, 2022

The official country code picker from Tellurium by Quadren. Designed with our in-house Aurum design system.

The official country code picker from Tellurium by Quadren. Designed with our in-house Aurum design system. Features Supports searching for country co

Aug 9, 2022

Google places picker plugin for flutter. Opens up the google places picker on ios and android returning the chosen place back to the flutter app.

flutter_places_dialog Shows a places picker dialog in ios and android, returning the data in the places picker to the app. Getting Started Generate yo

Dec 6, 2022

Color picker for Flutter, based on the Google Docs color picker.

Color picker for Flutter, based on the Google Docs color picker.

Material ColorPicker Color picker for Flutter, based on the Google Docs color picker. Getting Started You can embed into your material app or use it o

Oct 30, 2022

A flutter date time picker inspired by flutter-cupertino-date-picker

A flutter date time picker inspired by flutter-cupertino-date-picker

Flutter Datetime Picker (Pub) flutter_datetime_picker A flutter date time picker inspired by flutter-cupertino-date-picker you can choose date / time

Nov 30, 2021

A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker.

📆 A persian (farsi,shamsi) datetime picker for flutter, inspired by material datetime picker. Persian datetime picker inspired by material datetime p

Dec 19, 2022

Nepali date picker - Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support

Nepali date picker - Material Style Date Picker with Bikram Sambat(Nepali) Calendar Support

Nepali Date Picker + Calendar Material and Cupertino Styled Date Picker, Date Range Picker and Calendar with Bikram Sambat(Nepali) Support. Nepali Dat

Jan 3, 2023

Flutter color picker - A color picker for your flutter app

Flutter color picker - A color picker for your flutter app

flutter_hsvcolor_picker A HSV color picker for your flutter app. RGB HSV Wheel Hue Saturation Values. Getting Started Installation https://pub.dev/pac

Dec 8, 2022

Datetime picker formfield - A Flutter widget that wraps a TextFormField and integrates the date and/or time picker dialogs.

Datetime picker formfield - A Flutter widget that wraps a TextFormField and integrates the date and/or time picker dialogs.

DateTimeField A TextFormField that emits DateTimes and helps show Material, Cupertino, and other style picker dialogs. Example See the example tab (ex

Dec 1, 2022

Form builder image picker - Form builder image picker for flutter

form_builder_image_picker Field for picking image(s) from Gallery or Camera for

Jan 28, 2022

An app which shows the total number of covid cases, recovered, etc. As well as of particular country too.

An app which shows the total number of covid cases, recovered, etc. As well as of particular country too.

covid_app Images of Project A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get

Oct 18, 2021

Validating numbers and providing necessary detail base on selected country

Validating numbers and providing necessary detail base on selected country

international_phone_field 🌎 Validating numbers and providing necessary detail base on selected country 😃 . The pacakge comes with enough detail abou

Jun 30, 2022

A flutter package for showing a country code selector.

A flutter package for showing a country code selector.

country_code_picker A flutter package for showing a country code selector. It supports i18n for 70 languages. Check the example on web! https://imtoor

Jan 5, 2023
Owner
Ye Myo Aung
Programming is my passion.
Ye Myo Aung
A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.

A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.

null 6 Jun 7, 2022
A flutter package to select a country from a list of countries.

Country picker A flutter package to select a country from a list of countries. Getting Started Add the package to your pubspec.yaml: country_picker: ^

Daniel Ioannou 60 Dec 30, 2022
An assets picker in WeChat style, support multi assets picking.

An assets picker in WeChat style, support multi assets picking.

FlutterCandies 1.1k Jan 8, 2023
A flutter horizontal date picker that always shift the selected date to center.

horizontal_center_date_picker A flutter widget provides a horizontal date picker and always aligns selected date in center of the widget. Usage This s

May Lau 5 Jul 2, 2022
A flutter package for displaying common picker dialogs.

Flutter Material Pickers A flutter package containing commonly used material design picker dialogs. Some are new, some wrap existing or built in picke

CodeGrue 89 Jan 2, 2023
A camera picker in WeChat style.

A camera picker which is an extension for wechat_assets_picker. Based on camera for camera functions and photo_manager for asset implementation.

FlutterCandies 265 Dec 28, 2022
A time picker widget for flutter

time_picker A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Ramon Alex 4 Dec 3, 2022
Flutter picker plugin

flutter_picker Flutter plugin picker. Include NumberPicker, DateTimePicker, ArrayPicker, and default linkage Picker. Provide flexible parameters to me

null 614 Dec 23, 2022
Ejimo - Comprehensive emoji and symbol picker.

Ejimo Find and copy unicode characters, emoticons, glyphs and symbols with Ejimo. Ejimo is a comprehensive emoji and symbol piker that puts every char

null 20 Dec 19, 2022
A beautiful circle color picker for flutter.

A beautiful circle color picker for flutter.

Takeshi Tsukamoto 46 Dec 29, 2022