title: why can i get my initstate recalled whenever the class is recalled by the refresher class?
body: <p>Appreciate your time,so in this code i included the print statements to see what is going on....   </p>
  
  <pre><code>import 'package:flutter/material.dart';
  import 'dart:convert';
  import 'package:http/http.dart' as http;
  import 'dart:async';
  
  void main() {
    return runApp(
      Refresher(),
    );
  }
  
  class Refresher extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() {
      return _RefresherState();
    }
  }
  
  class _RefresherState extends State&lt;Refresher&gt; {
    Timer timer;
    @override
    void initState() {
      super.initState();
      timer = Timer.periodic(
        Duration(hours: 24),
        (t) =&gt; setState(() {}),
      );
    }
    @override
    void dispose() {
      timer.cancel();
      super.dispose();
    }
  
    @override
    Widget build(BuildContext context) {
      print('im the refresher');
      return ScreenTimer();
    }
  }
  
  class ScreenTimer extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() {
      return _ScreenTimerState();
    }
  }
  class _ScreenTimerState extends State&lt;ScreenTimer&gt; {
    _ScreenTimerState(){
      print('state called');
    }
    Timer timer;
    Future&lt;List&lt;String&gt;&gt; runningShow;
  
    @override
    void initState() {
      super.initState();
      // Reset urls every 24hrs
      print('im screen timer ');
      runningShow = _getScreen1();
      timer = Timer.periodic(
        Duration(seconds: 30),
        (t) =&gt; setState(
          () {},
        ),
      );
    }
  
    @override
    void dispose() {
      timer.cancel();
      super.dispose();
    }
  }
  </code></pre>
  
  <p>This is my output</p>
  
  <pre><code>I/flutter ( 4584): im the refresher
  I/flutter ( 4584): state called
  I/flutter ( 4584): im screen timer
  I/Choreographer( 4584): The application may be doing too much work on its main thread.
  I/flutter ( 4584): im the refresher
  I/flutter ( 4584): im the refresher
  </code></pre>
  
  <p>Is there a way i can get the initstate called again each time the class  is recalled?because i need the _getscreen(//this function checks database for any changes) recalled after 24hrs...</p>