mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-18 20:59:59 +02:00
feat: add IPTV data models and application color palette
This commit is contained in:
1 parent
e823086f58
commit
2d6def1f91
4 files changed
+76
-25
No files matched your search
@@ -159,15 +159,25 @@ class EpgEntry {
|
||||
return EpgEntry(
|
||||
id: json['id']?.toString() ?? '',
|
||||
epgId: json['epg_id']?.toString() ?? '',
|
||||
title: json['title']?.toString() ?? '',
|
||||
title: _decodeBase64(json['title']?.toString()),
|
||||
lang: json['lang']?.toString() ?? '',
|
||||
start: json['start']?.toString() ?? '',
|
||||
end: json['end']?.toString() ?? '',
|
||||
description: json['description']?.toString() ?? '',
|
||||
description: _decodeBase64(json['description']?.toString()),
|
||||
channelId: json['channel_id']?.toString() ?? '',
|
||||
);
|
||||
}
|
||||
|
||||
static String _decodeBase64(String? text) {
|
||||
if (text == null || text.isEmpty) return '';
|
||||
try {
|
||||
final bytes = base64Decode(text);
|
||||
return utf8.decode(bytes, allowMalformed: true);
|
||||
} catch (_) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
|
||||
/// Calculate progress percentage for current program
|
||||
double getProgress() {
|
||||
try {
|
||||
|
||||
@@ -15,10 +15,10 @@ class AppColors {
|
||||
static const Color background = Color(0xFF000000);
|
||||
|
||||
/// Very deep grey for surfaces that need to be distinct but subtle (Apple Dark Grey)
|
||||
static const Color surface = Color(0xFF1C1C1E);
|
||||
static const Color surface = Color(0xFF2C2C2E);
|
||||
|
||||
/// Slightly lighter grey for secondary surfaces or hover states
|
||||
static const Color surfaceVariant = Color(0xFF2C2C2E);
|
||||
static const Color surfaceVariant = Color(0xFF3A3A3C);
|
||||
|
||||
/// Focused element background (often white in tvOS for text, or bright accent)
|
||||
static const Color focusColor = Color(0xFFFFFFFF);
|
||||
|
||||
Reference in new issue
Block a user