first commit
Build / Build for Android (push) Has been cancelled
Build / Build for iOS (push) Has been cancelled

This commit is contained in:
Zakaria
2026-05-18 14:15:38 -04:00
commit 1563409cb1
382 changed files with 45347 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
import 'package:flutter/material.dart';
class ViewIcon extends StatelessWidget {
const ViewIcon({
Key? key,
required this.collectionType,
this.color,
}) : super(key: key);
final String? collectionType;
final Color? color;
@override
Widget build(BuildContext context) {
switch (collectionType) {
case "movies":
return Icon(
Icons.movie,
color: color,
);
case "tvshows":
return Icon(
Icons.tv,
color: color,
);
case "music":
return Icon(
Icons.music_note,
color: color,
);
case "games":
return Icon(
Icons.games,
color: color,
);
case "books":
return Icon(
Icons.book,
color: color,
);
case "musicvideos":
return Icon(
Icons.music_video,
color: color,
);
case "homevideos":
return Icon(
Icons.videocam,
color: color,
);
case "livetv":
return Icon(
Icons.live_tv,
color: color,
);
case "channels":
return Icon(
Icons.settings_remote,
color: color,
);
case "playlists":
return Icon(
Icons.queue_music,
color: color,
);
default:
return Icon(
Icons.warning,
color: color,
);
}
}
}