Pages Implementation

Implemented Profile and Recent Conversation skeleton pages
This commit is contained in:
2025-02-07 20:13:07 +00:00
parent 7504f341d2
commit 7e33872886
15 changed files with 448 additions and 63 deletions
+4 -5
View File
@@ -224,7 +224,6 @@ class _RegisterationPageState extends State<RegisterationPage> {
width: _deviceWidth,
child: MaterialButton(
onPressed: () {
String name = _name!;
if (_image == null) {
SnackBarService.instance
.showSnackBarError("Please Select Image");
@@ -234,12 +233,12 @@ class _RegisterationPageState extends State<RegisterationPage> {
_auth.createUser(
_email!,
_password!,
name,
_name!,
(String _uid) async {
var _url = await _auth.uploadUserImage(_image, _uid);
_auth.createUserInDB(_uid, _email!, name, _url);
_auth.createUserInDB(_uid, _email!, _name!, _url);
if (_auth.status == AuthStatus.authenticated) {
_auth.loginWithEmailAndPassword(_email!, _password!);
_auth.login(_email!, _password!);
}
//
},
@@ -248,7 +247,7 @@ class _RegisterationPageState extends State<RegisterationPage> {
},
color: Colors.blue,
child: Text(
'Register',
'Register'.toUpperCase(),
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w700,