Skip to content

Commit 31fa310

Browse files
committed
refactor: minor code improvements
- Removed unused comments - Fixed typo in TODO comment
1 parent f22553e commit 31fa310

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

lib/app/view/app_scaffold.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AppScaffold extends StatelessWidget {
1919
label: 'Search',
2020
),
2121
],
22-
// MAIN BODY
22+
// MAIN BODY
2323
smallBody: (context) => const Placeholder(),
2424
body: (context) => const Placeholder(),
2525
largeBody: (context) => const Placeholder(),
@@ -28,7 +28,6 @@ class AppScaffold extends StatelessWidget {
2828
smallSecondaryBody: AdaptiveScaffold.emptyBuilder,
2929
secondaryBody: AdaptiveScaffold.emptyBuilder,
3030
largeSecondaryBody: AdaptiveScaffold.emptyBuilder,
31-
3231
);
3332
}
3433
}

lib/search/bloc/search_bloc.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ part 'search_state.dart';
77
class SearchBloc extends Bloc<SearchEvent, SearchState> {
88
SearchBloc() : super(SearchInitial()) {
99
on<SearchEvent>((event, emit) {
10-
// TODO: implement event handler
10+
// TODO(fulleni): implement event handler
1111
});
1212
}
1313
}

lib/theme/cubit/theme_state.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
part of 'theme_cubit.dart';
22

33
abstract class ThemeState {
4-
final ThemeData themeData;
5-
64
const ThemeState({required this.themeData});
5+
final ThemeData themeData;
76
}
87

98
class LightThemeState extends ThemeState {

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ packages:
318318
source: hosted
319319
version: "0.11.1"
320320
meta:
321-
dependency: transitive
321+
dependency: "direct main"
322322
description:
323323
name: meta
324324
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c

pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies:
1818
go_router: ^14.8.1
1919
google_fonts: ^6.2.1
2020
intl: ^0.19.0
21+
meta: ^1.16.0
2122

2223
dev_dependencies:
2324
bloc_test: ^10.0.0

0 commit comments

Comments
 (0)