diff --git a/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart b/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart index 3ff02874..c9937a2b 100644 --- a/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart +++ b/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart @@ -119,17 +119,20 @@ class _CardItemTemplateComponentWidgetState return Container( padding: const EdgeInsets.all(5), + width: MediaQuery.of(context).size.width * 0.2, decoration: BoxDecoration( color: color, borderRadius: BorderRadius.circular(5), ), - child: Text( - text, - overflow: TextOverflow.ellipsis, - style: TextStyle( - color: FlutterFlowTheme.of(context).info, - fontSize: 12, - fontWeight: FontWeight.bold, + child: Center( + child: Text( + text, + overflow: TextOverflow.ellipsis, + style: TextStyle( + color: FlutterFlowTheme.of(context).info, + fontSize: 12, + fontWeight: FontWeight.bold, + ), ), ), );