MHosssam
Committed by GitHub

change updateLocale to future

... ... @@ -1055,9 +1055,9 @@ you can only use widgets and widget functions here''';
}
}
void updateLocale(Locale l) {
Future<void> updateLocale(Locale l) async {
Get.locale = l;
forceAppUpdate();
await forceAppUpdate();
}
/// As a rule, Flutter knows which widget to update,
... ... @@ -1073,8 +1073,8 @@ you can only use widgets and widget functions here''';
/// reconstruct the application from the sketch, use this with caution.
/// Your entire application will be rebuilt, and touch events will not
/// work until the end of rendering.
void forceAppUpdate() {
engine!.performReassemble();
Future<void> forceAppUpdate() async {
await engine!.performReassemble();
}
void appUpdate() => _getxController.update();
... ...