File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -302,11 +302,11 @@ Future<void> _scheduleAlarm(int i, Alarm alarm) async {
302302 i << 1 + 1 ,
303303 alarm.title,
304304 alarm.description,
305- tz.TZDateTime .now (tz.local).add (const Duration (seconds: 5 )),
305+ tz.TZDateTime .from (alarm.date, tz.local)
306+ .add (const Duration (seconds: 5 )),
306307 const NotificationDetails (
307- android: AndroidNotificationDetails (
308- 'your channel id' , 'your channel name' ,
309- channelDescription: 'your channel description' ,
308+ android: AndroidNotificationDetails ('dev.linwood.flow' , 'alarm' ,
309+ channelDescription: 'Alarm' ,
310310 audioAttributesUsage: AudioAttributesUsage .alarm)),
311311 androidScheduleMode: AndroidScheduleMode .exactAllowWhileIdle);
312312 } catch (e) {
Original file line number Diff line number Diff line change @@ -12,9 +12,10 @@ typedef DateBuilder<T> = Widget Function(
1212typedef SourceBuilder <T > = Widget Function (
1313 BuildContext context, T item, int index);
1414
15- Widget Function (BuildContext context, SourcedModel <T > item, int index) _buildSourceItem <T >(SourceBuilder <T > itemBuilder) =>
16- (BuildContext context, SourcedModel <T > item, int index) =>
17- itemBuilder (context, item.model, index);
15+ Widget Function (BuildContext context, SourcedModel <T > item, int index)
16+ _buildSourceItem <T >(SourceBuilder <T > itemBuilder) =>
17+ (BuildContext context, SourcedModel <T > item, int index) =>
18+ itemBuilder (context, item.model, index);
1819
1920class PagedListView <T > extends StatelessWidget {
2021 final ItemBuilder <T >? itemBuilder;
You can’t perform that action at this time.
0 commit comments