Home / Flutter Design Assets

Flutter Design Assets

Padding rules

// It will work for padding top, right, left & bottom
padding: const EdgeInsets.only( top: 10.0, right: 10.0, bottom: 10.0, left: 10.0)

Border Radius

// for border radius
decoration: BoxDecoration(
	borderRadius: BorderRadius.circular(9.0)
)
decoration: BoxDecoration(
	borderRadius: BorderRadius.only(
		topLeft: const Radius.circular(40.0),
		topRight: const Radius.circular(40.0),
	)
)

Box Shadow

decoration: BoxDecoration(
	boxShadow: [
		BoxShadow(color: Colors.green, spreadRadius: 3),
	],
)

all rights reserved