title: Flutter change text when button pressed
body: <p>yo guys i'll try to change text at button when clicked on...</p>
  
  <p>my code :</p>
  
  <pre><code>         bool pressGeoON = false;
           bool cmbscritta = false;
             RaisedButton(
                    shape: new RoundedRectangleBorder(
                        borderRadius: new BorderRadius.circular(18.0),
                        side: BorderSide(color: Colors.red)),
                    color: pressGeoON ? Colors.blue: Colors.red,
                    textColor: Colors.white,
                    child:  cmbscritta ? Text("GeoOn"): Text("GeoOFF"),
                    //    style: TextStyle(fontSize: 14)
  
                    onPressed: () {
                      setState(() =&gt; pressGeoON = !pressGeoON);
                      setState(() =&gt; cmbscritta = !cmbscritta);
                    },
                  )
  </code></pre>
  
  <p>No advice from dart Analisys but not work...help!</p>