Browse Source

neon: make router a separate package

pull/338/head
Nikolas Rimikis 2 years ago
parent
commit
5228620796
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/neon/neon/lib/neon.dart
  2. 5
      packages/neon/neon/lib/src/router.dart

2
packages/neon/neon/lib/neon.dart

@ -23,6 +23,7 @@ import 'package:material_design_icons_flutter/material_design_icons_flutter.dart
import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/models/account.dart';
import 'package:neon/src/models/push_notification.dart';
import 'package:neon/src/router.dart';
import 'package:nextcloud/nextcloud.dart';
import 'package:package_info_plus/package_info_plus.dart';
import 'package:path/path.dart' as p;
@ -67,7 +68,6 @@ part 'src/platform/abstract.dart';
part 'src/platform/android.dart';
part 'src/platform/linux.dart';
part 'src/platform/platform.dart';
part 'src/router.dart';
part 'src/utils/account_options.dart';
part 'src/utils/app_implementation.dart';
part 'src/utils/bloc.dart';

5
packages/neon/neon/lib/src/router.dart

@ -1,6 +1,7 @@
part of '../neon.dart';
// ignore: prefer_mixin
import 'package:flutter/material.dart';
import 'package:neon/neon.dart';
class AppRouter extends RouterDelegate<Account> with ChangeNotifier, PopNavigatorRouterDelegateMixin<Account> {
AppRouter({
required this.navigatorKey,

Loading…
Cancel
Save