From 14445f188b3dde2089b877f9ae76ff00d4cb4ced Mon Sep 17 00:00:00 2001 From: Yipmong Said Date: Tue, 13 Feb 2024 22:12:57 +0100 Subject: [PATCH] Add login screen and update user account header --- lib/auth/login.dart | 16 ++++++++++++++++ lib/auth/signup.dart | 0 lib/screens/home.dart | 9 ++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lib/auth/login.dart create mode 100644 lib/auth/signup.dart diff --git a/lib/auth/login.dart b/lib/auth/login.dart new file mode 100644 index 0000000..4a6cffa --- /dev/null +++ b/lib/auth/login.dart @@ -0,0 +1,16 @@ +import 'package:flutter/material.dart'; + + +class LoginScreen extends StatelessWidget { + const LoginScreen({super.key}); + + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center( + child: Text('Login Screen'), + + ), + ); + } +} diff --git a/lib/auth/signup.dart b/lib/auth/signup.dart new file mode 100644 index 0000000..e69de29 diff --git a/lib/screens/home.dart b/lib/screens/home.dart index f886adc..4a05d47 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -33,7 +33,14 @@ class _HomeScreenState extends State { decoration: BoxDecoration( color: Colors.blue, ), - child: UserAccountsDrawerHeader(accountName: Text("John Doe"), accountEmail: Text('User@gmail.com')), + child: UserAccountsDrawerHeader( + currentAccountPicture: CircleAvatar( + child: FlutterLogo(size: 42.0), + ), + margin: EdgeInsets.zero, + accountName: Text("John Doe"), + accountEmail: Text('User@gmail.com'), + ), ), ListTile( title: const Text('Item 1'),