add proper logging

This commit is contained in:
shenlong-tanwen
2024-08-21 23:43:48 +05:30
parent 1631df70e9
commit 75448ce56b
37 changed files with 923 additions and 224 deletions
@@ -15,7 +15,7 @@ class ImLoadingIndicator extends StatelessWidget {
width: dimension ?? 24,
height: dimension ?? 24,
child: FittedBox(
child: CircularProgressIndicator(strokeWidth: strokeWidth ?? 2),
child: CircularProgressIndicator(strokeWidth: strokeWidth ?? 4),
),
);
}
@@ -48,8 +48,13 @@ class _ImSwitchListTileState<T> extends State<ImSwitchListTile<T>> {
@override
void initState() {
super.initState();
final value = _appSettingService.getSetting(widget.setting);
isEnabled = T != bool ? widget.fromAppSetting!(value) : value as bool;
_appSettingService.getSetting(widget.setting).then((value) {
if (context.mounted) {
setState(() {
isEnabled = T != bool ? widget.fromAppSetting!(value) : value as bool;
});
}
});
}
@override