85 lines
2.6 KiB
Dart
85 lines
2.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:pvt15/hop_colors.dart';
|
|
|
|
class GameCategoryStyle {
|
|
final Color backgroundColor;
|
|
final Color textColor;
|
|
final IconData icon;
|
|
final String image;
|
|
|
|
const GameCategoryStyle({
|
|
required this.backgroundColor,
|
|
required this.textColor,
|
|
required this.icon,
|
|
required this.image,
|
|
});
|
|
}
|
|
|
|
GameCategoryStyle getCategoryStyle(String title) {
|
|
switch (title) {
|
|
case 'Gissa ordet':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopGreenPrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.chat_bubble_outline,
|
|
image: 'assets/images/Gissa_ordet_doodle.webp',
|
|
);
|
|
case 'Rita & Gissa':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopGreenPrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.brush,
|
|
image: 'assets/images/Rita_gissa_hand.webp',
|
|
);
|
|
case 'Selfiejakt':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopBluePrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.camera_alt,
|
|
image: 'assets/images/Selfiejakt_doodle.webp',
|
|
);
|
|
case 'Vem är mest trolig att':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopPurplePrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.people_outline,
|
|
image: 'assets/images/Mest_trolig_illustration.webp',
|
|
);
|
|
case 'Sanning eller Konka':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopPurplePrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.question_answer,
|
|
image: 'assets/images/Sanning_konka_eyes.webp',
|
|
);
|
|
case 'Gissa låten':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopBluePrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.music_note,
|
|
image: 'assets/images/Kanner_du_igen_laten_discokula.webp',
|
|
);
|
|
case 'Viskleken':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopBluePrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.hearing,
|
|
image: 'assets/images/Viskleken_telefon.webp',
|
|
);
|
|
case 'Charader':
|
|
return const GameCategoryStyle(
|
|
backgroundColor: HopColors.hopGreenPrimary,
|
|
textColor: Colors.white,
|
|
icon: Icons.theater_comedy,
|
|
image: 'assets/images/Charader_eld.webp',
|
|
);
|
|
default:
|
|
return const GameCategoryStyle(
|
|
backgroundColor: Colors.grey,
|
|
textColor: Colors.white,
|
|
icon: Icons.help_outline,
|
|
image: 'assets/images/KMLogga.png',
|
|
);
|
|
}
|
|
}
|