Procházet zdrojové kódy

Increase the frequency at which the progress bar is refreshed

vishnukvmd před 2 roky
rodič
revize
082500c3d1
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      lib/ui/code_widget.dart

+ 2 - 1
lib/ui/code_widget.dart

@@ -27,7 +27,8 @@ class _CodeWidgetState extends State<CodeWidget> {
   void initState() {
   void initState() {
     super.initState();
     super.initState();
     _updateTimeRemaining();
     _updateTimeRemaining();
-    _everySecondTimer = Timer.periodic(const Duration(seconds: 1), (Timer t) {
+    _everySecondTimer =
+        Timer.periodic(const Duration(milliseconds: 200), (Timer t) {
       setState(() {
       setState(() {
         _updateTimeRemaining();
         _updateTimeRemaining();
       });
       });