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.

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])
           ),
         )
       ),
     ),
   );
 }
}

Questions?

Ask questions via GitHub below OR chat on Slack #questions