mirrored_repositories/Flutter-AuthX/lib/view/sign up
import 'package:flutter/material.dart';

import '../../../res/app_color.dart';

class IconContainer extends StatelessWidget {
  final Widget widget;
  const IconContainer({super.key, required this.widget});
  @override
  Widget build(BuildContext context) {
    var size=MediaQuery.sizeOf(context);
    return Container(
      height: 60,
      width: size.width * 0.43,
      alignment: Alignment.center,
      decoration: BoxDecoration(
          color: primaryColor,
          borderRadius: BorderRadius.circular(14),
          boxShadow: [
            BoxShadow(
                color: Colors.white.withOpacity(.2),
                offset: const Offset(1,0)
            ),
            BoxShadow(
                color: Colors.white.withOpacity(.2),
                offset: const Offset(0,1)
            ),
            BoxShadow(
                color: Colors.white.withOpacity(.2),
                offset: const Offset(-1,0)
            ),
            BoxShadow(
                color: Colors.white.withOpacity(.2),
                offset: const Offset(0,-1)
            ),
          ]
      ),
      child: widget,
    );
  }
}
