Compare commits
2 Commits
a8a42c839c
...
184975a77f
| Author | SHA1 | Date |
|---|---|---|
|
|
184975a77f | |
|
|
288637f4d5 |
|
|
@ -127,13 +127,13 @@ class _LoginState extends State<Login> {
|
||||||
listener: (context, state) {
|
listener: (context, state) {
|
||||||
if (state is AuthSuccess) {
|
if (state is AuthSuccess) {
|
||||||
Navigator.push(
|
Navigator.push(
|
||||||
context,
|
context,
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) =>
|
builder: (context) =>
|
||||||
OTPverifaction(phoneNumber: phoneController.text),
|
OTPverifaction(phoneNumber: phoneController.text),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else if (state is AuthError) {
|
} else if (state is AuthError) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
SnackBar(
|
SnackBar(
|
||||||
duration: Duration(seconds: 2),
|
duration: Duration(seconds: 2),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue