import "package:flutter/foundation.dart"; import "package:photos/services/user_service.dart"; bool shouldShowBfBanner() { if (!Platform.isAndroid && !kDebugMode) { return false; } // if date is after 5th of December 2023, 00:00:00, hide banner if (DateTime.now().isAfter(DateTime(2023...
book.author} - ${DateTime.now().toString()}.png'; print('New path: $newPath'); String newFullPath = getBasePath(newPath); final File newCoverImageFile = File(newPath); final File newCoverImageFile = File(newFullPath); await newCoverImageFile .writeAsBytes(await image.readAsBytes()...
(20000); } @override Future<void> onDestroy(DateTime timestamp, SendPort? sendPort) async { await FlutterForegroundTask.clearAllData(); } @override void onButtonPressed(String id) { print('onButtonPressed >> $id'); } @override void onNotificationPressed() { _sendPort?.send('on...
this used to work List<DateTime> dates = _aggregateJsonByLabelGeneric(json, tagDate) as List<DateTime>; where _aggregateJsonByLabelGeneric is defined as List<T>? _aggregateJsonByLabelGeneric<T>(List<Map<String, dynamic>>? json, String label) { List<T>? list = []; return list; //now...
onChangeDateTime Return a string of new date selected like (year-month-day) onMonthChanged When the month changes return a string of CalendarDateTime (year-month-day hour:minute:second) onYearChanged When the year changes return a string of CalendarDateTime (year-month-day hour:minute:second) ...