Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
483 B
1
Indexable
Never
class CustomButton extends StatelessWidget {
  final Widget child;
  const CustomButton({
    Key? key,
    required this.child,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(12.0),
      child: Material(
        borderRadius: BorderRadius.circular(12.0),
        clipBehavior: Clip.hardEdge,
        color: Pallete.backgroundColor,
        child: child,
      ),
    );
  }
}
Leave a Comment