import 'package:flutter/widgets.dart';
import 'package:flutter_spinkit/flutter_spinkit.dart';

import '../../../common/theme/theme.dart';
import '../spaces/space.dart';

class LoaderWithText extends StatelessWidget {
  const LoaderWithText({super.key});

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        SpinKitFadingCircle(color: AppColor.primary, size: 24),
        SpaceWidth(10),
        Text(
          'Loading...',
          style: AppStyle.md.copyWith(
            color: AppColor.primary,
            fontWeight: FontWeight.w500,
          ),
        ),
      ],
    );
  }
}
