title: How to show CircularProgressIndicator for 3 seconds in flutter
body: <p>is it possible to wrap my CircularProgressIndicator using Timer... I want to show my CircularProgressIndicator for 3 seconds, but I don't know how to do it... most of resource that I have read is wrapping a function that consist of CircularProgressIndicator inside Timer.. here is my code</p>
  
  <pre><code>Future getData() async {
      SharedPreferences prefs = await SharedPreferences.getInstance();
      String dataIn = prefs.getString("clockin");
      return dataIn;
    }
  
  Widget defaultClock() {
      return FutureBuilder(
        future: getData(),
        builder: (context, snap) {
          if (snap.hasData) {
            return Text(snap.data);
          } else {
            return CircularProgressIndicator();
          }
        },
      );
    }
  </code></pre>