mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
40 lines
929 B
Dart
40 lines
929 B
Dart
import 'package:flutter/material.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;
|
|
return Container(
|
|
width: double.infinity,
|
|
height: size.height,
|
|
child: Stack(
|
|
alignment: Alignment.center,
|
|
children: <Widget>[
|
|
/*Positioned(
|
|
top: 0,
|
|
left: 0,
|
|
child: Image.asset(
|
|
"assets/images/main_top.png",
|
|
width: size.width * 0.35,
|
|
),
|
|
),*/
|
|
/*Positioned(
|
|
bottom: 0,
|
|
right: 0,
|
|
child: Image.asset(
|
|
"assets/images/login_bottom.png",
|
|
width: size.width * 0.4,
|
|
),
|
|
),*/
|
|
child,
|
|
],
|
|
),
|
|
);
|
|
}
|
|
} |