How to Create Buttons with Rounded Corners in Flutter? Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report Flutter is a UI toolkit developed by Google. It is being utilized by big tech companies like Alibaba, Airbnb, and Google itself to build apps that serve billions of users around the globe. In this article, we will be seeing how to make Rounded Buttons in Flutter. Approach: We will create the buttons and use their style property to give them a border radius using the RoundedRectangleBorder widget. Syntax:TextButton( onPressed: () {}, style: TextButton.styleFrom( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(value), ), ), )Example 1: This example Illustrates how to make the border of the ElevatedButton and the OutlinedButton rounded. Dart import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return const MaterialApp( home: MyHomePage(), ); } } class MyHomePage extends StatelessWidget { const MyHomePage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text("Rounded Buttons in Flutter"), backgroundColor: Colors.green, ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( onPressed: () { // Add your on pressed event here }, style: ElevatedButton.styleFrom( primary: Colors.green, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(50), ), ), child: const Text('Rounded Elevated Button'), ), OutlinedButton( onPressed: () { // Add your on pressed event here }, style: OutlinedButton.styleFrom( primary: Colors.green, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(50), ), ), child: const Text('Rounded Outlined Button'), ), ], ), ), ); } } Output: Example 2: In the below example, we used the text button and made it rounded. The roundness of the button can be seen when we click on the button. Dart import 'package:flutter/material.dart'; void main() => runApp(const MyApp()); class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return const MaterialApp( home: MyHomePage(), ); } } class MyHomePage extends StatelessWidget { const MyHomePage({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text("Rounded Buttons in Flutter"), backgroundColor: Colors.green, ), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ TextButton( onPressed: () { // Add your on pressed event here }, style: TextButton.styleFrom( primary: Colors.green, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(50), ), ), child: const Text('Rounded Text Button'), ), ], ), ), ); } } Output: Comment More infoAdvertise with us Next Article How to Create Buttons with Rounded Corners in Flutter? vpsop Follow Improve Article Tags : Technical Scripter Dart Flutter Technical Scripter 2022 Similar Reads How to Disable a Button in Flutter? Sometimes we need to make the button disabled, let us consider, you created a form to take the user input and a form submit button. Then you want that, the button must be disabled until the user fills all the fields of the form then immediately enable the button. Sample Output is given below what we 3 min read How to Create Any Types of Shape Using svg Code in Flutter? Sometimes it is difficult to make different shapes in Flutter. So no need to worry now You can make any shape if you have svg file or code of that shape. Now you can generate any shape without using any packages. If you don't have the shape in svg file or svg code then you can create it from figma a 3 min read Rounded Corner Image in Flutter Rounded images or avatars are commonly used in many mobile applications, including those built with Flutter. There are several ways to create rounded images in Flutter, some of which include: Using the ClipRRect widget: As I mentioned earlier, the ClipRRect widget can be used to clip an image and cr 3 min read How to Change Floating Action Button Color in Flutter? Every Android application has the floatingActionButton in it. There is a possibility that there are multiple screens in the application and have floatingActionButton on that screens, then we need to give the colors property to every floatingActionButton. But Flutter resolves this by changing the the 2 min read Raised Button widget in Flutter RaisedButton is the material design button based on a Material widget that elevates when pressed upon in flutter. It is one of the most widely used buttons in the flutter library. Let's understand this button with the help of an example. Disclaimer: As of May 2021 the RaisedButton class in flutter i 5 min read Flutter Material Widget - Outlined Button Class Outlined Widgets are material design components that are used to give outlines to buttons. It is in no way different from text buttons except for the special feature of the border this class provides. These contain nonprimary actions for the apps. It is introduced in version 1.22 of flutter. Outline 4 min read Raised Button Class in Flutter Material Library with Example Raised button class comes with a slight elevation in its structure on tapping by the user. They have several properties like text color, shape, padding, button color, etc. These are rectangular in shape by default which cannot be altered and have UI along their z-axis. It is a deprecated class, and 4 min read Flutter - Circular Icon Button In this article, we will implement how to make a circular icon button in Flutter. A sample image is given below to get an idea about what we are going to do in this article.  Step by Step Implementation Step 1: Create a New Project in Android Studio To set up Flutter Development on Android Studio pl 2 min read How to Create a Zoomable Image in Flutter? In Flutter, you can create a zoomable image using the GestureDetector and Transform widgets. The GestureDetector widget can be used to detect pinch gestures on the image, and the Transform widget can be used to apply the zoom transformation to the image. How to Use:Container( child: PhotoView( image 3 min read How to Implement Circular Animated Floating Action Button in Flutter? The Floating Action Button is the circular button that floats on the bottom of the  Application screen, It may perform many tasks like showing the menu bar, capturing images, opening the gallery anything you want. In this article, we are creating the Circular Animated Floating Action Button. Step By 3 min read Like