
FlatButton(
child: Text('ORDER NOW'),
onPressed: () {
Provider.of<Orders>(context, listen: false).addOrder(
cart.items.values.toList(),
cart.totalAmount,
);
cart.clear();
},
textcolor: Theme.of(context).primaryColor,

FlatButton(
child: Text('ORDER NOW'),
onPressed: () {
Provider.of<Orders>(context, listen: false).addOrder(
cart.items.values.toList(),
cart.totalAmount,
);
cart.clear();
},
textcolor: Theme.of(context).primaryColor,
On
According to the Flutter 3.3.0 release notes, the deprecated RaisedButton was removed in GitHub pull request #98547.
You can check breaking-changes/buttons
To have the same visual look
You can find more about restoring-the-original-button-visuals