flutter

Decoration BoxDecoration Container

BoxDecoration myBoxDecoration() {
  return BoxDecoration(
    border: Border.all(
      width: 1, 
    ),
  );
}
BoxDecoration myBoxDecoration() {
   return BoxDecoration(
     border: Border(
       left: BorderSide(
         width: 2.0,
         color: Colors.green,
       ),
       right: BorderSide(
         width: 2.0,
         color: Colors.green,
       ),
       top: BorderSide(
         width: 2.0,
         color: Colors.green,
       ),
       bottom: BorderSide(
         width: 2.0,
         color: Colors.green,
       ),
     ),
     borderRadius: BorderRadius.all(
       Radius.circular(10.0),
     ),
   );
 }
Was this helpful?