fix: pixel overflow
This commit is contained in:
@@ -21,8 +21,7 @@ class GameLabel extends StatelessWidget {
|
|||||||
? Colors.black
|
? Colors.black
|
||||||
: Colors.white;
|
: Colors.white;
|
||||||
|
|
||||||
return IntrinsicHeight(
|
return Row(
|
||||||
child: Row(
|
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
// Title
|
// Title
|
||||||
@@ -37,6 +36,9 @@ class GameLabel extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
title,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
softWrap: false,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: fontColor,
|
color: fontColor,
|
||||||
@@ -46,7 +48,8 @@ class GameLabel extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
|
|
||||||
// Description
|
// Description
|
||||||
Container(
|
Flexible(
|
||||||
|
child: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: backgroundColor.withAlpha(140),
|
color: backgroundColor.withAlpha(140),
|
||||||
borderRadius: const BorderRadius.only(
|
borderRadius: const BorderRadius.only(
|
||||||
@@ -57,6 +60,9 @@ class GameLabel extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
|
||||||
child: Text(
|
child: Text(
|
||||||
description,
|
description,
|
||||||
|
maxLines: 1,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
softWrap: false,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: fontColor,
|
color: fontColor,
|
||||||
@@ -64,8 +70,8 @@ class GameLabel extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user