💫 Better loading animation
This commit is contained in:
		| @@ -1,11 +1,11 @@ | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter_animate/flutter_animate.dart'; | ||||
| import 'package:get/get.dart'; | ||||
| import 'package:get/get_connect/http/src/exceptions/exceptions.dart'; | ||||
| import 'package:google_fonts/google_fonts.dart'; | ||||
| import 'package:solian/exceptions/request.dart'; | ||||
| import 'package:solian/exts.dart'; | ||||
| import 'package:solian/providers/auth.dart'; | ||||
| import 'package:solian/widgets/loading_indicator.dart'; | ||||
|  | ||||
| class NotificationPreferencesScreen extends StatefulWidget { | ||||
|   const NotificationPreferencesScreen({super.key}); | ||||
| @@ -76,7 +76,7 @@ class _NotificationPreferencesScreenState | ||||
|   Widget build(BuildContext context) { | ||||
|     return Column( | ||||
|       children: [ | ||||
|         if (_isBusy) const LinearProgressIndicator().animate().scaleX(), | ||||
|         LoadingIndicator(isActive: _isBusy), | ||||
|         ListTile( | ||||
|           tileColor: Theme.of(context).colorScheme.surfaceContainer, | ||||
|           contentPadding: const EdgeInsets.symmetric(horizontal: 24), | ||||
|   | ||||
| @@ -1,11 +1,11 @@ | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter/services.dart'; | ||||
| import 'package:flutter_animate/flutter_animate.dart'; | ||||
| import 'package:get/get.dart'; | ||||
| import 'package:get/get_connect/http/src/exceptions/exceptions.dart'; | ||||
| import 'package:solian/exceptions/request.dart'; | ||||
| import 'package:solian/exts.dart'; | ||||
| import 'package:solian/providers/auth.dart'; | ||||
| import 'package:solian/widgets/loading_indicator.dart'; | ||||
|  | ||||
| class AuthPreferencesScreen extends StatefulWidget { | ||||
|   const AuthPreferencesScreen({super.key}); | ||||
| @@ -67,7 +67,7 @@ class _AuthPreferencesScreenState extends State<AuthPreferencesScreen> { | ||||
|   Widget build(BuildContext context) { | ||||
|     return Column( | ||||
|       children: [ | ||||
|         if (_isBusy) const LinearProgressIndicator().animate().scaleX(), | ||||
|         LoadingIndicator(isActive: _isBusy), | ||||
|         ListTile( | ||||
|           tileColor: Theme.of(context).colorScheme.surfaceContainer, | ||||
|           contentPadding: const EdgeInsets.symmetric(horizontal: 24), | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter_animate/flutter_animate.dart'; | ||||
| import 'package:gap/gap.dart'; | ||||
| import 'package:get/get.dart'; | ||||
| import 'package:image_cropper/image_cropper.dart'; | ||||
| @@ -12,6 +11,7 @@ import 'package:solian/providers/auth.dart'; | ||||
| import 'package:solian/providers/content/attachment.dart'; | ||||
| import 'package:solian/services.dart'; | ||||
| import 'package:solian/widgets/account/account_avatar.dart'; | ||||
| import 'package:solian/widgets/loading_indicator.dart'; | ||||
|  | ||||
| class PersonalizeScreen extends StatefulWidget { | ||||
|   const PersonalizeScreen({super.key}); | ||||
| @@ -188,7 +188,7 @@ class _PersonalizeScreenState extends State<PersonalizeScreen> { | ||||
|  | ||||
|     return ListView( | ||||
|       children: [ | ||||
|         if (_isBusy) const LinearProgressIndicator().animate().scaleX(), | ||||
|         LoadingIndicator(isActive: _isBusy), | ||||
|         const Gap(24), | ||||
|         Stack( | ||||
|           children: [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user