title: Get value from SharedPreferences without future builder
body: <p>I need to get one stored value from shared preferences and put it into text widget. How can I do this without a future builder?</p>
  <pre><code>_currPage() async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    int page = prefs.getInt('currPage') ?? 0;
    return page;
  }
  </code></pre>
  <pre><code>class _AllTasksPageState extends State&lt;AllTasksPage&gt; {
    @override
    Widget build(BuildContext context) {
    ...
    Text(_currPage()); //not working
    ...
    }
  }
  </code></pre>