Thomas Fransolet fe6fe9edc5 Clean code
2021-07-26 18:52:33 +02:00

47 lines
1.3 KiB
Dart

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: <Widget>[
/*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,
],
),
);
}
}