📱 Flutter
Beginner
What is the ElevatedButton widget?
Answer
ElevatedButton is the standard Material Design button with elevation (shadow), indicating it is raised above the surface. It is the modern replacement for the deprecated RaisedButton. It requires a child (usually a Text widget) and an onPressed callback. Setting onPressed: null automatically disables the button and applies the disabled style. Customize its appearance using the style property with ElevatedButton.styleFrom().