Skip to content

Commit

Permalink
fix: missing tabs bloc from context
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed May 30, 2024
1 parent d7f5a4b commit ff1c3ef
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import 'package:flutter/material.dart';

import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/startup/startup.dart';
import 'package:appflowy/workspace/application/favorite/favorite_bloc.dart';
import 'package:appflowy/workspace/application/sidebar/folder/folder_bloc.dart';
import 'package:appflowy/workspace/application/tabs/tabs_bloc.dart';
Expand All @@ -11,7 +14,6 @@ import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';
import 'package:appflowy_popover/appflowy_popover.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:flowy_infra_ui/widget/flowy_tooltip.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class FavoriteMoreActions extends StatelessWidget {
Expand Down Expand Up @@ -53,7 +55,7 @@ class FavoriteMoreActions extends StatelessWidget {
break;

case ViewMoreActionType.openInNewTab:
context.read<TabsBloc>().openTab(view);
getIt<TabsBloc>().openTab(view);
break;
case ViewMoreActionType.delete:
case ViewMoreActionType.duplicate:
Expand Down

0 comments on commit ff1c3ef

Please sign in to comment.