diff --git a/.idea/GenAside1.iml b/.idea/GenAside1.iml index 0c1decb..8e6fd7f 100644 --- a/.idea/GenAside1.iml +++ b/.idea/GenAside1.iml @@ -6,6 +6,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..57eb7fe 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/GenAsidefinale/assets/ui1.png b/GenAsidefinale/assets/ui1.png new file mode 100644 index 0000000..dfe1274 Binary files /dev/null and b/GenAsidefinale/assets/ui1.png differ diff --git a/GenAsidefinale/assets/ui2.png b/GenAsidefinale/assets/ui2.png new file mode 100644 index 0000000..2e033bf Binary files /dev/null and b/GenAsidefinale/assets/ui2.png differ diff --git a/GenAsidefinale/lib/screens/donate.dart b/GenAsidefinale/lib/screens/donate.dart index 049eaee..9b96d59 100644 --- a/GenAsidefinale/lib/screens/donate.dart +++ b/GenAsidefinale/lib/screens/donate.dart @@ -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, ), diff --git a/GenAsidefinale/lib/screens/profile.dart b/GenAsidefinale/lib/screens/profile.dart index 6fa7154..a798950 100644 --- a/GenAsidefinale/lib/screens/profile.dart +++ b/GenAsidefinale/lib/screens/profile.dart @@ -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); @@ -73,7 +81,7 @@ class profile extends StatelessWidget { child: TextField( controller: _usernameController, decoration: InputDecoration( - hintText: 'Username', + hintText: email, hintStyle: TextStyle( color: Colors.black, ), @@ -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(),