title: FutureBuilder snapshot Data does not return anything , Why?
body: <p>Trying to get stored data by SharedPreferences But does not work ..</p>
  
  <p>my main.dart :</p>
  
  <pre><code>  Widget build(BuildContext context) {
      return StreamProvider&lt;User&gt;.value(
        value: AuthService().user,
        child: FutureBuilder&lt;String&gt;(
          future: SaadConstants.setValueFromLocal('app_lang','ar'),
          builder: (BuildContext context, AsyncSnapshot&lt;String&gt; snapshot){
            return MaterialApp(
              debugShowCheckedModeBanner: false,
              home: Scaffold(
                body:Wrapper(),
              ),
            );
          }
        ),
      );
    }
  </code></pre>
  
  <p>my wrapper :</p>
  
  <pre><code>@override
    Widget build(BuildContext context) {
  
      final user = Provider.of&lt;User&gt;(context);
      if (user==null) {
        return FutureBuilder(
          future: SaadConstants.getValueFromLocal('app_lang'),
          builder: (BuildContext contect , AsyncSnapshot&lt;String&gt; snapshot){
            if (snapshot.hasData) {
              return Text('has data');
            }
            else return Text('None'); 
          }
        );
      }
      else{
        return Text('connect');
      }
  </code></pre>
  
  <p>it returns this widget : Text('None') ..</p>
  
  <p>my setValue Function :</p>
  
  <pre><code>  static Future&lt;String&gt; setValueFromLocal(String key, String value) async { // Async func to handle Futures easier; or use Future.then
      SharedPreferences perfs = await SharedPreferences.getInstance();
      perfs.setString(key.toString(),value.toString());
    }
  </code></pre>
  
  <p>my getValue Function :</p>
  
  <pre><code>
    static Future&lt;String&gt; getValueFromLocal(String key) async { // Async func to handle Futures easier; or use Future.then
      SharedPreferences perfs = await SharedPreferences.getInstance();
      return perfs.getString(key);
    }
  </code></pre>