35 lines
785 B
Dart
35 lines
785 B
Dart
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,
|
|
);
|
|
}
|
|
}
|