import 'package:flutter/material.dart'; import 'package:manager_app/constants.dart'; class Background extends StatelessWidget { final Widget child; const Background({ Key key, @required this.child, }) : super(key: key); @override Widget build(BuildContext context) { Size size = MediaQuery.of(context).size; //final notchInset = MediaQuery.of(context).padding; return Container( width: double.infinity, height: size.height, color: kTextLightColor, child: Stack( alignment: Alignment.center, children: [ /*Positioned( top: - 15, left: -1, child: SvgPicture.asset( 'assets/images/hungry/top_bar2.svg', width: size.width * 1.01, ) ),*/ /*Positioned.fill( child: Padding( padding: EdgeInsets.only(top: (size.height - notchInset.top) * 0.14, left: size.width * 0.025), child: Align( alignment: Alignment.topLeft, child: Text( "Étape 1", style: kSubTitleTextStyle, ), ), ), ),*/ child, ], ), ); } }