Advertisement
LelisDesigner

app_teste

Apr 3rd, 2020
772
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 5.12 KB | None | 0 0
  1. import 'package:aprendendo/conta-principal.dart';
  2. import 'package:flutter/cupertino.dart';
  3. import 'package:flutter/material.dart';
  4.  
  5.  
  6.  
  7. class LoginPage extends StatefulWidget {
  8.  
  9.   @override
  10.   _LoginPageState createState() => _LoginPageState();
  11. }
  12.  
  13. class _LoginPageState extends State<LoginPage> {
  14.   get choice => null;
  15.  
  16.   @override
  17.   Widget build(BuildContext context) {
  18.     return Scaffold(
  19.  
  20.       appBar: AppBar(                
  21.         title: Text('Olá Ronaldo Lélis'),
  22.         centerTitle: true,
  23.         actions: <Widget>[
  24.           IconButton(
  25.             icon: Icon(Icons.more_vert),
  26.             onPressed: () {},
  27.         ),
  28.         ],
  29.       ),
  30.       body: Container(
  31.         padding: EdgeInsets.only(
  32.           top: 40, left: 20, right: 20,
  33.           ),
  34.           decoration: BoxDecoration(            
  35.             gradient: LinearGradient(
  36.             begin: Alignment.bottomCenter ,
  37.             colors: [
  38.               Colors.blue[400],
  39.               Colors.blue[100]
  40.             ],
  41.           ),
  42.           ),
  43.           child:
  44.           Column(
  45.           children: <Widget>[
  46.             Container(
  47.               alignment: Alignment.center,
  48.               child:
  49.                 Text('senha eletrônica',
  50.                 style: TextStyle(fontSize: 28),                
  51.                 ),
  52.             ),
  53.             Container(
  54.                 child:
  55.                 TextFormField(
  56.                 keyboardType: TextInputType.number,
  57.                 decoration: InputDecoration(
  58.                   icon: Icon(Icons.lock),
  59.                   labelStyle: TextStyle(
  60.                     color: Colors.black38,
  61.                     fontWeight: FontWeight.w400,
  62.                     fontSize: 25,
  63.                   ),
  64.                 ),
  65.                 style: TextStyle( fontSize: 22),
  66.               ),
  67.             ),
  68.             Container(
  69.               child:
  70.               Padding(
  71.                 padding: EdgeInsets.only(top: 50),
  72.                 child: Container(
  73.                   width: MediaQuery.of(context).size.width,
  74.                   height: 175,
  75.                   decoration: BoxDecoration(
  76.                     color: Colors.lightBlue,
  77.                     borderRadius: BorderRadius.circular(22),
  78.                   ),
  79.                   child: Row(
  80.                     mainAxisAlignment: MainAxisAlignment.spaceEvenly,
  81.                     //crossAxisAlignment: CrossAxisAlignment.center,
  82.                     children: <Widget>[
  83.                       Container(
  84.                         width: 100, height: 75,
  85.                         decoration: BoxDecoration(
  86.                         color: Colors.white,
  87.                         borderRadius: BorderRadius.circular(16),
  88.                         ),
  89.                       ),
  90.                        Container(
  91.                         width: 100, height: 75,
  92.                         decoration: BoxDecoration(
  93.                         color: Colors.white,
  94.                         borderRadius: BorderRadius.circular(16),
  95.                         ),
  96.                       ),
  97.                        Container(
  98.                         width: 100, height: 75,
  99.                         decoration: BoxDecoration(
  100.                         color: Colors.white,
  101.                         borderRadius: BorderRadius.circular(16),
  102.                         ),
  103.                       ),
  104.                     ],
  105.                   ),
  106.                 ),
  107.               ),
  108.             ),
  109.             SizedBox(
  110.               height: 40,
  111.             ),
  112.             Container(
  113.               height: 60,
  114.               decoration: BoxDecoration(
  115.                 gradient: LinearGradient(
  116.                   begin: Alignment.topLeft,
  117.                   end: Alignment.bottomRight,
  118.                   stops: [0.5 , 1],
  119.                   colors: [
  120.                     Color(0xB3004555),
  121.                     Color(0xFF005590),
  122.                   ],
  123.                 ),
  124.                 borderRadius: BorderRadius.all(
  125.                   Radius.circular(7),
  126.                 ),
  127.               ) ,
  128.               child: SizedBox.expand(
  129.                 child: FlatButton(
  130.                   child: Text("Acessar",
  131.                   style: TextStyle(
  132.                     fontWeight: FontWeight.bold,
  133.                     color: Colors.white,
  134.                     fontSize: 22,
  135.                   ),
  136.                   textAlign: TextAlign.center,
  137.                   ),
  138.                   onPressed: () {
  139.                     Navigator.push(
  140.                       context,
  141.                       MaterialPageRoute(
  142.                         builder: (context) => ContaPrincipal()
  143.                         ),
  144.                        
  145.                     );
  146.                                        
  147.                   },
  148.                  
  149.                 ),
  150.                
  151.               ),
  152.              
  153.             ),
  154.             SizedBox(
  155.               height: 40,
  156.             ),
  157.             Text('esqueci minha senha',
  158.             style: TextStyle(fontSize: 22),
  159.            
  160.             ),
  161.            
  162.           ],
  163.          
  164.         ),
  165.        
  166.       ),
  167.      
  168.       );
  169.   }
  170. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement