autosos_flutter/lib/pages/home/widgets/number_block.dart

33 lines
776 B
Dart
Raw Normal View History

2024-02-22 18:31:34 +08:00
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) {
2024-02-22 19:22:03 +08:00
return Padding(
padding: const EdgeInsets.all(0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: [
Text(
number,
2024-02-22 18:31:34 +08:00
style: const TextStyle(
fontSize: 23,
fontWeight: FontWeight.bold,
),
),
2024-02-22 19:22:03 +08:00
Text(
2024-02-22 18:31:34 +08:00
title,
style: const TextStyle(fontSize: 12, color: Colors.grey),
),
2024-02-22 19:22:03 +08:00
],
),
2024-02-22 18:31:34 +08:00
);
}
}