Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

how to decorate container in flutter

Container(
  decoration: BoxDecoration(
    color: const Color(0xff7c94b6),
    image: const DecorationImage(
      image: NetworkImage('https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg'),
      fit: BoxFit.cover,
    ),
    border: Border.all(
      color: Colors.black,
      width: 8,
    ),
    borderRadius: BorderRadius.circular(12),
      
 //   borderRadius: new BorderRadius.only(            
 //              topLeft   : const Radius.circular(40.0),
 // 				topRight  : const Radius.circular(40.0),
 //				bottomLeft: const Radius.circular(40.0),
 //			bottomRight:const Radius.circular(40.0),            
 //            )
  ),
)
Source by api.flutter.dev #
 
PREVIOUS NEXT
Tagged: #decorate #container #flutter
ADD COMMENT
Topic
Name
8+9 =