title: flutter countdown timer running until it runs out
body: <p>I'm working to do a simple countdown and it works great</p>
  <p>but the problem is that when I switch to another page, the countdown counter does not continue from where it left off.</p>
  <p>eg I initialize the counter: 10 , 9, 8 ...</p>
  <p>the page changes and the counter starts again at 10</p>
  <p>here is my code</p>
  <pre><code>My package: import 'package:circular_countdown_timer/circular_countdown_timer.dart';
  
  class _CircularTimerState extends State&lt;CircularTimer&gt; {
    final CountDownController controller = CountDownController();
  
    @override
    void initState() {
      super.initState();
      
    }
  
    void miningCounter() {
      controller.start();
      final user = context.read&lt;FirebaseAuthMethods&gt;().user;
  
      dbRef.child(user.uid).child('miningEndTime').set(endTime);
    }
  
  
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: const Text('Circular Timer'),
          backgroundColor: primaryMaterialColor,
        ),
        body: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            // Countdown Start Button
            CustomMiningButton(
              icon: Icons.start,
              onTap: miningCounter,
            ),
  
            CircularCountDownTimer(
              duration: 10,
              initialDuration: 0,
              controller: controller,
              width: MediaQuery.of(context).size.width * 0.2,
              height: MediaQuery.of(context).size.height * 0.2,
              autoStart: false,
            ),
          ],
        ),
      );
    }
  }
  </code></pre>