chore: fix Flutter baseline checks

This commit is contained in:
Artem Kokos
2026-04-22 21:08:02 +07:00
parent 8198ea09ae
commit ffc2ea1544
12 changed files with 68 additions and 54 deletions

View File

@@ -15,15 +15,18 @@ class HomesScreen extends ConsumerStatefulWidget {
}
class _HomesScreenState extends ConsumerState<HomesScreen> {
late final UserLocationNotifier _userLocationNotifier;
@override
void initState() {
super.initState();
Future.microtask(() => ref.read(userLocationProvider.notifier).startWatching());
_userLocationNotifier = ref.read(userLocationProvider.notifier);
Future.microtask(() => _userLocationNotifier.startWatching());
}
@override
void dispose() {
ref.read(userLocationProvider.notifier).stopWatching();
_userLocationNotifier.stopWatching();
super.dispose();
}
@@ -200,4 +203,4 @@ class _HomesScreenState extends ConsumerState<HomesScreen> {
),
);
}
}
}