Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions lib/src/app/wiring/state_factories.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import 'package:thunder/src/app/wiring/nodeinfo_platform_detection_service.dart'
import 'package:thunder/src/app/state/deep_links_cubit/deep_links_cubit.dart';
import 'package:thunder/src/app/state/network_checker_cubit/network_checker_cubit.dart';
import 'package:thunder/src/foundation/contracts/contracts.dart';
import 'package:thunder/src/foundation/persistence/persistence.dart';
import 'package:thunder/src/foundation/primitives/primitives.dart';
import 'package:thunder/src/features/account/api.dart';
import 'package:thunder/src/features/comment/api.dart';
import 'package:thunder/src/features/community/api.dart';
import 'package:thunder/src/features/drafts/drafts.dart';
import 'package:thunder/src/features/feed/api.dart';
import 'package:thunder/src/features/inbox/api.dart';
import 'package:thunder/src/features/instance/api.dart';
Expand Down Expand Up @@ -143,8 +145,11 @@ PostBloc createPostBloc(Account account) {
CreatePostCubit createCreatePostCubit(Account account) {
return CreatePostCubit(
account: account,
postRepositoryFactory: (account) => PostRepositoryImpl(account: account),
accountRepositoryFactory: (account) => AccountRepositoryImpl(account: account),
postRepository: (account) => PostRepositoryImpl(account: account),
accountRepository: (account) => AccountRepositoryImpl(account: account),
communityRepository: (account) => CommunityRepositoryImpl(account: account),
searchRepository: (account) => SearchRepositoryImpl(account: account),
draftRepository: DraftRepositoryImpl(database: database),
localizationService: const GlobalContextLocalizationService(),
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:flutter/services.dart';
import 'package:thunder/src/features/account/account.dart';
import 'package:thunder/src/features/community/community.dart';
import 'package:thunder/l10n/generated/app_localizations.dart';
import 'package:thunder/src/features/post/post.dart';
import 'package:thunder/src/features/post/presentation/widgets/create_post/community_selector.dart';

enum ReportResolveStatus { unresolved, all }

Expand Down
Loading
Loading