feat: Murattal player enhancements & prayer schedule auto-scroll
- Murattal: Spotify-style 5-button controls [Shuffle, Prev, Play, Next, Playlist] - Murattal: Animated 7-bar equalizer visualization in player circle - Murattal: Unsplash API background with frosted glass player overlay - Murattal: Transparent AppBar with backdrop blur - Murattal: Surah playlist bottom sheet with full 114 Surah list - Murattal: Auto-play disabled on screen open, enabled on navigation - Murattal: Shuffle mode for random Surah playback - Murattal: Photographer attribution per Unsplash guidelines - Dashboard: Auto-scroll prayer schedule to next active prayer - Fix: setState lifecycle errors on Reading & Murattal screens - Setup: flutter_dotenv, cached_network_image, url_launcher deps
This commit is contained in:
50
lib/data/local/models/cached_prayer_times.dart
Normal file
50
lib/data/local/models/cached_prayer_times.dart
Normal file
@@ -0,0 +1,50 @@
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
|
||||
part 'cached_prayer_times.g.dart';
|
||||
|
||||
/// Cached prayer times for a specific location + date.
|
||||
@HiveType(typeId: 5)
|
||||
class CachedPrayerTimes extends HiveObject {
|
||||
@HiveField(0)
|
||||
String key; // 'lat_lng_yyyy-MM-dd'
|
||||
|
||||
@HiveField(1)
|
||||
double lat;
|
||||
|
||||
@HiveField(2)
|
||||
double lng;
|
||||
|
||||
@HiveField(3)
|
||||
String date;
|
||||
|
||||
@HiveField(4)
|
||||
DateTime fajr;
|
||||
|
||||
@HiveField(5)
|
||||
DateTime sunrise;
|
||||
|
||||
@HiveField(6)
|
||||
DateTime dhuhr;
|
||||
|
||||
@HiveField(7)
|
||||
DateTime asr;
|
||||
|
||||
@HiveField(8)
|
||||
DateTime maghrib;
|
||||
|
||||
@HiveField(9)
|
||||
DateTime isha;
|
||||
|
||||
CachedPrayerTimes({
|
||||
required this.key,
|
||||
required this.lat,
|
||||
required this.lng,
|
||||
required this.date,
|
||||
required this.fajr,
|
||||
required this.sunrise,
|
||||
required this.dhuhr,
|
||||
required this.asr,
|
||||
required this.maghrib,
|
||||
required this.isha,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user