File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
lib/content_management/view Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
4
4
import 'package:flutter_bloc/flutter_bloc.dart' ;
5
5
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
6
6
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_headline/edit_headline_bloc.dart' ;
7
+ import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/bloc/dashboard_bloc.dart' ;
7
8
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
8
9
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
9
10
import 'package:go_router/go_router.dart' ;
@@ -116,6 +117,7 @@ class _EditHeadlineViewState extends State<_EditHeadlineView> {
116
117
context.read <ContentManagementBloc >().add (
117
118
const LoadHeadlinesRequested (limit: kDefaultRowsPerPage),
118
119
);
120
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
119
121
context.pop ();
120
122
}
121
123
if (state.status == EditHeadlineStatus .failure) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
4
4
import 'package:flutter_bloc/flutter_bloc.dart' ;
5
5
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
6
6
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_source/edit_source_bloc.dart' ;
7
+ import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/bloc/dashboard_bloc.dart' ;
7
8
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
8
9
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/source_type_l10n.dart' ;
9
10
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
@@ -113,6 +114,7 @@ class _EditSourceViewState extends State<_EditSourceView> {
113
114
context.read <ContentManagementBloc >().add (
114
115
const LoadSourcesRequested (limit: kDefaultRowsPerPage),
115
116
);
117
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
116
118
context.pop ();
117
119
}
118
120
if (state.status == EditSourceStatus .failure) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
4
4
import 'package:flutter_bloc/flutter_bloc.dart' ;
5
5
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
6
6
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/edit_topic/edit_topic_bloc.dart' ;
7
+ import 'package:flutter_news_app_web_dashboard_full_source_code/dashboard/bloc/dashboard_bloc.dart' ;
7
8
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
8
9
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
9
10
import 'package:go_router/go_router.dart' ;
@@ -110,6 +111,7 @@ class _EditTopicViewState extends State<_EditTopicView> {
110
111
context.read <ContentManagementBloc >().add (
111
112
const LoadTopicsRequested (limit: kDefaultRowsPerPage),
112
113
);
114
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
113
115
context.pop ();
114
116
}
115
117
if (state.status == EditTopicStatus .failure) {
You can’t perform that action at this time.
0 commit comments