removed the use of Flexible that was causing an exception.

This commit is contained in:
Faris Armoush
2025-04-15 16:24:46 +03:00
parent 3c6b9f9ef4
commit 4989a0e95c

View File

@ -103,16 +103,14 @@ class DraggableCard extends StatelessWidget {
const SizedBox(height: 8), const SizedBox(height: 8),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 3), padding: const EdgeInsets.symmetric(horizontal: 3),
child: Flexible( child: Text(
child: Text( deviceData['title'] ?? deviceData['name'] ?? title,
deviceData['title'] ?? deviceData['name'] ?? title, textAlign: TextAlign.center,
textAlign: TextAlign.center, overflow: TextOverflow.ellipsis,
overflow: TextOverflow.ellipsis, maxLines: 2,
maxLines: 2, style: context.textTheme.bodySmall?.copyWith(
style: context.textTheme.bodySmall?.copyWith( color: ColorsManager.blackColor,
color: ColorsManager.blackColor, fontSize: 12,
fontSize: 12,
),
), ),
), ),
), ),