anchor.diff:          actions: <Widget>[
             IconButton(
               icon: Icon(Icons.refresh),
  -            onPressed: () {},
  +            onPressed: _resetFields,
             )
           ],
         ), //AppBar
  
positive.code:                   labelStyle: TextStyle(color: Colors.green)), // InputDecoration
                textAlign: TextAlign.center,
                style: TextStyle(color: Colors.green, fontSize: 25.0),
              ), // TextField
              TextField(
                keyboardType: TextInputType.number,
  
negative.code: }
  
  class _HomeState extends State<Home> {
    TextEditingController weightController = TextEditingController();
    TextEditingController heightController = TextEditingController();
  
    String _infoText = "Informe seus dados!";
  
    void _resetFields(){
      weightController.text = "";
      heightController.text = "";
      _infoText = "Informe seus dados!";
    }
  
  
    void calculate(){
      setState(() {
        double weight = double.parse(weightController.text);
        double height = double.parse(heightController.text) / 100;
        double imc = weight / (height * height);
        if(imc < 18.6){
          _infoText = "Abaixo do Peso (${imc.toStringAsPrecision(4)})";
        } else if(imc >= 18.6 && imc < 24.9){
          _infoText = "Peso Ideal (${imc.toStringAsPrecision(4)})";
        } else if(imc >= 24.9 && imc < 29.9){
          _infoText = "Levemente Acima do Peso (${imc.toStringAsPrecision(4)})";
        } else if(imc >= 29.9 && imc < 34.9){
          _infoText = "Obesidade Grau I (${imc.toStringAsPrecision(4)})";
        } else if(imc >= 34.9 && imc < 39.9){
          _infoText = "Obesidade Grau II (${imc.toStringAsPrecision(4)})";
        } else if(imc >= 40){
          _infoText = "Obesidade Grau III (${imc.toStringAsPrecision(4)})";
        }
      });
    }
  
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
  