0

I have an exam with a timer inside a widget I want to prevent users from reloading or show a confirmation dialog

Abdelrahman Tareq
  • 1,874
  • 3
  • 17
  • 32

1 Answers1

0

I didn't find a solution but I found that I can excute some code before reloading:

import 'dart:html' as html;
html.window.onUnload.listen((event) async {
  print('Reloaded');
  
});
Abdelrahman Tareq
  • 1,874
  • 3
  • 17
  • 32