Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:aprendendo/conta-principal.dart';
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- class LoginPage extends StatefulWidget {
- @override
- _LoginPageState createState() => _LoginPageState();
- }
- class _LoginPageState extends State<LoginPage> {
- get choice => null;
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text('Olá Ronaldo Lélis'),
- centerTitle: true,
- actions: <Widget>[
- IconButton(
- icon: Icon(Icons.more_vert),
- onPressed: () {},
- ),
- ],
- ),
- body: Container(
- padding: EdgeInsets.only(
- top: 40, left: 20, right: 20,
- ),
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.bottomCenter ,
- colors: [
- Colors.blue[400],
- Colors.blue[100]
- ],
- ),
- ),
- child:
- Column(
- children: <Widget>[
- Container(
- alignment: Alignment.center,
- child:
- Text('senha eletrônica',
- style: TextStyle(fontSize: 28),
- ),
- ),
- Container(
- child:
- TextFormField(
- keyboardType: TextInputType.number,
- decoration: InputDecoration(
- icon: Icon(Icons.lock),
- labelStyle: TextStyle(
- color: Colors.black38,
- fontWeight: FontWeight.w400,
- fontSize: 25,
- ),
- ),
- style: TextStyle( fontSize: 22),
- ),
- ),
- Container(
- child:
- Padding(
- padding: EdgeInsets.only(top: 50),
- child: Container(
- width: MediaQuery.of(context).size.width,
- height: 175,
- decoration: BoxDecoration(
- color: Colors.lightBlue,
- borderRadius: BorderRadius.circular(22),
- ),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
- //crossAxisAlignment: CrossAxisAlignment.center,
- children: <Widget>[
- Container(
- width: 100, height: 75,
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.circular(16),
- ),
- ),
- Container(
- width: 100, height: 75,
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.circular(16),
- ),
- ),
- Container(
- width: 100, height: 75,
- decoration: BoxDecoration(
- color: Colors.white,
- borderRadius: BorderRadius.circular(16),
- ),
- ),
- ],
- ),
- ),
- ),
- ),
- SizedBox(
- height: 40,
- ),
- Container(
- height: 60,
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.topLeft,
- end: Alignment.bottomRight,
- stops: [0.5 , 1],
- colors: [
- Color(0xB3004555),
- Color(0xFF005590),
- ],
- ),
- borderRadius: BorderRadius.all(
- Radius.circular(7),
- ),
- ) ,
- child: SizedBox.expand(
- child: FlatButton(
- child: Text("Acessar",
- style: TextStyle(
- fontWeight: FontWeight.bold,
- color: Colors.white,
- fontSize: 22,
- ),
- textAlign: TextAlign.center,
- ),
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(
- builder: (context) => ContaPrincipal()
- ),
- );
- },
- ),
- ),
- ),
- SizedBox(
- height: 40,
- ),
- Text('esqueci minha senha',
- style: TextStyle(fontSize: 22),
- ),
- ],
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement