Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.52 KB | None | 0 0
  1. @override
  2.   Widget build(BuildContext context){
  3.  
  4.     /* var headersize = MediaQuery.of(context).size.height;
  5.     var widthsize = MediaQuery.of(context).size.width; */
  6.  
  7.     ScreenUtil.instance = ScreenUtil.getInstance()..init(context);
  8.     ScreenUtil.instance = ScreenUtil(width: 750, height: 1334, allowFontScaling: true);
  9.  
  10.     return Stack(children: <Widget>[
  11.       Container(
  12.         decoration: BoxDecoration(
  13.           image: DecorationImage(
  14.             image: NetworkImage('https://drscdn.500px.org/photo/279756089/q%3D80_m%3D1000/v2?sig=201b2ff9d0ac581c301f887d5f89613d753a0782e475d128a144f9ba3ad82b68'),
  15.             fit: BoxFit.cover
  16.           ) ,
  17.         ),
  18.       ),
  19.       Scaffold(
  20.         backgroundColor: Colors.transparent,
  21.         appBar: AppBar(
  22.               backgroundColor: Colors.transparent,
  23.               elevation: 0.0,
  24.               centerTitle: true,
  25.               title: Padding(
  26.                 padding: EdgeInsets.only(top: 16.0),
  27.                 child: new Image.asset(
  28.                 'assets/images/chefedLogoTraspWhite.png',
  29.                 fit: BoxFit.contain,
  30.                 ),
  31.               ),
  32.             ),
  33.         body: Padding(
  34.           padding: EdgeInsets.only(left: 16.0, right: 16.0, top: 16.0),
  35.           child: SingleChildScrollView(
  36.             child: Container(
  37.               width: double.infinity,
  38.               height: ScreenUtil.getInstance().setHeight(500),
  39.               decoration: BoxDecoration(
  40.                 color: Colors.white,
  41.                 borderRadius: BorderRadius.circular(8.0),
  42.                 boxShadow: [
  43.                   BoxShadow(
  44.                     color: Colors.white12,
  45.                     offset: Offset(0.0,15.0),
  46.                     blurRadius: 15.0,
  47.                   ),
  48.                   BoxShadow(
  49.                     color: Colors.white12,
  50.                     offset: Offset(0.0, -10.0),
  51.                     blurRadius: 10.0,
  52.                   )
  53.                 ]
  54.               ),
  55.               child: Padding(
  56.                 padding: EdgeInsets.only(left: 16.0, right: 16.0, top: 16.0),
  57.                 child: Column(
  58.                   crossAxisAlignment: CrossAxisAlignment.start,
  59.                   children: <Widget>[
  60.                     Text('Login', style: TextStyle(
  61.                       fontSize: ScreenUtil.getInstance().setSp(45),
  62.                       letterSpacing: .6,  
  63.                     ))
  64.                   ],
  65.                 ),
  66.               ),
  67.             ),
  68.           ),
  69.         )
  70.       ),
  71.     ],);
  72.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement