Skip to content

Commit

Permalink
Add login screen and update user account header
Browse files Browse the repository at this point in the history
  • Loading branch information
Syipmong committed Feb 13, 2024
1 parent 6c415ec commit 14445f1
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
16 changes: 16 additions & 0 deletions lib/auth/login.dart
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 added lib/auth/signup.dart
Empty file.
9 changes: 8 additions & 1 deletion lib/screens/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 14445f1

Please sign in to comment.