Skip to content

Commit

Permalink
chore(flutter_weather): update HydratedStorage build
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jan 4, 2025
1 parent 324dfea commit 78cc8e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/flutter_weather/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ void main() async {
Bloc.observer = const WeatherBlocObserver();
HydratedBloc.storage = await HydratedStorage.build(
storageDirectory: kIsWeb
? HydratedStorage.webStorageDirectory
: await getTemporaryDirectory(),
? HydratedStorageDirectory.web
: HydratedStorageDirectory((await getTemporaryDirectory()).path),
);
runApp(WeatherApp(weatherRepository: WeatherRepository()));
}

0 comments on commit 78cc8e4

Please sign in to comment.