logIn.dart 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import 'package:flutter/material.dart';
  2. class LogIn extends StatefulWidget {
  3. const LogIn({Key? key, required this.title}) : super(key: key);
  4. final String title;
  5. @override
  6. //_RegisterScreen createState() => _RegisterScreen();
  7. State<LogIn> createState() => _LogIn();
  8. }
  9. class _LogIn extends State<LogIn> {
  10. @override
  11. Widget build(BuildContext context) {
  12. return Scaffold(
  13. appBar: AppBar(
  14. title: const Text('Login Screen'),
  15. ),
  16. body: Center(
  17. child: SizedBox(
  18. width: 300,
  19. child: Column(children: <Widget>[
  20. const SizedBox(height: 30),
  21. Text(
  22. 'Welcome back!',
  23. style: TextStyle(fontSize: 25, fontWeight: FontWeight.bold),
  24. ),
  25. const SizedBox(height: 30),
  26. Image.asset(
  27. 'assets/hello.png',
  28. width: 150,
  29. ),
  30. const SizedBox(height: 30),
  31. TextField(
  32. decoration: InputDecoration(
  33. hintText: 'Mail or mobile phone',
  34. ),
  35. ),
  36. const SizedBox(height: 10),
  37. TextField(
  38. decoration: InputDecoration(
  39. hintText: 'Password',
  40. ),
  41. ),
  42. const SizedBox(height: 10),
  43. ElevatedButton(
  44. onPressed: () {
  45. },
  46. child: const Text('Log In'),
  47. ),
  48. ]),
  49. )),
  50. );
  51. }
  52. }