import 'package:flutter/material.dart'; import 'package:she_healthy_desktop/utils/string_ext.dart'; import '../../../core/theme/app_primary_theme.dart'; import '../../../utils/tooltip_message.dart'; import '../generic/custom_arrow.dart'; import '../generic/custom_arrow_tooltip.dart'; class TableRowCustomCnn extends StatelessWidget { final String? val1, val2, val3; const TableRowCustomCnn( {Key? key, this.val1, this.val2, this.val3}) : super(key: key); @override Widget build(BuildContext context) { return LayoutBuilder( builder: (context, constraint) { double widthCell = constraint.maxWidth * 0.3; return Row( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ SizedBox( width: widthCell, child: Padding( padding: const EdgeInsets.symmetric(vertical: 16.0), child: Text(val1 ?? '-', style: const TextStyle(fontWeight: FontWeight.w500), textAlign: TextAlign.center), ), ), SizedBox( width: widthCell, child: Text(val2 ?? '-', textAlign: TextAlign.center)), SizedBox( width: widthCell, child: Text(val3 ?? '-', textAlign: TextAlign.center)), ], ); }, ); } }