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';
44import 'package:flutter_bloc/flutter_bloc.dart' ;
55import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
66import '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' ;
78import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
89import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
910import 'package:go_router/go_router.dart' ;
@@ -88,6 +89,7 @@ class _CreateHeadlineViewState extends State<_CreateHeadlineView> {
8889 // Refresh the list to show the new headline
8990 const LoadHeadlinesRequested (limit: kDefaultRowsPerPage),
9091 );
92+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
9193 context.pop ();
9294 }
9395 if (state.status == CreateHeadlineStatus .failure) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
44import 'package:flutter_bloc/flutter_bloc.dart' ;
55import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
66import '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' ;
78import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
89import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/source_type_l10n.dart' ;
910import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
@@ -88,6 +89,7 @@ class _CreateSourceViewState extends State<_CreateSourceView> {
8889 // Refresh the list to show the new source
8990 const LoadSourcesRequested (limit: kDefaultRowsPerPage),
9091 );
92+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
9193 context.pop ();
9294 }
9395 if (state.status == CreateSourceStatus .failure) {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
44import 'package:flutter_bloc/flutter_bloc.dart' ;
55import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart' ;
66import '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' ;
78import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart' ;
89import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart' ;
910import 'package:go_router/go_router.dart' ;
@@ -85,6 +86,7 @@ class _CreateTopicViewState extends State<_CreateTopicView> {
8586 // Refresh the list to show the new topic
8687 const LoadTopicsRequested (limit: kDefaultRowsPerPage),
8788 );
89+ context.read <DashboardBloc >().add (DashboardSummaryLoaded ());
8890 context.pop ();
8991 }
9092 if (state.status == CreateTopicStatus .failure) {
You can’t perform that action at this time.
0 commit comments