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 createState() => _LogIn(); } class _LogIn extends State { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('Login Screen'), ), body: Center( child: SizedBox( width: 300, child: Column(children: [ 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'), ), ]), )), ); } }