import 'dart:io';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../theme/colors/app_colors.dart';

class CustomLoadingWidget extends StatelessWidget {
  final Color? color;

  const CustomLoadingWidget({super.key, this.color});

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Platform.isAndroid
            ? CircularProgressIndicator(
              color: color ?? LightThemeColors.lightGrey,
            )
            : CupertinoActivityIndicator(color: color),
      ],
    );
  }
}
