mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 15:54:35 +01:00
new: icloud manual
This commit is contained in:
21
lib/view/widget/cardx.dart
Normal file
21
lib/view/widget/cardx.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CardX extends StatelessWidget {
|
||||
const CardX(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,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user