Hello guys how are you all? Hope you all are fine. As we know RaisedButton is deprecated and the Elevated button is replacing Raised Button widget with its new features. Here in this tutorial, we are going to learn How to Create Elevated Button with Icon and Text in Flutter
How to Create Elevated Button with Icon and Text in Flutter
Time Needed : 00 days 00 hours 03 minutes
Here in this tutorial, we are going to learn How to Create Elevated Button with Icon and Text in Flutter
- Use ElevatedButton.icon
To Create Elevated Button with Icon and Text in Flutter We need to use ElevatedButton.icon widget instead of ElevatedButton widget. Here is example ElevatedButton.icon()
- Add Icon in ElevatedButton.icon widget
Now ElevatedButton.icon widget has icon property Which requires Widget Icon as Value. Like this.
ElevatedButton.icon(
icon: Icon(Icons.android_outlined),
onPressed: () {},
), - Add Text ElevatedButton.icon widget
ElevatedButton.icon widget has label property which require Text widget as value.Like this.
ElevatedButton.icon(
label: Text('FlutterCorner.com'),
icon: Icon(Icons.android_outlined),
onPressed: () {},
), - Elevated Button with Icon and Text Created
Our Elevated Button with Icon and Text has been created. here is my full code for batter understanding.
Tools
- Flutter
- Dart
- Android Studio
Materials
- Android Studio
Here Is My ElevatedButton With Text and Icons Example.
ElevatedButton.icon(
label: Text('FlutterCorner.com'),
icon: Icon(Icons.android_outlined),
onPressed: () {
print('Button Pressed');
},
),
Output

Faqs
- How to Create Elevated Button with Icon and Text in Flutter?
To Create Elevated Button with Icon and Text in Flutter We need to use ElevatedButton.icon widget instead of ElevatedButton widget. Here is example ElevatedButton.icon()
- Create Elevated Button with Icon and Text in Flutter
To Create Elevated Button with Icon and Text in Flutter We need to use ElevatedButton.icon widget instead of ElevatedButton widget. Here is example ElevatedButton.icon()
Summery
So it’s all About this tutorial. Hope this above-all solution helped you a lot. Comment below Your thoughts and your queries. Comment Below on your suggestion.
Check Out Below Article
- Flutter (Dart): Exceptions caused by rendering / A RenderFlex overflowed
- Playstore error: App Bundle contains native code, and you’ve not uploaded debug symbols
- Flutter: Could not find the built application bundle at build/ios/iphonesimulator/Runner.app
- Plugin project :firebase_core_web not found. Please update settings.gradle.
- How to fix HttpException: Connection closed before full header was received
Leave a Reply