33 lines
776 B
Dart
33 lines
776 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class NumberBlock extends StatelessWidget {
|
|
final String title;
|
|
final String number;
|
|
|
|
const NumberBlock({super.key, required this.title, required this.number});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Padding(
|
|
padding: const EdgeInsets.all(0),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Text(
|
|
number,
|
|
style: const TextStyle(
|
|
fontSize: 23,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
Text(
|
|
title,
|
|
style: const TextStyle(fontSize: 12, color: Colors.grey),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|