From 8a9fa5cdf7ecbfa76e7effc5ba97ee13125f4fd5 Mon Sep 17 00:00:00 2001 From: Dharshin1 Date: Sun, 25 Jan 2026 12:34:07 +0530 Subject: [PATCH 1/3] Issue:#8 Profile Screen UI --- lib/screens/profileScreen_dharshini.dart | 81 ++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 lib/screens/profileScreen_dharshini.dart diff --git a/lib/screens/profileScreen_dharshini.dart b/lib/screens/profileScreen_dharshini.dart new file mode 100644 index 0000000..f8691ca --- /dev/null +++ b/lib/screens/profileScreen_dharshini.dart @@ -0,0 +1,81 @@ +import 'package:flutter/material.dart'; + +class ProfileScreenDharshini extends StatelessWidget { + const ProfileScreenDharshini({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text("Profile"), + centerTitle: true, + ), + body: Column( + children: [ + const SizedBox(height: 30), + + // Avatar + CircleAvatar( + radius: 45, + backgroundColor: Colors.grey.shade300, + child: const Icon( + Icons.person, + size: 50, + color: Colors.white, + ), + ), + + const SizedBox(height: 12), + + // User Name + const Text( + "John Doe", + style: TextStyle( + fontSize: 18, + fontWeight: FontWeight.bold, + ), + ), + + const SizedBox(height: 4), + + // Email + const Text( + "john.doe@email.com", + style: TextStyle( + fontSize: 14, + color: Colors.grey, + ), + ), + + const SizedBox(height: 30), + + // Options list + const Divider(), + + ListTile( + leading: const Icon(Icons.edit), + title: const Text("Edit Profile"), + trailing: const Icon(Icons.arrow_forward_ios, size: 16), + onTap: () {}, + ), + + ListTile( + leading: const Icon(Icons.settings), + title: const Text("Settings"), + trailing: const Icon(Icons.arrow_forward_ios, size: 16), + onTap: () {}, + ), + + ListTile( + leading: const Icon(Icons.logout, color: Colors.red), + title: const Text( + "Logout", + style: TextStyle(color: Colors.red), + ), + onTap: () {}, + ), + ], + ), + ); + } +} From 2529dc49795a7bb4df0869cb974481c3d4fa51c1 Mon Sep 17 00:00:00 2001 From: Dharshin1 Date: Sun, 25 Jan 2026 12:48:18 +0530 Subject: [PATCH 2/3] Issue:#6 Bottom Navigation Skeleton UI --- lib/widgets/bottomNav_dharshini.dart | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 lib/widgets/bottomNav_dharshini.dart diff --git a/lib/widgets/bottomNav_dharshini.dart b/lib/widgets/bottomNav_dharshini.dart new file mode 100644 index 0000000..cdde48b --- /dev/null +++ b/lib/widgets/bottomNav_dharshini.dart @@ -0,0 +1,51 @@ +import 'package:flutter/material.dart'; + +class BottomNavDharshini extends StatefulWidget { + const BottomNavDharshini({super.key}); + + @override + State createState() => _BottomNavDharshiniState(); +} + +class _BottomNavDharshiniState extends State { + int _selectedIndex = 0; + + static const List _pages = [ + Center(child: Text('Home Screen', style: TextStyle(fontSize: 24))), + Center(child: Text('Menu Screen', style: TextStyle(fontSize: 24))), + Center(child: Text('Profile Screen', style: TextStyle(fontSize: 24))), + ]; + + void _onItemTapped(int index) { + setState(() { + _selectedIndex = index; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: _pages[_selectedIndex], + bottomNavigationBar: BottomNavigationBar( + currentIndex: _selectedIndex, + onTap: _onItemTapped, + selectedItemColor: Colors.blue, + unselectedItemColor: Colors.grey, + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.home), + label: 'Home', + ), + BottomNavigationBarItem( + icon: Icon(Icons.menu), + label: 'Menu', + ), + BottomNavigationBarItem( + icon: Icon(Icons.person), + label: 'Profile', + ), + ], + ), + ); + } +} From 687ead8a5fc56cfbe529435c994edc0679ecc3d2 Mon Sep 17 00:00:00 2001 From: Dharshin1 Date: Sun, 25 Jan 2026 13:13:04 +0530 Subject: [PATCH 3/3] Issue:#5 Meal Card Widget UI --- lib/widgets/mealCard_dharshini.dart | 52 +++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 lib/widgets/mealCard_dharshini.dart diff --git a/lib/widgets/mealCard_dharshini.dart b/lib/widgets/mealCard_dharshini.dart new file mode 100644 index 0000000..4768465 --- /dev/null +++ b/lib/widgets/mealCard_dharshini.dart @@ -0,0 +1,52 @@ +import 'package:flutter/material.dart'; + +class MealCardDharshini extends StatelessWidget { + const MealCardDharshini({ + super.key, + this.mealName = "Sample Meal", + this.mealType = "Breakfast", + }); + + final String mealName; + final String mealType; + + @override + Widget build(BuildContext context) { + return Card( + elevation: 3, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12), + ), + margin: const EdgeInsets.all(8), + child: Padding( + padding: const EdgeInsets.all(16.0), + child: Row( + children: [ + const CircleAvatar( + radius: 30, + child: Icon(Icons.fastfood, size: 30), + ), + const SizedBox(width: 16), + Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + mealName, + style: const TextStyle( + fontSize: 18, + fontWeight: FontWeight.bold, + ), + ), + const SizedBox(height: 4), + Text( + mealType, + style: const TextStyle(color: Colors.grey), + ), + ], + ), + ], + ), + ), + ); + } +}