waktu_solat_lib 1.0.0
waktu_solat_lib: ^1.0.0 copied to clipboard
A Flutter package for accessing Malaysia prayer times (waktu solat) from the Waktu Solat API. Supports fetching prayer times by zone code or GPS coordinates, with automatic calculation of Imsak and Is [...]
1.0.0 - 2025-04-04 #
- First stable release of the Waktu Solat Library
- Features:
- Fetch prayer times by zone code (
getPrayerTimesByZone) - Fetch prayer times by GPS coordinates (
getPrayerTimesByGps) - Get a list of all available zone codes (
getZones) and states (getStates) - Automatic calculation of Imsak time (10 minutes before Fajr) if not provided by API
- Automatic calculation of Isyraq time (15 minutes after Syuruk)
- Comprehensive error handling with
WaktuSolatApiException - Full test coverage for models and API client
- Example app demonstrating all features
- Fetch prayer times by zone code (
- Improvements:
- Nullable prayer time fields to handle missing data from API
- Proper handling of integer-based timestamps for prayer times
- Cross-platform compatibility (Android, iOS, Web, Windows, macOS, Linux)
- Comprehensive documentation