-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add login screen and update user account header
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'), | ||
|
||
), | ||
); | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,14 @@ class _HomeScreenState extends State<HomeScreen> { | |
decoration: BoxDecoration( | ||
color: Colors.blue, | ||
), | ||
child: UserAccountsDrawerHeader(accountName: Text("John Doe"), accountEmail: Text('[email protected]')), | ||
child: UserAccountsDrawerHeader( | ||
currentAccountPicture: CircleAvatar( | ||
child: FlutterLogo(size: 42.0), | ||
), | ||
margin: EdgeInsets.zero, | ||
accountName: Text("John Doe"), | ||
accountEmail: Text('[email protected]'), | ||
), | ||
), | ||
ListTile( | ||
title: const Text('Item 1'), | ||
|