wip
This commit is contained in:
parent
1650fb8751
commit
810f787b38
|
@ -1,3 +1,5 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:cached_network_image/cached_network_image.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
|
@ -35,8 +37,9 @@ class _LocalProfileComponentWidgetState
|
|||
_model.setOnUpdate(onUpdate: () => setState(() {}));
|
||||
_model.setStateCallback = () => safeSetState(() {});
|
||||
//
|
||||
WidgetsBinding.instance
|
||||
.addPostFrameCallback((_) async => await LocalizationService.processLocals(context).then((value) => value == true ? onUpdate() : null));
|
||||
// WidgetsBinding.instance
|
||||
// .addPostFrameCallback((_) async => await LocalizationService.processLocals(context).then((value) => value == true ? onUpdate() : null));
|
||||
LocalizationService.processLocals(context).then((value) => value == true ? onUpdate() : null);
|
||||
|
||||
}
|
||||
|
||||
|
@ -48,6 +51,7 @@ class _LocalProfileComponentWidgetState
|
|||
}
|
||||
|
||||
void onUpdate() {
|
||||
log('() => onUpdate()');
|
||||
safeSetState(() {
|
||||
_model.getData();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue