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, ), ), ], ), ); } }