Created
December 4, 2019 19:46
-
-
Save cristianfb1989/833f167ee542862b41943c451da78f6e to your computer and use it in GitHub Desktop.
Screen Home
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class HomeScreenLocal extends StatefulWidget { | |
@override | |
_HomeScreenLocalState createState() => _HomeScreenLocalState(); | |
} | |
class _HomeScreenLocalState extends State<HomeScreenLocal> { | |
@override | |
Widget build(BuildContext context) { | |
var screenHeight = MediaQuery.of(context).size.height; | |
var screenWidth = MediaQuery.of(context).size.width; | |
var containerPromociones = Positioned( | |
bottom: 270, | |
child: GestureDetector( | |
onTap: () {}, | |
child: Container( | |
decoration: BoxDecoration( | |
border: Border.all(color: Colors.white), | |
// boxShadow: [ | |
// BoxShadow( | |
// color: Colors.black, | |
// blurRadius: 20.0, | |
// ), | |
// ], | |
borderRadius: BorderRadius.only(bottomLeft: Radius.circular(120)), | |
), | |
height: screenHeight, | |
width: screenWidth, | |
child: Stack( | |
children: <Widget>[ | |
Positioned( | |
top: 150, | |
child: Container( | |
child: Image.asset('assets/Image_Promociones_Home3.jpg'), | |
)) | |
], | |
)), | |
), | |
); | |
customBody() { | |
return Stack( | |
alignment: Alignment.center, | |
children: <Widget>[ | |
containerPromociones, | |
], | |
); | |
} | |
return Scaffold( | |
backgroundColor: Colors.green, | |
body: customBody(), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment