You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
diplomatic-quarter/lib/vital_signs/components/vital_sign_widget.dart

42 lines
983 B
Dart

import 'package:flutter/material.dart';
class VitalSignWidget extends StatelessWidget {
final String vitalSignName;
final String vitalSignValue;
final Color? textColor;
const VitalSignWidget({
Key? key,
required this.vitalSignName,
required this.vitalSignValue,
this.textColor,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
margin: const EdgeInsets.fromLTRB(0, 0, 0, 2),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
vitalSignName,
style: TextStyle(
fontSize: 14,
color: textColor ?? Colors.white,
),
),
Text(
vitalSignValue,
style: TextStyle(
fontSize: 14,
color: textColor ?? Colors.white,
fontWeight: FontWeight.bold,
),
),
],
),
);
}
}