dropdown_cidades 0.0.2 copy "dropdown_cidades: ^0.0.2" to clipboard
dropdown_cidades: ^0.0.2 copied to clipboard

Um drowpdow das cidades brasileiras, vou usar em alguns projetos achei útil compatilhar com vocês

example/lib/main.dart

import 'package:dropdown_cidades/app/widgets/dropdown_cidades.widget.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: ExamplePage(),
    );
  }
}

class ExamplePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Dropdonw cidades example'),
      ),
      body: Center(
        child: SizedBox(
          child: DropdownCidades(
            onChangedCity: (value) {
              print('A cidade selecionada é: $value');
            },
            onChangedState: (value) {
              print('O Estado selecionada é: $value');
            },
          ),
        ),
      ),
    );
  }
}
3
likes
40
pub points
0%
popularity

Publisher

verified publishercristianodev.tk

Um drowpdow das cidades brasileiras, vou usar em alguns projetos achei útil compatilhar com vocês

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dropdown_cidades