class renaming

main_design2.0
zaid_daoud 2 years ago
parent ca673787f1
commit 5a645f13c0

@ -3,8 +3,8 @@ import 'package:test_sa/views/app_style/sizing.dart';
import '../../views/widgets/loaders/app_loading.dart';
class ALazyLoading extends StatelessWidget {
const ALazyLoading({Key key}) : super(key: key);
class AppLazyLoading extends StatelessWidget {
const AppLazyLoading({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {

@ -117,7 +117,7 @@ class _LoginPageState extends State<LoginPage> {
Future<void> _login() async {
if (!_formKey.currentState.validate()) return;
_formKey.currentState.save();
showDialog(context: context, barrierDismissible: false, builder: (context) => const ALazyLoading());
showDialog(context: context, barrierDismissible: false, builder: (context) => const AppLazyLoading());
int status = await _userProvider.login(user: _user);
Navigator.pop(context);
if (status >= 200 && status < 300 && _userProvider.user.isAuthenticated ?? false) {

Loading…
Cancel
Save