This commit is contained in:
Felipe
2024-10-25 21:35:21 -05:00
parent d575ca9244
commit 721111ea31
7 changed files with 35 additions and 55 deletions
+6 -6
View File
@@ -46,6 +46,12 @@ class _UserServiceScreenState extends State<UserServiceScreen> {
super.dispose();
}
void _startTimer() {
_timer = Timer.periodic(const Duration(minutes: 5), (timer) {
setState(() {});
});
}
void _loadSettings() {
settingRepository.getSettings().then(
(value) => setState(() {
@@ -54,12 +60,6 @@ class _UserServiceScreenState extends State<UserServiceScreen> {
);
}
void _startTimer() {
_timer = Timer.periodic(const Duration(minutes: 5), (timer) {
setState(() {});
});
}
@override
Widget build(BuildContext context) {
return BlocProvider<ServiceBloc>(