world_countries 0.2.1 copy "world_countries: ^0.2.1" to clipboard
world_countries: ^0.2.1 copied to clipboard

Sealed world data in form of Flutter widgets (country, phone, currency pickers, etc.).

example/lib/main.dart

import "package:flutter/foundation.dart";
import "package:flutter/widgets.dart";
import "package:world_countries/world_countries.dart";

import "my_app.dart";

Future<void> main() async {
  const serbia = CountrySrb();
  final countryCode = PlatformDispatcher.instance.locale.countryCode;
  final country = WorldCountry.maybeFromValue(
    countryCode ?? serbia.codeShort,
    where: (expectedCountry) => expectedCountry.codeShort,
  );

  return runApp(MyApp(country: country ?? serbia));
}
10
likes
0
pub points
78%
popularity

Publisher

verified publishertsin.is

Sealed world data in form of Flutter widgets (country, phone, currency pickers, etc.).

Repository (GitHub)
View/report issues

Topics

#picker #pickers #country-picker #country-selector #currency-picker

License

unknown (LICENSE)

Dependencies

flutter, sealed_countries

More

Packages that depend on world_countries