Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Future<List<DropdownMenuItem<String>>> get waktuShalat async {
- await jws();
- DateTime now = DateTime.now();
- List<DropdownMenuItem<String>> menuItems = [
- DropdownMenuItem(
- value: _fajrTime.toString(),
- child:
- Text("Subuh: ${DateFormat('HH:mm').format(_fajrTime ?? now)}")),
- DropdownMenuItem(
- value: _sunriseTime.toString(),
- child: Text(
- "Terbit: ${DateFormat('HH:mm').format(_sunriseTime ?? now)}")),
- DropdownMenuItem(
- value: _dhuha.toString(),
- child: Text("Dhuha: ${DateFormat('HH:mm').format(_dhuha ?? now)}")),
- DropdownMenuItem(
- value: _dhuhrTime.toString(),
- child:
- Text("Dhuhur: ${DateFormat('HH:mm').format(_dhuhrTime ?? now)}")),
- DropdownMenuItem(
- value: _asrTime.toString(),
- child: Text("Ashar: ${DateFormat('HH:mm').format(_asrTime ?? now)}")),
- DropdownMenuItem(
- value: _maghribTime.toString(),
- child: Text(
- "Maghrib: ${DateFormat('HH:mm').format(_maghribTime ?? now)}")),
- DropdownMenuItem(
- value: _ishaTime.toString(),
- child: Text("Isya: ${DateFormat('HH:mm').format(_ishaTime ?? now)}")),
- ];
- return menuItems;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement