updateForce static method
void
updateForce(
- dynamic context
Implementation
static void updateForce(context) {
showDialog(
barrierDismissible: false,
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Uygulama Güncelleme'),
content: const Text(
'Uygulama desteği kesildi. Lütfen güncelleme yapınız.'),
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
if (ARMOYU.devicePlatform == "Android") {
ARMOYUFunctions.openPlayStore();
} else {
ARMOYUFunctions.openAppStore();
}
},
child: const Text('Güncelle'),
),
],
);
},
);
}