Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Widget build(BuildContext context){
- /* var headersize = MediaQuery.of(context).size.height;
- var widthsize = MediaQuery.of(context).size.width; */
- ScreenUtil.instance = ScreenUtil.getInstance()..init(context);
- ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: true);
- return Stack(children: <Widget>[
- Container(
- decoration: BoxDecoration(
- image: DecorationImage(
- image: NetworkImage('https://drscdn.500px.org/photo/279756089/q%3D80_m%3D1000/v2?sig=201b2ff9d0ac581c301f887d5f89613d753a0782e475d128a144f9ba3ad82b68'),
- fit: BoxFit.cover
- ) ,
- ),
- ),
- Scaffold(
- backgroundColor: Colors.transparent,
- appBar: AppBar(
- backgroundColor: Colors.transparent,
- elevation: 0.0,
- centerTitle: true,
- title: Padding(
- padding: EdgeInsets.only(top: 16.0),
- child: new Image.asset(
- 'assets/images/chefedLogoTraspWhite.png',
- fit: BoxFit.contain,
- ),
- ),
- ),
- body: Padding(
- padding: EdgeInsets.only(left: 16.0, right: 16.0, top: 16.0),
- child: SingleChildScrollView(
- child: Container(
- width: double.infinity,
- height: ScreenUtil.getInstance().setHeight(500),
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.circular(8.0),
- boxShadow: [
- BoxShadow(
- color: Colors.white12,
- offset: Offset(0.0,15.0),
- blurRadius: 15.0,
- ),
- BoxShadow(
- color: Colors.white12,
- offset: Offset(0.0, -10.0),
- blurRadius: 10.0,
- )
- ]
- ),
- child: Padding(
- padding: EdgeInsets.only(left: 16.0, right: 16.0, top: 16.0),
- child: Column(
- crossAxisAlignment: CrossAxisAlignment.start,
- children: <Widget>[
- Text('Login', style: TextStyle(
- fontSize: ScreenUtil.getInstance().setSp(45),
- letterSpacing: .6,
- ))
- ],
- ),
- ),
- ),
- ),
- )
- ),
- ],);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement