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.
41 lines
1.2 KiB
41 lines
1.2 KiB
2 years ago
|
library notifications;
|
||
|
|
||
2 years ago
|
import 'dart:async';
|
||
|
|
||
2 years ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
|
||
2 years ago
|
import 'package:neon/neon.dart';
|
||
2 years ago
|
import 'package:nextcloud/nextcloud.dart';
|
||
|
import 'package:provider/provider.dart';
|
||
2 years ago
|
import 'package:rxdart/rxdart.dart';
|
||
2 years ago
|
|
||
2 years ago
|
part 'blocs/notifications.dart';
|
||
2 years ago
|
part 'options.dart';
|
||
|
part 'pages/main.dart';
|
||
|
|
||
|
class NotificationsApp extends AppImplementation<NotificationsBloc, NotificationsAppSpecificOptions> {
|
||
2 years ago
|
NotificationsApp(super.sharedPreferences, super.requestManager, super.platform);
|
||
|
|
||
|
@override
|
||
|
String id = 'notifications';
|
||
|
|
||
|
@override
|
||
2 years ago
|
NotificationsAppSpecificOptions buildOptions(final AppStorage storage) => NotificationsAppSpecificOptions(storage);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
NotificationsBloc buildBloc(final NextcloudClient client) => NotificationsBloc(
|
||
2 years ago
|
options,
|
||
|
requestManager,
|
||
|
client,
|
||
|
);
|
||
|
|
||
|
@override
|
||
2 years ago
|
Widget buildPage(final BuildContext context, final AppsBloc appsBloc) => NotificationsMainPage(
|
||
2 years ago
|
bloc: appsBloc.getAppBloc(this),
|
||
2 years ago
|
);
|
||
2 years ago
|
|
||
|
@override
|
||
2 years ago
|
BehaviorSubject<int> getUnreadCounter(final AppsBloc appsBloc) =>
|
||
2 years ago
|
appsBloc.getAppBloc<NotificationsBloc>(this).unreadCounter;
|
||
2 years ago
|
}
|