Browse Source

refactor(neon): cleanup AppImplementation

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
pull/886/head
Nikolas Rimikis 1 year ago
parent
commit
80484917ef
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 4
      packages/neon/neon/lib/src/models/app_implementation.dart

4
packages/neon/neon/lib/src/models/app_implementation.dart

@ -21,11 +21,9 @@ import 'package:vector_graphics/vector_graphics.dart';
@immutable
abstract class AppImplementation<T extends Bloc, R extends NextcloudAppOptions> implements Disposable {
AppImplementation();
String get id;
LocalizationsDelegate<Object> get localizationsDelegate;
List<Locale> get supportedLocales;
Iterable<Locale> get supportedLocales;
String nameFromLocalization(final AppLocalizations localizations) => localizations.appImplementationName(id);
String name(final BuildContext context) => nameFromLocalization(AppLocalizations.of(context));

Loading…
Cancel
Save