-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome_sample_data.dart
More file actions
30 lines (27 loc) · 854 Bytes
/
Copy pathhome_sample_data.dart
File metadata and controls
30 lines (27 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Hardcoded sample data for the still-mocked home section (the per-server
// update cards under "From your servers"). Deliberately in its own
// `sample/` folder: nothing in providers/ or data/ may import this, only
// the home screen does. On repeat, Heavy rotation and the health digest
// are real now and live off the play stats and the server registry.
class SampleServerUpdate {
final String host;
final String message;
final String timeAgo;
const SampleServerUpdate({
required this.host,
required this.message,
required this.timeAgo,
});
}
const sampleServerUpdates = <SampleServerUpdate>[
SampleServerUpdate(
host: 'herman.example.com',
message: '3 new beatmixes',
timeAgo: '2h ago',
),
SampleServerUpdate(
host: 'nas.local',
message: 'New playlist: Deep Focus',
timeAgo: '1d ago',
),
];