We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2271c5 commit db3f57eCopy full SHA for db3f57e
lib/components/home/preview_card.dart
@@ -157,11 +157,15 @@ class _PreviewCardState extends State<PreviewCard> {
157
),
158
],
159
160
- Center(
+ Flexible(
161
child: Padding(
162
padding: const EdgeInsets.all(8),
163
- child: Text(widget.filePath
164
- .substring(widget.filePath.lastIndexOf('/') + 1)),
+ child: Text(
+ widget.filePath
165
+ .substring(widget.filePath.lastIndexOf('/') + 1),
166
+ maxLines: 2,
167
+ overflow: TextOverflow.ellipsis,
168
+ ),
169
170
171
0 commit comments