mirrored_repositories/smart_shop_admin/lib
import 'package:flutter/material.dart';

class LoadingManagerScreen extends StatelessWidget {
  const LoadingManagerScreen(
      {super.key, required this.isLoading, required this.child});
  final bool isLoading;
  final Widget child;
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        child,
        if (isLoading) ...[
          Container(
            color: Colors.black.withOpacity(0.7),
          ),
          const Center(
              child: CircularProgressIndicator(
            color: Colors.black,
          )),
        ],
      ],
    );
  }
}
