diff --git a/packages/neon/neon/lib/src/app.dart b/packages/neon/neon/lib/src/app.dart index e3e5dbed..51d12b51 100644 --- a/packages/neon/neon/lib/src/app.dart +++ b/packages/neon/neon/lib/src/app.dart @@ -5,6 +5,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; import 'package:flutter_native_splash/flutter_native_splash.dart'; import 'package:neon/l10n/localizations.dart'; +import 'package:neon/src/bloc/result_builder.dart'; import 'package:neon/src/blocs/accounts.dart'; import 'package:neon/src/blocs/capabilities.dart'; import 'package:neon/src/interfaces/notifications.dart'; @@ -18,7 +19,6 @@ import 'package:neon/src/utils/global_options.dart'; import 'package:neon/src/utils/localizations.dart'; import 'package:neon/src/utils/push_utils.dart'; import 'package:neon/src/utils/theme.dart'; -import 'package:neon/src/widgets/result_builder.dart'; import 'package:provider/provider.dart'; import 'package:quick_actions/quick_actions.dart'; import 'package:settings/settings.dart'; diff --git a/packages/neon/neon/lib/src/utils/bloc.dart b/packages/neon/neon/lib/src/bloc/bloc.dart similarity index 100% rename from packages/neon/neon/lib/src/utils/bloc.dart rename to packages/neon/neon/lib/src/bloc/bloc.dart diff --git a/packages/neon/neon/lib/src/utils/result.dart b/packages/neon/neon/lib/src/bloc/result.dart similarity index 100% rename from packages/neon/neon/lib/src/utils/result.dart rename to packages/neon/neon/lib/src/bloc/result.dart diff --git a/packages/neon/neon/lib/src/widgets/result_builder.dart b/packages/neon/neon/lib/src/bloc/result_builder.dart similarity index 96% rename from packages/neon/neon/lib/src/widgets/result_builder.dart rename to packages/neon/neon/lib/src/bloc/result_builder.dart index 7d6dd23f..f4a7ef61 100644 --- a/packages/neon/neon/lib/src/widgets/result_builder.dart +++ b/packages/neon/neon/lib/src/bloc/result_builder.dart @@ -1,5 +1,5 @@ import 'package:flutter/widgets.dart'; -import 'package:neon/src/utils/result.dart'; +import 'package:neon/src/bloc/result.dart'; import 'package:rxdart/rxdart.dart'; typedef ResultWidgetBuilder = Widget Function(BuildContext context, Result snapshot); diff --git a/packages/neon/neon/lib/src/blocs/accounts.dart b/packages/neon/neon/lib/src/blocs/accounts.dart index 3712d7f3..10c62a8c 100644 --- a/packages/neon/neon/lib/src/blocs/accounts.dart +++ b/packages/neon/neon/lib/src/blocs/accounts.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:convert'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/blocs/apps.dart'; import 'package:neon/src/blocs/capabilities.dart'; import 'package:neon/src/blocs/user_details.dart'; @@ -10,7 +11,6 @@ import 'package:neon/src/models/account.dart'; import 'package:neon/src/platform/platform.dart'; import 'package:neon/src/utils/account_options.dart'; import 'package:neon/src/utils/app_implementation.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/global_options.dart'; import 'package:neon/src/utils/request_manager.dart'; import 'package:neon/src/utils/storage.dart'; diff --git a/packages/neon/neon/lib/src/blocs/apps.dart b/packages/neon/neon/lib/src/blocs/apps.dart index 9a9a350e..365fdff8 100644 --- a/packages/neon/neon/lib/src/blocs/apps.dart +++ b/packages/neon/neon/lib/src/blocs/apps.dart @@ -1,15 +1,15 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; +import 'package:neon/src/bloc/result.dart'; import 'package:neon/src/blocs/accounts.dart'; import 'package:neon/src/blocs/capabilities.dart'; import 'package:neon/src/interfaces/notifications.dart'; import 'package:neon/src/models/account.dart'; import 'package:neon/src/utils/app_implementation.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/nextcloud_app_specific_options.dart'; import 'package:neon/src/utils/request_manager.dart'; -import 'package:neon/src/utils/result.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:provider/provider.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon/lib/src/blocs/capabilities.dart b/packages/neon/neon/lib/src/blocs/capabilities.dart index dbb44227..8d1b74fe 100644 --- a/packages/neon/neon/lib/src/blocs/capabilities.dart +++ b/packages/neon/neon/lib/src/blocs/capabilities.dart @@ -1,9 +1,9 @@ import 'dart:async'; +import 'package:neon/src/bloc/bloc.dart'; +import 'package:neon/src/bloc/result.dart'; import 'package:neon/src/models/account.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/request_manager.dart'; -import 'package:neon/src/utils/result.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon/lib/src/blocs/first_launch.dart b/packages/neon/neon/lib/src/blocs/first_launch.dart index 1feb3436..77e7e5ac 100644 --- a/packages/neon/neon/lib/src/blocs/first_launch.dart +++ b/packages/neon/neon/lib/src/blocs/first_launch.dart @@ -1,6 +1,6 @@ import 'dart:async'; -import 'package:neon/src/utils/bloc.dart'; +import 'package:neon/src/bloc/bloc.dart'; import 'package:rxdart/rxdart.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/packages/neon/neon/lib/src/blocs/login.dart b/packages/neon/neon/lib/src/blocs/login.dart index f3df6f20..8ed9266c 100644 --- a/packages/neon/neon/lib/src/blocs/login.dart +++ b/packages/neon/neon/lib/src/blocs/login.dart @@ -1,8 +1,8 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/models/account.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon/lib/src/blocs/next_push.dart b/packages/neon/neon/lib/src/blocs/next_push.dart index d9b6ea0f..e68651f5 100644 --- a/packages/neon/neon/lib/src/blocs/next_push.dart +++ b/packages/neon/neon/lib/src/blocs/next_push.dart @@ -1,9 +1,9 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/blocs/accounts.dart'; import 'package:neon/src/models/account.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/global_options.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon/lib/src/blocs/push_notifications.dart b/packages/neon/neon/lib/src/blocs/push_notifications.dart index e2bac132..fda53945 100644 --- a/packages/neon/neon/lib/src/blocs/push_notifications.dart +++ b/packages/neon/neon/lib/src/blocs/push_notifications.dart @@ -2,11 +2,11 @@ import 'dart:async'; import 'dart:convert'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/blocs/accounts.dart'; import 'package:neon/src/models/account.dart'; import 'package:neon/src/models/push_notification.dart'; import 'package:neon/src/platform/platform.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/global_options.dart'; import 'package:neon/src/utils/push_utils.dart'; import 'package:neon/src/utils/storage.dart'; diff --git a/packages/neon/neon/lib/src/blocs/timer.dart b/packages/neon/neon/lib/src/blocs/timer.dart index 8b89a07a..b839b414 100644 --- a/packages/neon/neon/lib/src/blocs/timer.dart +++ b/packages/neon/neon/lib/src/blocs/timer.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:ui'; import 'package:meta/meta.dart'; -import 'package:neon/src/utils/bloc.dart'; +import 'package:neon/src/bloc/bloc.dart'; abstract class TimerBlocEvents { /// Register a [callback] that will be called periodically. diff --git a/packages/neon/neon/lib/src/blocs/user_details.dart b/packages/neon/neon/lib/src/blocs/user_details.dart index 2f5d6ad1..1905f00a 100644 --- a/packages/neon/neon/lib/src/blocs/user_details.dart +++ b/packages/neon/neon/lib/src/blocs/user_details.dart @@ -1,9 +1,9 @@ import 'dart:async'; +import 'package:neon/src/bloc/bloc.dart'; +import 'package:neon/src/bloc/result.dart'; import 'package:neon/src/models/account.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/request_manager.dart'; -import 'package:neon/src/utils/result.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:rxdart/rxdart.dart'; diff --git a/packages/neon/neon/lib/src/blocs/user_statuses.dart b/packages/neon/neon/lib/src/blocs/user_statuses.dart index b0d329ac..66d181fe 100644 --- a/packages/neon/neon/lib/src/blocs/user_statuses.dart +++ b/packages/neon/neon/lib/src/blocs/user_statuses.dart @@ -1,11 +1,11 @@ import 'dart:async'; import 'package:flutter/foundation.dart'; +import 'package:neon/src/bloc/bloc.dart'; +import 'package:neon/src/bloc/result.dart'; import 'package:neon/src/blocs/timer.dart'; import 'package:neon/src/models/account.dart'; import 'package:neon/src/platform/platform.dart'; -import 'package:neon/src/utils/bloc.dart'; -import 'package:neon/src/utils/result.dart'; import 'package:nextcloud/nextcloud.dart'; import 'package:rxdart/rxdart.dart'; import 'package:window_manager/window_manager.dart'; diff --git a/packages/neon/neon/lib/src/interfaces/notifications.dart b/packages/neon/neon/lib/src/interfaces/notifications.dart index 3b49eb08..b1ad2fff 100644 --- a/packages/neon/neon/lib/src/interfaces/notifications.dart +++ b/packages/neon/neon/lib/src/interfaces/notifications.dart @@ -1,5 +1,5 @@ +import 'package:neon/src/bloc/bloc.dart'; import 'package:neon/src/utils/app_implementation.dart'; -import 'package:neon/src/utils/bloc.dart'; import 'package:neon/src/utils/nextcloud_app_specific_options.dart'; abstract interface class NotificationsAppInterface