@@ -4,6 +4,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuratio
44import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/view/tabs/advertisements_configuration_tab.dart' ;
55import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/view/tabs/feed_configuration_tab.dart' ;
66import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/view/tabs/general_configuration_tab.dart' ;
7+ import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/widgets/push_notification_settings_form.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/widgets/about_icon.dart' ;
910import 'package:ui_kit/ui_kit.dart' ;
@@ -30,7 +31,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
3031 @override
3132 void initState () {
3233 super .initState ();
33- _tabController = TabController (length: 3 , vsync: this );
34+ _tabController = TabController (length: 4 , vsync: this );
3435 context.read <AppConfigurationBloc >().add (const AppConfigurationLoaded ());
3536 }
3637
@@ -68,6 +69,7 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
6869 Tab (text: l10n.generalTab),
6970 Tab (text: l10n.feedTab),
7071 Tab (text: l10n.advertisementsTab),
72+ Tab (text: l10n.notificationsTab),
7173 ],
7274 ),
7375 ),
@@ -156,6 +158,14 @@ class _AppConfigurationPageState extends State<AppConfigurationPage>
156158 );
157159 },
158160 ),
161+ PushNotificationSettingsForm (
162+ remoteConfig: remoteConfig,
163+ onConfigChanged: (newConfig) {
164+ context.read <AppConfigurationBloc >().add (
165+ AppConfigurationFieldChanged (remoteConfig: newConfig),
166+ );
167+ },
168+ ),
159169 ],
160170 );
161171 }
0 commit comments