2024-10-13 13:31:15 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:gap/gap.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
class LoadingIndicator extends StatelessWidget {
|
|
|
|
const LoadingIndicator({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Container(
|
|
|
|
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 24),
|
2024-10-13 13:48:53 +00:00
|
|
|
color: Theme.of(context).colorScheme.surfaceContainerLow.withOpacity(0.5),
|
2024-10-13 13:31:15 +00:00
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
const SizedBox(
|
|
|
|
height: 16,
|
|
|
|
width: 16,
|
|
|
|
child: CircularProgressIndicator(strokeWidth: 2.5),
|
|
|
|
),
|
|
|
|
const Gap(8),
|
|
|
|
Text('loading'.tr)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|