Skip to content

Commit d4bb1b4

Browse files
committed
feat(local_ads_management): add about icon with tooltip and description
- Import shared resources for AboutIcon usage - Add AboutIcon to AppBar title row - Set tooltip and description for AboutIcon using localization strings
1 parent acb23c7 commit d4bb1b4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

lib/local_ads_management/view/local_ads_management_page.dart

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_manage
99
import 'package:flutter_news_app_web_dashboard_full_source_code/local_ads_management/view/video_ads_page.dart';
1010
import 'package:flutter_news_app_web_dashboard_full_source_code/router/routes.dart';
1111
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/extensions/extensions.dart';
12+
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
1213
import 'package:go_router/go_router.dart';
1314
import 'package:ui_kit/ui_kit.dart';
1415

@@ -87,7 +88,19 @@ class _LocalAdsManagementPageState extends State<LocalAdsManagementPage>
8788
},
8889
child: Scaffold(
8990
appBar: AppBar(
90-
title: Text(l10n.localAdsManagementTitle),
91+
title: Row(
92+
mainAxisSize: MainAxisSize.min,
93+
children: [
94+
Text(l10n.localAdManagementTitle),
95+
const SizedBox(
96+
width: AppSpacing.xs,
97+
),
98+
AboutIcon(
99+
dialogTitle: l10n.aboutIconTooltip,
100+
dialogDescription: l10n.localAdManagementDescription,
101+
),
102+
],
103+
),
91104
bottom: TabBar(
92105
controller: _tabController,
93106
tabAlignment: TabAlignment.start,

0 commit comments

Comments
 (0)