chore: fix Flutter baseline checks
This commit is contained in:
@@ -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> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user