Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .idea/GenAside1.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added GenAsidefinale/assets/ui1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added GenAsidefinale/assets/ui2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion GenAsidefinale/lib/screens/donate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class donate extends StatelessWidget {
width: c.screenwidth / 1.5,
height: c.screenwidth/1.8,
child: const Text(
'To help the cause further, you can donate money, medication, or clothes to the people of Israel through the Red Crescent Page',
'To help the cause further, you can donate money, medication, or clothes to the people of Palestine through the Red Crescent Page',
style: TextStyle(fontWeight: FontWeight.bold,),
textAlign: TextAlign.justify,
),
Expand Down
78 changes: 22 additions & 56 deletions GenAsidefinale/lib/screens/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ import 'package:genasidefinale/screens/scrollpage.dart';
class profile extends StatelessWidget {
final TextEditingController _usernameController = TextEditingController();

late String email;


profile() {
final User? user = FirebaseAuth.instance.currentUser;
email = user?.email ?? "Username";
}

@override
Widget build(BuildContext context) {
constant c = constant(context);
Expand Down Expand Up @@ -73,7 +81,7 @@ class profile extends StatelessWidget {
child: TextField(
controller: _usernameController,
decoration: InputDecoration(
hintText: 'Username',
hintText: email,
hintStyle: TextStyle(
color: Colors.black,
),
Expand Down Expand Up @@ -131,66 +139,24 @@ class profile extends StatelessWidget {
),
),
),// hedha bch yethat fih l mdp ml bd
Align(
alignment: Alignment.topLeft,
child:
Container(
margin: EdgeInsets.only(top: c.screenheight/75, left: 22 ),
child: const Text(
'Country',
style: TextStyle(fontWeight: FontWeight.bold,),
textAlign: TextAlign.justify,
),
),
),
Container(
margin: EdgeInsets.only(top: c.screenheight/120 ),
child: Container(
width: c.screenwidth - 40,
height: c.screenheight * 0.05 ,
child: TextField(
controller: _usernameController,
decoration: InputDecoration(
hintText: 'Country',
hintStyle: TextStyle(
color: Colors.black,
),
suffixIcon: Icon(
Icons.edit,
color: c.rouge, // Adjust the color as needed
),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(15),
borderSide: BorderSide(
color: Colors.red, // Adjust the color as needed
width: 1,
),
),
),
),
),
),// hedha bch yethat fih l bled ml bd

],
),
),
],
),//stack
floatingActionButton: Positioned(
bottom: c.screenheight / 13,
right: c.screenwidth / 2 - 20,
child: FloatingActionButton(
onPressed: () async {
// Perform the logout action here
await FirebaseAuth.instance.signOut();
// Redirect to the login screen or any other screen after logout
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => landingpage()),
);
},
child: Icon(Icons.exit_to_app),
backgroundColor: c.rouge,
),
floatingActionButton: FloatingActionButton(
onPressed: () async {
// Perform the logout action here
await FirebaseAuth.instance.signOut();
// Redirect to the login screen or any other screen after logout
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => landingpage()),
);
},
child: Icon(Icons.exit_to_app),
backgroundColor: c.rouge,
),

bottomNavigationBar: CBottomAppBar(),
Expand Down