19 lines
407 B
Dart
19 lines
407 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class BmiCard extends StatelessWidget {
|
|
final double value;
|
|
final String time;
|
|
|
|
const BmiCard({super.key, required this.value, required this.time});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Card(
|
|
child: ListTile(
|
|
title: Text("BMI: ${value.toStringAsFixed(2)}"),
|
|
subtitle: Text("Waktu: $time"),
|
|
),
|
|
);
|
|
}
|
|
}
|