I need to get and store the width of a standard flat button once it is created, how can I do it?
double _width; //store here the flatbutton's width created below
Widget _flatButtonStoreWidth (String text){
return FlatButton(
child: Text(text),
onPressed: () {},
);
}