

// ignore_for_file: deprecated_member_use

import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_svg/svg.dart';
import 'package:gshop/presentation/components/button/animation_button_effect.dart';
import 'package:gshop/presentation/style/style.dart';
import 'package:gshop/presentation/style/theme/theme.dart';

class FilterButton extends StatelessWidget {
  final CustomColorSet colors;
  final VoidCallback onTap;
  const FilterButton({Key? key, required this.colors, required this.onTap}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return  ButtonEffectAnimation(
      onTap: () {
        onTap.call();
      },
      child: Container(
        width: 40.r,
        height: 40.r,
        decoration: BoxDecoration(
            shape: BoxShape.circle,
            border: Border.all(color: colors.icon)),
        child: Center(
            child: SvgPicture.asset(
              "assets/svg/filter.svg",
              color: CustomStyle.textHint,
            )),
      ),
    );
  }
}
