47 lines
1.2 KiB
Dart
47 lines
1.2 KiB
Dart
import 'package:ftc_mobile_app/ftc_mobile_app.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class CareNoteOptionCard extends StatelessWidget {
|
|
final String icon;
|
|
final String name;
|
|
|
|
const CareNoteOptionCard({
|
|
super.key,
|
|
required this.icon,
|
|
required this.name,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Card(
|
|
elevation: 2,
|
|
shadowColor: CustomAppColors.kLightGreyColor,
|
|
surfaceTintColor: Colors.white,
|
|
color: Colors.white,
|
|
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(4).r),
|
|
child: Padding(
|
|
padding: REdgeInsets.all(8),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
CustomImageWidget(
|
|
imagePath: icon,
|
|
height: 24.r,
|
|
width: 24.r,
|
|
),
|
|
12.verticalSpace,
|
|
CustomTextWidget(
|
|
text: name,
|
|
alignment: Alignment.center,
|
|
isExpanded: false,
|
|
fontWeight: FontWeight.w600,
|
|
fontColor: CustomAppColors.kDarkBlueTextColor,
|
|
fontSize: 14.sp)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|