import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; class CustomCard extends StatefulWidget { final double? elevation; final Color? color; final Color? tintcolor; final Widget? child; final double? bradius; const CustomCard( {super.key, this.elevation, this.color, this.bradius, this.tintcolor, this.child}); @override State createState() => _CustomCardState(); } class _CustomCardState extends State { @override Widget build(BuildContext context) { return Card( elevation: widget.elevation!, color: widget.color, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(widget.bradius!)), child: widget.child, ); } }