ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Hayee sirr thnku so muchh 🥰🥰🥰🥰🥰
Nice explanation of the JWT token.
hi , thank you for the good video, i have a question can i build both of flutter app and node backend in the same IDE , vs code for example ?
Yes, You can
Thank you very much sir. This video was really helpful
im having a problem, when i terminate the app it only shows white screen and no email
very helpful
Glad to hear that
Could you pls share details of what type of architecture pattern is used over here
Sir ji aap ktini oyaar se smajate ho 😊😊
Can we fetch the token in any page directly from the shared preferences?
yes
Hello! My token is null, what to do? Thanks!
Watch the video, Might be token is not getting generated properly, put a log n check is token is getting allowed or no
use await while generating token
THE BEST !
how to add logout feature
Just add a button, when the button is clicked by used clear the JWT token stored in SharedPreferences and Navigate the used to login page.
@@ProtoCodersPoint thanks
Simply you can clear the token from the shared preference
can you please share login.dart and api code ?
It’s in description u can get it from there
my token is null, wht to do?
Initially for new users..it will be null
Mera bhi same error aa rha hai aap issue resolve hua kya agar ha toh mujhe guide kro thora 😊
Will check n update about this issue asap
Your token is null😅😅😅
my token is nullthis condition use = class _SplashScreenPageState extends State { time() async { final SharedPreferences prefs = await SharedPreferences.getInstance(); var token = prefs.getString("accessToken"); Future.delayed( const Duration(seconds: 3), () { if (token != null) { Navigator.pushAndRemoveUntil( context, MaterialPageRoute( builder: (context) => const HomePage(), ), (route) => false); } else { Navigator.pushAndRemoveUntil( context, MaterialPageRoute( builder: (context) => const LoginPage(), ), (route) => false); } }, ); } @override void initState() { // TODO: implement setState super.initState(); time(); }
bro please try with wrong password once
E/flutter (23037): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Field 'prefs' has not been initialized.E/flutter (23037): #0 _LoginDemoState.prefs (package:frontend/pages/login/login.dart)E/flutter (23037): #1 _LoginDemoState.loginUser (package:frontend/pages/login/login.dart:44:9)E/flutter (23037): E/flutter (23037):
How you solved it?
I get this error Error: Superclass has no method named 'initState'. super.initState();where should the initState be defined rather?and what do we need this for exactly?Thank you for your time!in main.dart too ?
Hayee sirr thnku so muchh 🥰🥰🥰🥰🥰
Nice explanation of the JWT token.
hi , thank you for the good video, i have a question can i build both of flutter app and node backend in the same IDE , vs code for example ?
Yes, You can
Thank you very much sir. This video was really helpful
im having a problem, when i terminate the app it only shows white screen and no email
very helpful
Glad to hear that
Could you pls share details of what type of architecture pattern is used over here
Sir ji aap ktini oyaar se smajate ho 😊😊
Can we fetch the token in any page directly from the shared preferences?
yes
Hello! My token is null, what to do? Thanks!
Watch the video,
Might be token is not getting generated properly, put a log n check is token is getting allowed or no
use await while generating token
THE BEST !
how to add logout feature
Just add a button, when the button is clicked by used clear the JWT token stored in SharedPreferences and Navigate the used to login page.
@@ProtoCodersPoint thanks
Simply you can clear the token from the shared preference
can you please share login.dart and api code ?
It’s in description u can get it from there
my token is null, wht to do?
Initially for new users..it will be null
Mera bhi same error aa rha hai aap issue resolve hua kya agar ha toh mujhe guide kro thora 😊
Will check n update about this issue asap
Your token is null😅😅😅
my token is null
this condition use =
class _SplashScreenPageState extends State {
time() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
var token = prefs.getString("accessToken");
Future.delayed(
const Duration(seconds: 3),
() {
if (token != null) {
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => const HomePage(),
),
(route) => false);
} else {
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => const LoginPage(),
),
(route) => false);
}
},
);
}
@override
void initState() {
// TODO: implement setState
super.initState();
time();
}
bro please try with wrong password once
my token is null
this condition use =
class _SplashScreenPageState extends State {
time() async {
final SharedPreferences prefs = await SharedPreferences.getInstance();
var token = prefs.getString("accessToken");
Future.delayed(
const Duration(seconds: 3),
() {
if (token != null) {
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => const HomePage(),
),
(route) => false);
} else {
Navigator.pushAndRemoveUntil(
context,
MaterialPageRoute(
builder: (context) => const LoginPage(),
),
(route) => false);
}
},
);
}
@override
void initState() {
// TODO: implement setState
super.initState();
time();
}
E/flutter (23037): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Field 'prefs' has not been initialized.
E/flutter (23037): #0 _LoginDemoState.prefs (package:frontend/pages/login/login.dart)
E/flutter (23037): #1 _LoginDemoState.loginUser (package:frontend/pages/login/login.dart:44:9)
E/flutter (23037):
E/flutter (23037):
How you solved it?
I get this error
Error: Superclass has no method named 'initState'.
super.initState();
where should the initState be defined rather?
and what do we need this for exactly?
Thank you for your time!
in main.dart too ?