Skip to content

Commit

Permalink
fix cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Mar 11, 2024
1 parent b336c6c commit 2df5635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:async';
import 'dart:html' as html show window;

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
Expand Down Expand Up @@ -145,10 +146,9 @@ class HomePageState extends State<HomePage> {
void updateData() async {
await emptyCache();

// if (context.mounted) {
context.read<AppCubit>().empty();
html.window.location.reload();
Navigator.pop(context);
// }
}

Future<void> emptyCache() async {
Expand Down

0 comments on commit 2df5635

Please sign in to comment.