Flutter Login, Signup with Sqlite DB - 3 by Sample Code | Flutter Tutorial | Flutter 2021

preview_player
Показать описание
ZEGOCLOUD allows you to easily build video, voice, live streaming and chat apps within minutes.

3rd Part

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

00:00 - Intro
00:10 - Final Output Demo 2nd Part
01:28 - Start Project
03:44 - Create Save User Function
04:30 - Create User Model Class
26:00 - Create Get User Details Function
36:18 - Create Home Screen
48:16 - Run final Application 3rd Part

All Lessons (Login, Signup with Sqlite DB):-

#sampe_code
#login_signup_with_sqlite_db
#zegocloud #webrtc #uikits
Рекомендации по теме
Комментарии
Автор

Hi may I know what's function of usermodel.dart folder? If we didnt include the dart folder, it will affect our database? And why I got an error for usermodel.dart ? I'm stuck at this part

qchannel
Автор

volvi a ver el codigo y lo tengo igual y me suelta este error The input method toggled cursor monitoring off

agmusic
Автор

Null check operator used on a null value.. When i try to SignUp...

nafrontfazie
Автор

I have a problem with getApplicationDocumentsDirectory, how can I go about it

owoeyeoluwajuwonlo
Автор

have some problem with nullSafety when need to save data in database :(

francescofreddi
Автор

I have a problem with 'user not found ' or I mean details for sign up not same for sign in .... I watched the video 7 times and still getting the same problem even if I insert the right details


my code :
login() async {
String email = emailController.text;
String passwd = passwordController.text;
if (email.isEmpty) {
return 'email must not be empty'.toUpperCase();
} else if (passwd.isEmpty) {
return 'password must not be empty'.toUpperCase();
} else {
// check (emailController.text, passwordController.text)
await dbHelper.getUserLoginDetails(email, passwd).then((userData) {
if (userData != null) {
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(builder: (context) => HomeLayout()),
(Route<dynamic> route) => false,
);
print('log in success');
print('log in Email is : ${emailController.text}');
print('log in Password is : ${passwordController.text}');
} else {
showDialog(
context: context,
builder: (_) => AlertDialog(
insetPadding: const EdgeInsets.symmetric(
horizontal: 75.0,
vertical: 300.0,
),
title: Container(
height: 60,
color: Colors.red,
child: const Icon(
Icons.error,
color: Colors.white,
size: 30.0,
),
),
content: Center(
child: Column(
children: const [
Text(
'Login Failure !',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text(
'please check your user details again, Email and password does not match ',
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 15),
),
],
)),
));
}
}).catchError((error) {
print('Error Happened While Logging In $error');
showDialog(
context: context,
builder: (_) => AlertDialog(
insetPadding: const EdgeInsets.symmetric(
horizontal: 75.0,
vertical: 300.0,
),
title: Container(
height: 60,
color: Colors.red,
child: const Icon(
Icons.error,
color: Colors.white,
size: 30.0,
),
),
content: Center(
child: Column(
children: const [
Text(
'Login Failed !',
style: TextStyle(fontWeight: FontWeight.bold),
),
Text(
'Login Failed !',
style: TextStyle(
fontWeight: FontWeight.bold, fontSize: 15),
),
],
)),
));
});
}
}

moustafamohammed