selfprivacy.org.app/lib/ui/components/cards/outlined_card.dart

23 lines
555 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class OutlinedCard extends StatelessWidget {
const OutlinedCard({
required this.child,
super.key,
});
final Widget child;
@override
Widget build(final BuildContext context) => Card(
2022-09-15 21:08:32 +00:00
elevation: 0.0,
shape: RoundedRectangleBorder(
borderRadius: const BorderRadius.all(Radius.circular(12)),
side: BorderSide(
color: Theme.of(context).colorScheme.outline,
),
),
clipBehavior: Clip.antiAlias,
child: child,
);
}