| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import 'package:flutter/material.dart';
- class LogIn extends StatefulWidget {
- const LogIn({Key? key, required this.title}) : super(key: key);
- final String title;
- @override
- //_RegisterScreen createState() => _RegisterScreen();
- State<LogIn> createState() => _LogIn();
- }
- class _LogIn extends State<LogIn> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text('Login Screen'),
- ),
- body: Center(
- child: SizedBox(
- width: 300,
- child: Column(children: <Widget>[
- const SizedBox(height: 30),
- Text(
- 'Welcome back!',
- style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
- ),
- const SizedBox(height: 30),
- Image.asset(
- 'assets/hello.png',
- width: 150,
- ),
- const SizedBox(height: 30),
- TextField(
- decoration: InputDecoration(
- hintText: 'Mail or mobile phone',
- ),
- ),
- const SizedBox(height: 10),
- TextField(
- decoration: InputDecoration(
- hintText: 'Password',
- ),
- ),
- const SizedBox(height: 10),
- ElevatedButton(
- onPressed: () {
- },
- child: const Text('Log In'),
- ),
- ]),
- )),
- );
- }
- }
|