Files
flutter_server_box/lib/view/widget/round_rect_card.dart
2023-05-07 01:28:51 +08:00

22 lines
496 B
Dart

import 'package:flutter/material.dart';
class RoundRectCard extends StatelessWidget {
const RoundRectCard(this.child, {Key? key, this.color}) : super(key: key);
final Widget child;
final Color? color;
@override
Widget build(BuildContext context) {
return Card(
key: key,
clipBehavior: Clip.antiAlias,
color: color,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(17)),
),
child: child,
);
}
}