What’s ElevatedButton?

A Material Design ‘elevated button’. Use elevated buttons to add dimension to otherwise mostly flat layouts, e.g. in long busy lists of content, or in wide spaces.

Check the official documentation for more.

ElevatedButton explained for Web Developers

An elevated button is a label displayed on a Material widget whose elevation increases when the button is pressed. The label’s Text and Icon widgets are displayed in style’s ButtonStyle.foregroundColor and the button’s filled background is the ButtonStyle.backgroundColor. This concept is similar to how buttons in web frameworks like React, Angular, and Vue can have dynamic styles and behaviors based on user interactions, enhancing the user experience.

Example Code

Here is an example of how to use ElevatedButton:

const ElevatedButton(
onPressed: () {},
child: Text('Elevated Button'),
);

ElevatedButton Remarks

Elevated buttons are a key component in Flutter’s Material Design, providing a way to create visually distinct buttons that enhance user interaction.

Bootstrap Your app with ShipFlutter

A fully customizable starter kit to seamlessly launch responsive Android, iOS, and Web apps with Flutter powered by Firebase and Vertex AI.