Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class TaibEntry {
- final String taibDate; // "27 Шавваль 1441"
- final String location; // "Мадина"
- final List<TwoPrayItems> twoPrayers; // моделька маленького виджета (2 в списке)
- final List<PrayItem> prayers; // моделька среднего виджета (6 в списке)
- final CurrentPrayItem currentPrayItem; // прогрес бар под молитвами
- final ReminderItem reminderItem; // нижний прогрес бар
- TaibEntry({
- required this.taibDate,
- required this.location,
- required this.twoPrayers,
- required this.prayers,
- required this.currentPrayItem,
- required this.reminderItem,
- });
- }
- class TwoPrayItems {
- final String icon; // название иконки к примеру sunGold
- final String name; // Зухр
- final String time; // 12:09
- final bool isPicked; // true
- TwoPrayItems({
- required this.icon,
- required this.name,
- required this.time,
- required this.isPicked,
- });
- }
- class PrayItem {
- final String icon; // название иконки к примеру sunGold
- final String name; // Зухр
- final String time; // 12:09
- final bool isPicked; // true
- PrayItem({
- required this.icon,
- required this.name,
- required this.time,
- required this.isPicked,
- });
- }
- class CurrentPrayItem {
- final String currentPrayName; // Зухр это текст слева
- final String currentPrayTime; // 12:09
- final double progress; // 0.4
- final String timeBeforeNextPray; // 02:48:59
- final String nextPrayName; // Аср это текст справа
- final String nextPrayTime; // 14:51
- CurrentPrayItem({
- required this.currentPrayName,
- required this.currentPrayTime,
- required this.progress,
- required this.timeBeforeNextPray,
- required this.nextPrayName,
- required this.nextPrayTime,
- });
- }
- class ReminderItem {
- final String startIcon; // название иконки слева
- final String startName; // Восход
- final String startTime; // 06:26
- final String endIcon; // название иконки справа
- final String endTime; // 02:25
- final String endName; // Треть ночи
- final double progress; // 0.4
- final String reminderText; // Не забудь Духа намаз
- ReminderItem({
- required this.startIcon,
- required this.startName,
- required this.startTime,
- required this.endIcon,
- required this.endTime,
- required this.endName,
- required this.progress,
- required this.reminderText,
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement