via_cep_flutter 0.2.2 copy "via_cep_flutter: ^0.2.2" to clipboard
via_cep_flutter: ^0.2.2 copied to clipboard

Pacote para fazer uso da API ViaCEP em Flutter

example/main.dart

import 'package:via_cep_flutter/via_cep_flutter.dart';

Future<void> main() async {
  final result = await readAddressByCep('31330-555');

  if (result.isEmpty) return;

  print(result['city']);
  print(result['cep']);
  print(result['neighborhood']);
  print(result['state']);
  print(result['street']);
}
10
likes
110
pub points
71%
popularity

Publisher

unverified uploader

Pacote para fazer uso da API ViaCEP em Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http, xml2json

More

Packages that depend on via_cep_flutter