A Flutter package that provides a county picker for selecting Kenyan counties in your app. .
Features
- County Picker
- Customizable UI
- Support for All Kenyan Counties
- Easy Integration
- Cross-Platform Support
Getting started
Prerequisites
Before you begin, ensure you have met the following requirements:
- Flutter SDK installed on your machine. See official Flutter installation guide for instructions.
import 'package:kenya_counties/kenya_counties.dart';
Installation
To use this package, add kenya_counties
as a dependency in your pubspec.yaml
file.
Usage
CountySearchField(
onCountySelected: (selectedCounty) {
setState(() {
id = selectedCounty['index'].toString();
name = selectedCounty['name'];
});
},
),