Comments (2)
@flikkr Hi, I made a pull request to solve this problem, and added a lot of customization
Here a case use of my repo, you can check
CountryListPick(
appBar: AppBar(
// create your own appBar, default appBar(blue, centerTitle)
),
pickerBuilder: (context, CountryCode countryCode) {
// create your own picker, the default is countryflag, country name, keyboard_arrow_down
return Row(
children: [
Image.asset(
countryCode.flagUri,
package: 'country_list_pick', // do not forget this
),
Text(countryCode.code),
Text(countryCode.dialCode),
],
);
},
theme: CountryTheme(
// create your own theme customization, check CountryTheme class for more details
isShowFlag: true,
isShowTitle: true,
isShowCode: true,
isDownIcon: true,
showEnglishName: true,
),
initialSelection: '+62',
onChanged: (CountryCode code) {
print(code.name);
print(code.code);
print(code.dialCode);
print(code.flagUri);
},
),
Hope to help,
You can use this by adding this line in your pubspec.yaml
country_list_pick:
git: https://github.com/jpainam/country-list-pick.git
from country-list-pick.
Nice library, need to update the alphabet sidebar while scrolling.
from country-list-pick.
Related Issues (20)
- Feature request: Localization countries name HOT 1
- Initial dial code HOT 2
- Placeholder string
- Refactor code HOT 1
- Method not found: 'ButtonTheme.bar' Error appear after upgrading to flutter v2 HOT 1
- How to set empty value? HOT 1
- Width widget HOT 2
- dark mode support? HOT 2
- "Last Pick" & "Search" text color HOT 4
- [Feature Request] Last Picked Country Builder
- Can we use country names in different languages, there is only English language or?
- There are not all country in list picker not useful. HOT 1
- Validator
- RangeError (index): Invalid value: Not in inclusive range (iOS)
- No country if not selected, instead of Afganistan HOT 1
- country cannot be selected when you use the pickerBuilder and countryBuilder paramters together. HOT 2
- Please, support dark mode
- Change name of country
- unexcepted margin in "CountryListPick" widgets.
- unable to customize picklist text search field color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from country-list-pick.