SafeAreaColor constructor

const SafeAreaColor({
  1. Key? key,
  2. Widget? child,
  3. Color color = Colors.white,
  4. double? height,
  5. double width = double.infinity,
})
 return Container(
   color: color,
   child: SafeArea(
     child: Container(
       height: height,
       child: child,
     ),
   ),
 );

Implementation

const SafeAreaColor(
    {Key? key,
    this.child,
    this.color = Colors.white,
    this.height,
    this.width = double.infinity})
    : super(key: key);