forked from eatvio/eatvio_app
38 lines
1.1 KiB
Dart
38 lines
1.1 KiB
Dart
import 'package:eatvio_app/core/theme/custom_text_style.dart';
|
|
import 'package:eatvio_app/core/theme/theme_helper.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class StatisticBouble extends StatelessWidget {
|
|
const StatisticBouble({super.key, required this.number, required this.title});
|
|
final int number;
|
|
final String title;
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Container(
|
|
height: 80,
|
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
|
decoration: BoxDecoration(
|
|
color: appTheme.gray100,
|
|
borderRadius: BorderRadius.circular(20),
|
|
),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text(
|
|
number.toString(),
|
|
style: TextStyles.headingXLSemibold.copyWith(color: appTheme.blueA400),
|
|
),
|
|
const SizedBox(
|
|
height: 4,
|
|
),
|
|
Text(
|
|
title,
|
|
textAlign: TextAlign.center,
|
|
style: TextStyles.textXSSemibold.copyWith(color: appTheme.black),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|