You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
3 years ago
|
library notes;
|
||
|
|
||
2 years ago
|
import 'dart:async';
|
||
3 years ago
|
import 'dart:convert';
|
||
|
|
||
|
import 'package:crypto/crypto.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter_markdown/flutter_markdown.dart';
|
||
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||
2 years ago
|
import 'package:neon/neon.dart';
|
||
3 years ago
|
import 'package:nextcloud/nextcloud.dart';
|
||
2 years ago
|
import 'package:provider/provider.dart';
|
||
2 years ago
|
import 'package:queue/queue.dart';
|
||
3 years ago
|
import 'package:rxdart/rxdart.dart';
|
||
|
import 'package:settings/settings.dart';
|
||
|
import 'package:sort_box/sort_box.dart';
|
||
|
import 'package:url_launcher/url_launcher_string.dart';
|
||
2 years ago
|
import 'package:wakelock/wakelock.dart';
|
||
3 years ago
|
|
||
2 years ago
|
part 'blocs/note.dart';
|
||
|
part 'blocs/notes.dart';
|
||
3 years ago
|
part 'dialogs/create_note.dart';
|
||
|
part 'dialogs/select_category.dart';
|
||
|
part 'options.dart';
|
||
|
part 'pages/category.dart';
|
||
|
part 'pages/main.dart';
|
||
|
part 'pages/note.dart';
|
||
|
part 'sort/categories.dart';
|
||
|
part 'sort/notes.dart';
|
||
|
part 'utils/category_color.dart';
|
||
|
part 'utils/exception_handler.dart';
|
||
|
part 'widgets/categories_view.dart';
|
||
|
part 'widgets/category_select.dart';
|
||
|
part 'widgets/notes_view.dart';
|
||
|
|
||
|
class NotesApp extends AppImplementation<NotesBloc, NotesAppSpecificOptions> {
|
||
2 years ago
|
NotesApp(super.sharedPreferences, super.requestManager, super.platform);
|
||
|
|
||
|
@override
|
||
|
String id = 'notes';
|
||
|
|
||
|
@override
|
||
2 years ago
|
NotesAppSpecificOptions buildOptions(final AppStorage storage) => NotesAppSpecificOptions(storage);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
NotesBloc buildBloc(final NextcloudClient client) => NotesBloc(
|
||
2 years ago
|
options,
|
||
|
requestManager,
|
||
|
client,
|
||
|
);
|
||
|
|
||
|
@override
|
||
2 years ago
|
Widget buildPage(final BuildContext context, final AppsBloc appsBloc) => NotesMainPage(
|
||
2 years ago
|
bloc: appsBloc.getAppBloc(this),
|
||
2 years ago
|
);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
BehaviorSubject<int>? getUnreadCounter(final AppsBloc appsBloc) => null;
|
||
3 years ago
|
}
|