Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:flutter/material.dart';
- class LoginPage extends StatefulWidget {
- LoginPage({Key key}) : super(key: key);
- _LoginPageState createState() => _LoginPageState();
- }
- class _LoginPageState extends State<LoginPage> {
- String _email;
- String _password;
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: Center(
- child: Container(
- margin: EdgeInsets.all(25.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- TextField(
- decoration: InputDecoration(
- hintText: 'Enter Email',
- ),
- onChanged: (value) {
- _email = value;
- },
- ),
- SizedBox(
- height: 15.0,
- ),
- TextField(
- decoration: InputDecoration(
- hintText: 'Enter Password',
- ),
- onChanged: (value) {
- _password = value;
- },
- ),
- SizedBox(
- height: 20.0,
- ),
- RaisedButton(
- child: Text("Login"),
- color: Colors.blue,
- textColor: Colors.white,
- elevation: 7.0,
- onPressed: () {},
- ),
- SizedBox(
- height: 15.0,
- ),
- Text("Dont have an account ?"),
- SizedBox(
- height: 10.0,
- ),
- RaisedButton(
- child: Text("Sign up"),
- color: Colors.blue,
- textColor: Colors.white,
- elevation: 7.0,
- onPressed: () {},
- ),
- ],
- ),
- ),
- ),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement