Removed game in compact mode
This commit is contained in:
@@ -115,57 +115,58 @@ class _MatchTileState extends State<MatchTile> {
|
|||||||
],
|
],
|
||||||
|
|
||||||
// Game + Ruleset Badge
|
// Game + Ruleset Badge
|
||||||
IntrinsicHeight(
|
if (!widget.compact)
|
||||||
child: Row(
|
IntrinsicHeight(
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Row(
|
||||||
children: [
|
mainAxisSize: MainAxisSize.min,
|
||||||
// Game
|
children: [
|
||||||
Container(
|
// Game
|
||||||
decoration: BoxDecoration(
|
Container(
|
||||||
color: CustomTheme.primaryColor.withAlpha(230),
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
color: CustomTheme.primaryColor.withAlpha(230),
|
||||||
topLeft: Radius.circular(8),
|
borderRadius: const BorderRadius.only(
|
||||||
bottomLeft: Radius.circular(8),
|
topLeft: Radius.circular(8),
|
||||||
|
bottomLeft: Radius.circular(8),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
padding: const EdgeInsets.symmetric(
|
||||||
|
vertical: 4,
|
||||||
|
horizontal: 8,
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
match.game.name,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
padding: const EdgeInsets.symmetric(
|
// Ruleset
|
||||||
vertical: 4,
|
Container(
|
||||||
horizontal: 8,
|
decoration: BoxDecoration(
|
||||||
),
|
color: CustomTheme.primaryColor.withAlpha(140),
|
||||||
child: Text(
|
borderRadius: const BorderRadius.only(
|
||||||
match.game.name,
|
topRight: Radius.circular(8),
|
||||||
style: const TextStyle(
|
bottomRight: Radius.circular(8),
|
||||||
fontSize: 12,
|
),
|
||||||
color: Colors.white,
|
),
|
||||||
fontWeight: FontWeight.bold,
|
padding: const EdgeInsets.symmetric(
|
||||||
|
vertical: 4,
|
||||||
|
horizontal: 8,
|
||||||
|
),
|
||||||
|
child: Text(
|
||||||
|
translateRulesetToString(match.game.ruleset, context),
|
||||||
|
style: const TextStyle(
|
||||||
|
fontSize: 12,
|
||||||
|
color: Colors.white,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
// Ruleset
|
),
|
||||||
Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: CustomTheme.primaryColor.withAlpha(140),
|
|
||||||
borderRadius: const BorderRadius.only(
|
|
||||||
topRight: Radius.circular(8),
|
|
||||||
bottomRight: Radius.circular(8),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
padding: const EdgeInsets.symmetric(
|
|
||||||
vertical: 4,
|
|
||||||
horizontal: 8,
|
|
||||||
),
|
|
||||||
child: Text(
|
|
||||||
translateRulesetToString(match.game.ruleset, context),
|
|
||||||
style: const TextStyle(
|
|
||||||
fontSize: 12,
|
|
||||||
color: Colors.white,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
|
||||||
|
|
||||||
const SizedBox(height: 12),
|
const SizedBox(height: 12),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user