Uzyskaj kraj użytkownika automatycznie trzepot

import 'dart:io' show Platform;
String localeName = Platform.localeName;
//output language_countryname => en_us
OR
geolocator: ^5.1.1
geocoder: ^0.2.1
Future<String> getCountryName() async {
    Position position = await Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.high);
    debugPrint('location: ${position.latitude}');
    final coordinates = new Coordinates(position.latitude, position.longitude);
    var addresses = await Geocoder.local.findAddressesFromCoordinates(coordinates);
    var first = addresses.first;
    return first.countryName; // this will return country name
}

Defeated Dotterel