2023-02-17 11:35:05 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class ElevatedCard extends StatelessWidget {
|
2023-02-20 23:59:40 +01:00
|
|
|
final Widget child;
|
|
|
|
final String title;
|
|
|
|
|
|
|
|
const ElevatedCard({
|
|
|
|
Key? key,
|
|
|
|
required this.child,
|
|
|
|
required this.title,
|
|
|
|
}) : super(key: key);
|
2023-02-17 11:35:05 +01:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-02-20 23:59:40 +01:00
|
|
|
return Card(
|
|
|
|
elevation: 4.0,
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(16.0),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.all(16.0),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 18.0,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 8.0),
|
|
|
|
child,
|
|
|
|
],
|
2023-02-17 11:35:05 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|