|
| 1 | +import 'package:flutter/material.dart'; |
| 2 | +import 'package:flutter_ui_nice/const/gradient_const.dart'; |
| 3 | + |
| 4 | +class SignPageSeven extends StatefulWidget { |
| 5 | + @override |
| 6 | + _SignPageSevenState createState() => _SignPageSevenState(); |
| 7 | +} |
| 8 | + |
| 9 | +class _SignPageSevenState extends State<SignPageSeven> { |
| 10 | + @override |
| 11 | + Widget build(BuildContext context) { |
| 12 | + final _media = MediaQuery.of(context).size; |
| 13 | + final _toolbarSize = MediaQuery.of(context).padding; |
| 14 | + return Scaffold( |
| 15 | + body: SingleChildScrollView( |
| 16 | + physics: BouncingScrollPhysics(), |
| 17 | + child: Container( |
| 18 | + padding: MediaQuery.of(context).padding, |
| 19 | + height: _media.height, |
| 20 | + width: _media.width, |
| 21 | + decoration: BoxDecoration( |
| 22 | + gradient: SIGNUP_BACKGROUND, |
| 23 | + ), |
| 24 | + child: Stack( |
| 25 | + alignment: Alignment.center, |
| 26 | + children: <Widget>[ |
| 27 | + Row( |
| 28 | + children: <Widget>[ |
| 29 | + Container( |
| 30 | + height: _media.height, |
| 31 | + width: _media.width / 2, |
| 32 | + decoration: BoxDecoration( |
| 33 | + gradient: LinearGradient( |
| 34 | + colors: [ |
| 35 | + Colors.black.withOpacity(0.05), |
| 36 | + Colors.transparent, |
| 37 | + ], |
| 38 | + begin: FractionalOffset.topCenter, |
| 39 | + end: FractionalOffset.bottomCenter, |
| 40 | + stops: [0.2, 0.8]), |
| 41 | + ), |
| 42 | + child: Padding( |
| 43 | + padding: const EdgeInsets.only(top: 25.0), |
| 44 | + child: Opacity( |
| 45 | + opacity: 0.5, |
| 46 | + child: Text( |
| 47 | + "Log In", |
| 48 | + style: TextStyle( |
| 49 | + fontSize: 30, |
| 50 | + color: Colors.black54, |
| 51 | + ), |
| 52 | + textAlign: TextAlign.center, |
| 53 | + ), |
| 54 | + ), |
| 55 | + ), |
| 56 | + ), |
| 57 | + Container( |
| 58 | + height: _media.height, |
| 59 | + width: _media.width / 2, |
| 60 | + child: Padding( |
| 61 | + padding: const EdgeInsets.only(top: 25.0), |
| 62 | + child: Opacity( |
| 63 | + opacity: 1, |
| 64 | + child: Text( |
| 65 | + "Sign Up", |
| 66 | + style: TextStyle( |
| 67 | + fontSize: 30, |
| 68 | + color: Colors.black54, |
| 69 | + ), |
| 70 | + textAlign: TextAlign.center, |
| 71 | + ), |
| 72 | + ), |
| 73 | + ), |
| 74 | + ), |
| 75 | + ], |
| 76 | + ), |
| 77 | + Container( |
| 78 | + margin: EdgeInsets.only( |
| 79 | + top: 110, |
| 80 | + left: 50, |
| 81 | + right: 50, |
| 82 | + bottom: 100, |
| 83 | + ), |
| 84 | + height: _media.height, |
| 85 | + width: _media.width, |
| 86 | + decoration: BoxDecoration( |
| 87 | + borderRadius: BorderRadius.circular(10), |
| 88 | + color: Colors.red, |
| 89 | + ), |
| 90 | + ), |
| 91 | + ], |
| 92 | + ), |
| 93 | + ), |
| 94 | + ), |
| 95 | + ); |
| 96 | + } |
| 97 | +} |
0 commit comments