forked from maelchiotti/LocalMaterialNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.dart
More file actions
109 lines (106 loc) · 3.93 KB
/
notes.dart
File metadata and controls
109 lines (106 loc) · 3.93 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import '../../models/note/note.dart';
import '../localization/localizations_utils.dart';
/// Note displayed on the very first run of the application to welcome the user.
final welcomeNote = RichTextNote(
deleted: false,
pinned: true,
createdTime: DateTime.now(),
editedTime: DateTime.now(),
title: LocalizationsUtils().welcomeNoteTitle,
content: '[{"insert":"${LocalizationsUtils().welcomeNoteContent}\\n"}]',
);
/// Notes used when running integration tests.
final integrationTestNotes = List.generate(
100,
(index) => RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 12).subtract(Duration(minutes: index)),
editedTime: DateTime(2000, 01, 01, 12).subtract(Duration(minutes: index)),
title: "Note $index",
content: '[{"insert":"This is note $index.\\n"}]',
),
)..addAll(
List.generate(
100,
(index) => RichTextNote(
deleted: true,
pinned: false,
createdTime: DateTime(2000, 01, 01, 12).subtract(Duration(minutes: index)),
editedTime: DateTime(2000, 01, 01, 12).subtract(Duration(minutes: index)),
title: "Deleted note $index",
content: '[{"insert":"This is deleted note $index.\\n"}]',
),
),
);
/// Notes used when taking screenshots of the application for the stores.
final screenshotNotes = [
RichTextNote(
deleted: false,
pinned: true,
createdTime: DateTime(2000, 01, 01, 12),
editedTime: DateTime(2000, 01, 01, 12),
title: "Welcome to Material Notes",
content:
'[{"insert":"Simple","attributes":{"b":true}},{"insert":", "},{"insert":"local","attributes":{"i":true}},{"insert":", "},{"insert":"material design","attributes":{"u":true}},{"insert":" notes\\n"}]',
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 55),
editedTime: DateTime(2000, 01, 01, 11, 55),
title: "Take notes",
content:
'[{"insert":"Write text notes"},{"insert":"\\n","attributes":{"block":"cl","checked":true}},{"insert":"Use formatting options and undo/redo"},{"insert":"\\n","attributes":{"block":"cl","checked":true}},{"insert":"Use quick action to add from your homescreen"},{"insert":"\\n","attributes":{"block":"cl","checked":true}}]',
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 50),
editedTime: DateTime(2000, 01, 01, 11, 50),
title: "Organize",
content: '[{"insert":"Search, sort and display in a list or a grid\\nPin and recover from the bin\\n"}]',
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 50),
editedTime: DateTime(2000, 01, 01, 11, 50),
title: "Categorize",
content: '[{"insert":"Categorize notes with labels\\nPin, hide and colorize labels\\n"}]',
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 45),
editedTime: DateTime(2000, 01, 01, 11, 45),
title: "Share & backup",
content:
'[{"insert":"Create a note from shared text\\nShare notes as text and export as Markdown\\nBackup notes as JSON\\n"}]',
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 40),
editedTime: DateTime(2000, 01, 01, 11, 40),
title: "Customize",
content:
"[{\"insert\":\"Choose your language\\nChoose your theme (including black and dynamic)\\nHide features you don't need\\n\"}]",
),
RichTextNote(
deleted: false,
pinned: false,
createdTime: DateTime(2000, 01, 01, 11, 35),
editedTime: DateTime(2000, 01, 01, 11, 35),
title: "Protect",
content: '[{"insert":"Your data never leaves your device\\nEncrypt your exports\\n"}]',
),
RichTextNote(
deleted: true,
pinned: false,
createdTime: DateTime(2000, 01, 01, 12),
editedTime: DateTime(2000, 01, 01, 12),
title: "Recover notes from the bin!",
content: '[{"insert":"Or delete them for good\\n"}]',
),
];