update
This commit is contained in:
parent
6e4b2249b0
commit
a56ed92863
6 changed files with 128 additions and 125 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
|
|
@ -7,7 +5,6 @@ import 'package:gap/gap.dart';
|
|||
import 'package:pharmacy_mobile/auth/auth_service.dart';
|
||||
import 'package:pharmacy_mobile/widgets/button_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/input_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/logo_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/page_background_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/snackbar_widget.dart';
|
||||
import 'package:pharmacy_mobile/widgets/text_widget.dart';
|
||||
|
|
@ -31,8 +28,6 @@ class _LoginPageState extends State<LoginPage> {
|
|||
bool _isLoading = false;
|
||||
|
||||
void _signIn() async {
|
||||
// if (_isLoading) return;
|
||||
|
||||
final email = _emailController.text;
|
||||
final password = _passwordController.text;
|
||||
|
||||
|
|
@ -81,7 +76,6 @@ class _LoginPageState extends State<LoginPage> {
|
|||
final errorMessage = e.message;
|
||||
|
||||
if (mounted) {
|
||||
// showNotification(context, 'Error: $errorMessage', false);
|
||||
if (errorMessage == 'Invalid login credentials') {
|
||||
showNotification(context, 'Error: Invalid Email or Password', false);
|
||||
}
|
||||
|
|
@ -90,12 +84,6 @@ class _LoginPageState extends State<LoginPage> {
|
|||
} finally {
|
||||
setState(() => _isLoading = false);
|
||||
}
|
||||
|
||||
// if (mounted) {
|
||||
// context.showSnackBar('Check your email for a login link!');
|
||||
|
||||
// _emailController.clear();
|
||||
// }
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue