mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 03:56:56 +00:00
28 lines
710 B
Dart
28 lines
710 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class OutlinedCard extends StatelessWidget {
|
|
const OutlinedCard({
|
|
required this.child,
|
|
this.borderColor,
|
|
this.borderWidth,
|
|
super.key,
|
|
});
|
|
|
|
final Widget child;
|
|
final Color? borderColor;
|
|
final double? borderWidth;
|
|
@override
|
|
Widget build(final BuildContext context) => Card(
|
|
elevation: 0.0,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: const BorderRadius.all(Radius.circular(12)),
|
|
side: BorderSide(
|
|
color: borderColor ?? Theme.of(context).colorScheme.outline,
|
|
width: borderWidth ?? 1.0,
|
|
),
|
|
),
|
|
clipBehavior: Clip.antiAlias,
|
|
child: child,
|
|
);
|
|
}
|