DiscoverModule/lib/contacts_module/custom_widget/custom_card.dart

35 lines
785 B
Dart
Raw Normal View History

2024-11-22 10:38:43 +00:00
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<CustomCard> createState() => _CustomCardState();
}
class _CustomCardState extends State<CustomCard> {
@override
Widget build(BuildContext context) {
return Card(
elevation: widget.elevation!,
color: widget.color,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(widget.bradius!)),
child: widget.child,
);
}
}