philippines_rpcmb 0.0.3 copy "philippines_rpcmb: ^0.0.3" to clipboard
philippines_rpcmb: ^0.0.3 copied to clipboard

A Flutter widgets that show List of Philippine Regions, Provinces, Cities, Municipalities, and Barangays

A Flutter widgets that show List of Philippine Regions, Provinces, Cities, Municipalities, and Barangays

Usage #

Please check /example folder.

Philippine Regions can be access directly via

import 'package:philippines_rpcmb/philippines_rpcmb.dart';

philippineRegions;

Display dropdown list of Philippine regions

PhilippineRegionDropdownView(
    onChanged: (Region? value) {
        setState(() {
        if (region != value) {
            province = null;
            municipality = null;
            barangay = null;
        }
        region = value;
        });
    },
    value: region,
    )

Province

  PhilippineProvinceDropdownView(
    provinces: region?.provinces ?? [],
    onChanged: (Province? value) {
    setState(() {
        if (province != value) {
        municipality = null;
        barangay = null;
        }
        province = value;
    });
    },
    value: province,
)

Municipalities

 PhilippineMunicipalityDropdownView(
    municipalities: province?.municipalities ?? [],
    onChanged: (value) {
        setState(() {
        if (municipality != value) {
            barangay = null;
        }
        municipality = value;
        });
    },
    value: municipality,
)

Barangays

 PhilippineBarangayDropdownView(
    barangays: municipality?.barangays ?? [],
    onChanged: (value) {
    setState(() {
        barangay = value;
    });
})

7
likes
120
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widgets that show List of Philippine Regions, Provinces, Cities, Municipalities, and Barangays

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, freezed_annotation, json_annotation

More

Packages that depend on philippines_rpcmb