48 lines
1.3 KiB
Dart
48 lines
1.3 KiB
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:recomendagro/assets/theme/colors.dart';
|
||
|
|
||
|
class CardInfoCardWidget extends StatelessWidget {
|
||
|
final String svg;
|
||
|
final String title;
|
||
|
const CardInfoCardWidget({super.key, required this.svg, required this.title});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Expanded(
|
||
|
child: Container(
|
||
|
height: 200,
|
||
|
decoration: BoxDecoration(
|
||
|
color: Colors.white,
|
||
|
borderRadius: BorderRadius.circular(18),
|
||
|
boxShadow: [
|
||
|
BoxShadow(
|
||
|
color: AppColorLight.primaryColor,
|
||
|
spreadRadius: 0,
|
||
|
blurRadius: 1,
|
||
|
blurStyle: BlurStyle.outer
|
||
|
)
|
||
|
]
|
||
|
),
|
||
|
child: Column(
|
||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||
|
children: [
|
||
|
SizedBox(
|
||
|
child: Image.asset(
|
||
|
svg,
|
||
|
fit: BoxFit.fill
|
||
|
)
|
||
|
),
|
||
|
const SizedBox(height: 10),
|
||
|
Text(title,
|
||
|
style: Theme.of(context).textTheme.bodySmall?.copyWith(
|
||
|
fontWeight: FontWeight.bold,
|
||
|
color: AppColorLight.primaryColor,
|
||
|
fontSize: 15
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
}
|