Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -12,12 +12,14 @@ class CustomToast extends StatelessWidget {
Widget build(BuildContext context) {
final ThemeData theme = Theme.of(context);
return Container(
margin:
EdgeInsets.only(bottom: MediaQuery.paddingOf(context).bottom + 30),
margin: EdgeInsets.only(
bottom: MediaQuery.paddingOf(context).bottom + 30,
),
padding: const EdgeInsets.symmetric(horizontal: 17, vertical: 10),
decoration: BoxDecoration(
color:
theme.colorScheme.primaryContainer.withValues(alpha: toastOpacity),
color: theme.colorScheme.primaryContainer.withValues(
alpha: toastOpacity,
),
borderRadius: const BorderRadius.all(Radius.circular(20)),
),
child: Text(
@@ -47,19 +49,22 @@ class LoadingWidget extends StatelessWidget {
color: theme.dialogBackgroundColor,
borderRadius: const BorderRadius.all(Radius.circular(15)),
),
child: Column(mainAxisSize: MainAxisSize.min, children: [
//loading animation
CircularProgressIndicator(
strokeWidth: 3,
valueColor: AlwaysStoppedAnimation(onSurfaceVariant),
),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
//loading animation
CircularProgressIndicator(
strokeWidth: 3,
valueColor: AlwaysStoppedAnimation(onSurfaceVariant),
),
//msg
Container(
margin: const EdgeInsets.only(top: 20),
child: Text(msg, style: TextStyle(color: onSurfaceVariant)),
),
]),
//msg
Container(
margin: const EdgeInsets.only(top: 20),
child: Text(msg, style: TextStyle(color: onSurfaceVariant)),
),
],
),
);
}
}