Pages Implementation
Implemented Profile and Recent Conversation skeleton pages
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user