How to Add Image with Rounded Corners in Flutter

Sometimes, rounded corners are more beautiful than sharp corners. In this Flutter tutorial, let’s check how to add an image with rounded corners in flutter.

I already have a post about adding rounded corners in flutter. As mentioned there, we have to use ClipRect class to create rounded corners. It’s very easy.

  borderRadius: BorderRadius.circular(20.0),

Following is the complete flutter example of image with rounded corners.

import 'package:flutter/material.dart';
void main() => runApp(App());

class App extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Image with Rounded Corner Example',
      home: FlutterExample(),

class FlutterExample extends StatelessWidget {
  FlutterExample({Key key}) : super(key: key);

  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
          child: Padding(
            padding: EdgeInsets.all(30),
              borderRadius: BorderRadius.circular(50.0),


Following is the output of this flutter example.

flutter image with rounded corners

I hope this flutter tutorial will be helpful for you.

Leave a Comment

Your email address will not be published.