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), color: Theme.of(context).colorScheme.surfaceContainerLow.withOpacity(0.5), 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) ], ), ); } }