awesome_location_picker 0.0.5 copy "awesome_location_picker: ^0.0.5" to clipboard
awesome_location_picker: ^0.0.5 copied to clipboard

The best Flutter package for picking Country, State, and City with cascading dropdowns. Powerful, customizable, and easy to integrate.

example/lib/main.dart

import 'package:awesome_location_picker/awesome_location_picker.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: Home(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("Awesome Location Picker")),
      body: AwesomeLocationPicker(
        onChanged: (country, state, city) {
          debugPrint(
            'Selected fields are :- ${country.name}, ${state.name}, ${city.name}',
          );
        },
        borderColor: Colors.black54,
      ),
    );
  }
}
1
likes
135
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

The best Flutter package for picking Country, State, and City with cascading dropdowns. Powerful, customizable, and easy to integrate.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on awesome_location_picker