Just Wrap your Card, Text widget with Flexible Widget.
And also remember that an `Flexible` widget must be a descendant of a Row,
Column, or Flex. i.e `Flexible` parent widget should be one of them.
Row(
children: [
Flexible(
child: Text('text'),
),
],
),
The following assertion was thrown during layout:
A RenderFlex overflowed by 1146 pixels on the right.
The relevant error-causing widget was
Row lib/errors/renderflex_overflow_column.dart:23
The overflowing RenderFlex has an orientation of Axis.horizontal.
The edge of the RenderFlex that is overflowing has been marked in the rendering
with a yellow and black striped pattern. This is usually caused by the contents
being too big for the RenderFlex.
(Additional lines of this message omitted)