Kod: Tümünü seç
import 'package:shared_preferences/shared_preferences.dart';
Future<SharedPreferences> _prefs = SharedPreferences.getInstance();
String country = '';
@override
void initState() {
initStateCustome().then((_) {
setState((){});
});
super.initState();
}
Future initStateCustome() async {
SharedPreferences prefs = await _prefs;
country = prefs.getString('country');
}