Code Monkey home page Code Monkey logo

weblineindia / flutter-country-picker Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 1.0 1.12 MB

A reusable component in Flutter which provides country picker with custom dialogue which can be used in any application.

Home Page: https://www.weblineindia.com/software-development-resources.html

License: MIT License

Kotlin 0.78% Swift 2.33% Objective-C 0.22% Dart 96.67%
flutter flutter-demo flutter-components flutter-examples flutter-plugin reusable-components flutter-library flutter-country-picker country-picker countrycodepicker flutter-custom-dialog flutter-custom-dialog-box country-dropdownlist custom-dialogue

flutter-country-picker's Introduction

Flutter - Country Picker Component

A reusable component in Flutter which provides country picker with custom dialogue which can be used in any application.

Table of contents

Flutter Support

Version - Flutter 1.17(stable)

We have tested our program in above version, however you can use it in other versions as well.

Demo


Features

  • Provides Country Picker with country flag, country name and dial code.
  • Customizable header as per requirements.

Getting started

  • Download this sample project and import CountryPicker Widget file in your Flutter App.
  • Update Header, Title based on your requirements.

Usage

Setup process is described below to integrate in project.

Configure Country Picker in your widget by following below method steps

Methods

Step 1. Create your Statefull or Stateless Widget

Step 2. Add Country Picker Widget

// Put CountryPicker Widget
CountryPicker(
    callBackFunction: _callBackFunction
);
   
// Create callback function 
void _callBackFunction(String name, String dialCode, String flag) {
    // place your code
}

Step 3. Pass header text if you want to change otherwise skip it

headerText: 'Select Country',

Step 4. Pass header background color if you want to change otherwise skip it

headerBackgroundColor: Colors.black 

Step 5. Pass header text color if you want to change otherwise skip it

headerTextColor: Colors.white

Want to Contribute?

  • Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
  • Fork it.
  • Create new branch to contribute your changes.
  • Commit all your changes to your branch.
  • Submit a pull request.

Need Help?

If you need any help then please contact our Flutter developers.


Collection of Components

We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.


Changelog

Detailed changes for each release are documented in CHANGELOG.

License

MIT

Keywords

Flutter Country Picker, Country Picker, Picker, Country Dialogue, Custom Dialogue , Weblineindia

flutter-country-picker's People

Contributors

partners-wli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.