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/create_headline/create_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' ;
@@ -88,6 +89,7 @@ class _CreateHeadlineViewState extends State<_CreateHeadlineView> {
88
89
// Refresh the list to show the new headline
89
90
const LoadHeadlinesRequested (limit: kDefaultRowsPerPage),
90
91
);
92
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
91
93
context.pop ();
92
94
}
93
95
if (state.status == CreateHeadlineStatus .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/create_source/create_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' ;
@@ -88,6 +89,7 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
88
89
// Refresh the list to show the new source
89
90
const LoadSourcesRequested (limit: kDefaultRowsPerPage),
90
91
);
92
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
91
93
context.pop ();
92
94
}
93
95
if (state.status == CreateSourceStatus .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/create_topic/create_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' ;
@@ -85,6 +86,7 @@ class _CreateTopicViewState extends State<_CreateTopicView> {
85
86
// Refresh the list to show the new topic
86
87
const LoadTopicsRequested (limit: kDefaultRowsPerPage),
87
88
);
89
+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
88
90
context.pop ();
89
91
}
90
92
if (state.status == CreateTopicStatus .failure) {
You can’t perform that action at this time.
0 commit comments