Flutter – When changing Raised Button to Elevated Button, creates an error on the button style
class _CalculatorState extends State<Calculator> { Widget calcbutton(String btntxt, Color btncolor, Color txtcolor) { return Container( child: RaisedButton( onPressed: () { calculation(btntxt); }, child: Text( btntxt, style: TextStyle( fontSize: 35, color: txtcolor, ), ), shape: CircleBorder(), Color: btncolor, padding: EdgeInsets.all(20), ),…