Skip to content

Commit 320e9ef

Browse files
committed
lint: misc
1 parent ef25a02 commit 320e9ef

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/app/view/app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/app/config/app_e
1313
import 'package:flutter_news_app_web_dashboard_full_source_code/app_configuration/bloc/app_configuration_bloc.dart';
1414
import 'package:flutter_news_app_web_dashboard_full_source_code/authentication/bloc/authentication_bloc.dart';
1515
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/content_management_bloc.dart';
16-
import 'package:flutter_news_app_web_dashboard_full_source_code/overview/bloc/overview_bloc.dart';
1716
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/app_localizations.dart';
17+
import 'package:flutter_news_app_web_dashboard_full_source_code/overview/bloc/overview_bloc.dart';
1818
import 'package:flutter_news_app_web_dashboard_full_source_code/router/router.dart';
1919
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/shared.dart';
2020
import 'package:go_router/go_router.dart';

lib/app/view/app_shell.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AppShell extends StatelessWidget {
2727
final l10n = AppLocalizationsX(context).l10n;
2828
return Scaffold(
2929
appBar: AppBar(
30-
title: Text(l10n.dashboard),
30+
title: Text(l10n.overview),
3131
actions: [
3232
PopupMenuButton<String>(
3333
onSelected: (value) {
@@ -73,7 +73,7 @@ class AppShell extends StatelessWidget {
7373
NavigationDestination(
7474
icon: const Icon(Icons.dashboard_outlined),
7575
selectedIcon: const Icon(Icons.dashboard),
76-
label: l10n.dashboard,
76+
label: l10n.overview,
7777
),
7878
NavigationDestination(
7979
icon: const Icon(Icons.folder_open_outlined),

lib/app_configuration/view/app_configuration_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ class _FeedDecoratorFormState extends State<_FeedDecoratorForm> {
12801280
Map<AppUserRole, FeedDecoratorRoleConfig>.from(
12811281
decoratorConfig.visibleTo,
12821282
);
1283-
if (value == true) {
1283+
if (value ?? false) {
12841284
newVisibleTo[role] = const FeedDecoratorRoleConfig(
12851285
daysBetweenViews: 7,
12861286
);

lib/overview/view/overview_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import 'package:core/core.dart';
22
import 'package:flutter/material.dart';
33
import 'package:flutter_bloc/flutter_bloc.dart';
4-
import 'package:flutter_news_app_web_dashboard_full_source_code/overview/bloc/overview_bloc.dart';
54
import 'package:flutter_news_app_web_dashboard_full_source_code/l10n/l10n.dart';
5+
import 'package:flutter_news_app_web_dashboard_full_source_code/overview/bloc/overview_bloc.dart';
66
import 'package:flutter_news_app_web_dashboard_full_source_code/router/routes.dart';
77
import 'package:go_router/go_router.dart';
88
import 'package:ui_kit/ui_kit.dart';
@@ -36,8 +36,8 @@ class _OverviewPageState extends State<OverviewPage> {
3636
state.status == OverviewStatus.initial) {
3737
return LoadingStateWidget(
3838
icon: Icons.dashboard_outlined,
39-
headline: l10n.loadingDashboard,
40-
subheadline: l10n.loadingDashboardSubheadline,
39+
headline: l10n.loadingOverview,
40+
subheadline: l10n.loadingOverviewSubheadline,
4141
);
4242
}
4343
if (state.status == OverviewStatus.failure) {

0 commit comments

Comments
 (0)