nepal_administrative_division 0.0.1 copy "nepal_administrative_division: ^0.0.1" to clipboard
nepal_administrative_division: ^0.0.1 copied to clipboard

A package that can be used to get the administrative level dropdown of Nepal

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nepal_administrative_division/enums.dart';
import 'package:nepal_administrative_division/nepal_administrative_division.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Material App Bar'),
        ),
        body: Column(
          children: [
            
            const NepalAdminstrativeArea(
              areaType: AreaType.province,
            ),
            const NepalAdminstrativeArea(
              areaType: AreaType.district,
            ),
            const NepalAdminstrativeArea(
              areaType: AreaType.localLevel,
            ),
            NepalAdminstrativeArea(
              provinceLabel: "state",
              useNepaliText: true,
              ontap: (value, areatype) {
                debugPrint(value);
                debugPrint(areatype.toString());
              },
            ),
          ],
        ),
      ),
    );
  }
}
14
likes
0
pub points
64%
popularity

Publisher

verified publisheraakashghimire.com.np

A package that can be used to get the administrative level dropdown of Nepal

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on nepal_administrative_division