Advertisement
easyswiftui

Untitled

May 24th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 2.59 KB | None | 0 0
  1. class TaibEntry {
  2.   final String taibDate; // "27 Шавваль 1441"
  3.   final String location; // "Мадина"
  4.   final List<TwoPrayItems> twoPrayers; // моделька маленького виджета (2 в списке)
  5.   final List<PrayItem> prayers; // моделька среднего виджета (6 в списке)
  6.   final CurrentPrayItem currentPrayItem; // прогрес бар под молитвами
  7.   final ReminderItem reminderItem; // нижний прогрес бар
  8.  
  9.   TaibEntry({
  10.     required this.taibDate,
  11.     required this.location,
  12.     required this.twoPrayers,
  13.     required this.prayers,
  14.     required this.currentPrayItem,
  15.     required this.reminderItem,
  16.   });
  17. }
  18.  
  19. class TwoPrayItems {
  20.   final String icon; // название иконки к примеру sunGold
  21.   final String name; // Зухр
  22.   final String time; // 12:09
  23.   final bool isPicked; // true
  24.  
  25.   TwoPrayItems({
  26.     required this.icon,
  27.     required this.name,
  28.     required this.time,
  29.     required this.isPicked,
  30.   });
  31. }
  32.  
  33. class PrayItem {
  34.   final String icon; // название иконки к примеру sunGold
  35.   final String name; // Зухр
  36.   final String time; // 12:09
  37.   final bool isPicked; // true
  38.  
  39.   PrayItem({
  40.     required this.icon,
  41.     required this.name,
  42.     required this.time,
  43.     required this.isPicked,
  44.   });
  45. }
  46.  
  47. class CurrentPrayItem {
  48.   final String currentPrayName; // Зухр это текст слева
  49.   final String currentPrayTime; // 12:09
  50.   final double progress; // 0.4
  51.   final String timeBeforeNextPray; // 02:48:59
  52.   final String nextPrayName; // Аср это текст справа
  53.   final String nextPrayTime; // 14:51
  54.  
  55.   CurrentPrayItem({
  56.     required this.currentPrayName,
  57.     required this.currentPrayTime,
  58.     required this.progress,
  59.     required this.timeBeforeNextPray,
  60.     required this.nextPrayName,
  61.     required this.nextPrayTime,
  62.   });
  63. }
  64.  
  65. class ReminderItem {
  66.   final String startIcon; // название иконки слева
  67.   final String startName; // Восход
  68.   final String startTime; // 06:26
  69.   final String endIcon; // название иконки справа
  70.   final String endTime; // 02:25
  71.   final String endName; // Треть ночи
  72.   final double progress; // 0.4
  73.   final String reminderText; // Не забудь Духа намаз
  74.  
  75.   ReminderItem({
  76.     required this.startIcon,
  77.     required this.startName,
  78.     required this.startTime,
  79.     required this.endIcon,
  80.     required this.endTime,
  81.     required this.endName,
  82.     required this.progress,
  83.     required this.reminderText,
  84.   });
  85. }
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement