mirrored_repositories/future_of_workout/lib/src/widgets
import 'package:flutter/material.dart';
import 'package:future_of_workout/src/styles/styles.dart';

class CustomBar extends StatelessWidget {
  const CustomBar({
    required this.child,
    this.padding = const EdgeInsets.all(8),
    this.onTap,
    super.key,
  });

  final Widget child;
  final void Function()? onTap;
  final EdgeInsets padding;

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTap,
      borderRadius: BorderRadius.circular(100),
      child: Ink(
        decoration: BoxDecoration(
          borderRadius: BorderRadius.circular(100),
          color: AppColors.white,
          boxShadow: [AppShadows.shadow15],
        ),
        child: Padding(
          padding: padding,
          child: child,
        ),
      ),
    );
  }
}
