Box Decoration Make containers look awesome

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.


*Enrollment provides full access to this course (and updates) for life.

Or Signup for Unlimited PRO Access

Example Code

file_type_dartlang main.dart
class MyApp extends StatelessWidget {
 @override
 Widget build(BuildContext context) {
   return MaterialApp(
     home: Scaffold(
       body: Center(
         child: Container(
           alignment: Alignment.center,
           decoration: BoxDecoration(
             color: Colors.blue,
             border: Border.all(width: 5),
             boxShadow: [
               BoxShadow(offset: Offset(40, 40), color: Colors.pink),
               BoxShadow(offset: Offset(20, 20), color: Colors.yellow),
             ],
             gradient: RadialGradient(colors: [Colors.yellow, Colors.pink])
           ),
         )
       ),
     ),
   );
 }
}

Q&A Chat