feat: add keyboard shortcuts for notes, the note list and the app
This commit is contained in:
parent
ed2de5e67f
commit
722390ecec
9 changed files with 532 additions and 60 deletions
|
|
@ -7,12 +7,10 @@ import 'themes/night.dart';
|
|||
class ReadOnlyPage extends StatelessWidget {
|
||||
final String title;
|
||||
final String content;
|
||||
final bool isDarkMode;
|
||||
|
||||
ReadOnlyPage({
|
||||
required this.title,
|
||||
required this.content,
|
||||
required this.isDarkMode,
|
||||
});
|
||||
|
||||
@override
|
||||
|
|
@ -20,7 +18,9 @@ class ReadOnlyPage extends StatelessWidget {
|
|||
final view = MarkdownView(
|
||||
controller: MarkdownController(
|
||||
text: content,
|
||||
theme: isDarkMode ? nightTheme : dayTheme,
|
||||
theme: Theme.of(context).brightness == Brightness.dark
|
||||
? nightTheme
|
||||
: dayTheme,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue