mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 20:08:50 +00:00
feat: category / hashtag pages
- with links form stream info closes #12
This commit is contained in:
@ -25,6 +25,11 @@ class StreamGrid extends StatelessWidget {
|
||||
events
|
||||
.map((e) => StreamEvent(e))
|
||||
.where((e) => e.info.stream?.contains(".m3u8") ?? false)
|
||||
.where(
|
||||
(e) =>
|
||||
(e.info.starts ?? e.event.createdAt) <=
|
||||
(DateTime.now().millisecondsSinceEpoch / 1000),
|
||||
)
|
||||
.sortedBy((a) => a.info.starts ?? a.event.createdAt)
|
||||
.reversed;
|
||||
final live = streams.where((s) => s.info.status == StreamStatus.live);
|
||||
|
Reference in New Issue
Block a user