You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SmartFit_Mobile/lib/common_widget/container_stats.dart

57 lines
1.5 KiB

import 'package:flutter/material.dart';
class ContainerStats extends StatelessWidget {
const ContainerStats(this.value, this.designation, {Key? key})
: super(key: key);
final String value;
final String designation;
@override
Widget build(BuildContext context) {
return Container(
height: 110,
width: 110,
padding: const EdgeInsets.all(8),
margin: const EdgeInsets.symmetric(vertical: 5),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(15),
border: Border.all(
color: const Color(0xffe1e1e1),
),
boxShadow: const [
BoxShadow(
color: Colors.black12,
offset: Offset(3, 3),
blurRadius: 3,
),
]),
child: Stack(
children: [
Align(
alignment: Alignment.bottomLeft,
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
designation,
style: const TextStyle(fontSize: 10),
),
Text(
value,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.w800,
),
),
],
),
)
],
),
);
}
}