Professional Documents
Culture Documents
Bmiresult Feedback Suggestion Bmiresult Feedback Suggestion
Bmiresult Feedback Suggestion Bmiresult Feedback Suggestion
dart';
import 'package:flutter/material.dart';
class Result extends StatefulWidget {
Result({this.bmiresult,this.feedback,this.suggestion});
String bmiresult;
String feedback;
String suggestion;
@override
_ResultState createState() => _ResultState();
}
SizedBox(height: 5),
Text(widget.feedback,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.pinkAccent
),
),
SizedBox(height: 5),
Text(widget.bmiresult,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.white
),
),
SizedBox(height: 5),
Text(widget.suggestion,
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.white
),
),
Padding(padding: EdgeInsets.only(top: 350)),
GestureDetector(
onTap: (){
Navigator.push(context, MaterialPageRoute(builder:(context){
return BMICalc();
}));
},
child: Container(
height:35,
width: 265,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
color: Colors.pinkAccent
),
child: Center(
child: Text("Recalculate",
style: TextStyle(
color: Colors.white,
fontSize: 15,
fontWeight: FontWeight.bold
),
),
),
),
),
],
),
) ,
);
}
}