fix: responsividade

This commit is contained in:
Ivan Antunes 2024-08-26 13:02:10 -03:00
parent 9ec4a862b0
commit 9c8d96c5b7
1 changed files with 13 additions and 9 deletions

View File

@ -62,6 +62,7 @@ class _CardItemTemplateComponentWidgetState extends State<CardItemTemplateCompon
List<Widget> _generateLabels() { List<Widget> _generateLabels() {
List<Widget> labels = []; List<Widget> labels = [];
double width = MediaQuery.of(context).size.width;
for (var key in labelsLinkedHashMap.keys) { for (var key in labelsLinkedHashMap.keys) {
String text = labelsLinkedHashMap[key].toString(); String text = labelsLinkedHashMap[key].toString();
@ -79,15 +80,18 @@ class _CardItemTemplateComponentWidgetState extends State<CardItemTemplateCompon
), ),
), ),
const SizedBox(width: 2.5), const SizedBox(width: 2.5),
Text( SizedBox(
text, width: 225,
overflow: TextOverflow.ellipsis, child: Text(
style: FlutterFlowTheme.of(context).bodyMedium.override( text,
fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily, overflow: TextOverflow.ellipsis,
fontSize: 12.5, style: FlutterFlowTheme.of(context).bodyMedium.override(
letterSpacing: 0.0, fontFamily: FlutterFlowTheme.of(context).bodyMediumFamily,
fontWeight: FontWeight.bold, fontSize: 12.5,
useGoogleFonts: GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily), letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey(FlutterFlowTheme.of(context).bodyMediumFamily),
),
), ),
) )
], ],