title: Flutter low framerate performace
body: <p>I saw linear degradation of framerate UI when I launch speed_dial animation plugin. The problem appear when I add sharedpref function here:</p>
  
  <pre><code> @override
    Widget build(BuildContext context) {
     sharedpref_function();
      return Scaffold(
  </code></pre>
  
  <p>to listen a saved value, even If the sharedpref is empty I have this degradation.</p>
  
  <p>After 10min whithout doing nothing before, I measure 1120ms/frame when I call _renderSpeedDial</p>
  
  <p>Here is the full code :</p>
  
  <pre><code>  bool _dialVisible = true;
    Color _speedDial =  Colors.pink;
  
    sharedpref_function() async {     
      SharedPreferences prefs = await SharedPreferences.getInstance();
      setState(() {
      }
     );
    }
  
    _renderSpeedDial() {
      return SpeedDial(
        animatedIcon: AnimatedIcons.add_event,
        animatedIconTheme: IconThemeData(size: 22.0),
        backgroundColor: _speedDial,
        // child: Icon(Icons.add),
        /*  onOpen: () =&gt; print('OPENING DIAL'),
        onClose: () =&gt; print('DIAL CLOSED'),*/
        visible: _dialVisible,
        curve: Curves.bounceIn,
        children: [
  
          SpeedDialChild(
            child: Icon(Icons.fullscreen_exit, color: Colors.white),
            backgroundColor: Color(0xffa088df),
            onTap: () {
              setState(() {
  
              });
            },
            label: '1',
            labelStyle: TextStyle(fontWeight: FontWeight.w500,color: Colors.white),
            labelBackgroundColor:Color(0xffa088df),
          ),
  
        ],
      );
    }
  
    @override
    Widget build(BuildContext context) {
      sharedpref_function(); // here the sharedpref I use to listen saved value
      return Scaffold(
    body: Stack(
        children: &lt;Widget&gt;[
      Padding
        (
        padding: const EdgeInsets.only(right:10.0, bottom:10.0),
        child:
        _renderSpeedDial(),
      ),
        ],
  )
  );
    }
  }
  </code></pre>