Skip to content

Commit 4de1873

Browse files
committed
lint: misc
1 parent 443dce1 commit 4de1873

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

lib/account/view/manage_followed_items/categories/add_category_to_follow_page.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ class AddCategoryToFollowPage extends StatelessWidget {
104104
child: Center(child: CircularProgressIndicator()),
105105
);
106106
}
107-
if (index >= categories.length)
107+
if (index >= categories.length) {
108108
return const SizedBox.shrink();
109+
}
109110

110111
final category = categories[index];
111112
final isFollowed = followedCategories.any(
@@ -151,8 +152,9 @@ class AddCategoryToFollowPage extends StatelessWidget {
151152
child,
152153
loadingProgress,
153154
) {
154-
if (loadingProgress == null)
155+
if (loadingProgress == null) {
155156
return child;
157+
}
156158
return Center(
157159
child: CircularProgressIndicator(
158160
strokeWidth: 2,

lib/app/config/app_config.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ class AppConfig {
77
// Add other environment-specific configs here (e.g., analytics keys)
88
});
99

10-
final AppEnvironment environment;
11-
final String baseUrl;
12-
1310
// Factory constructors for different environments
1411
factory AppConfig.production() => const AppConfig(
1512
environment: AppEnvironment.production,
@@ -28,4 +25,7 @@ class AppConfig {
2825
environment: AppEnvironment.developmentApi,
2926
baseUrl: 'http://localhost:8080', // Default Dart Frog local URL
3027
);
28+
29+
final AppEnvironment environment;
30+
final String baseUrl;
3131
}

lib/app/config/config.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export 'app_environment.dart';
21
export 'app_config.dart';
2+
export 'app_environment.dart';

lib/headlines-search/bloc/headlines_search_bloc.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class HeadlinesSearchBloc
184184
rawResponse = await _headlinesRepository.readAllByQuery({
185185
'q': searchTerm,
186186
'model': modelType.toJson(),
187-
}, limit: _limit);
187+
}, limit: _limit,);
188188
final headlines = rawResponse.items.cast<Headline>();
189189
final currentUser = _appBloc.state.user;
190190
final appConfig = _appBloc.state.appConfig;
@@ -208,13 +208,13 @@ class HeadlinesSearchBloc
208208
rawResponse = await _categoryRepository.readAllByQuery({
209209
'q': searchTerm,
210210
'model': modelType.toJson(),
211-
}, limit: _limit);
211+
}, limit: _limit,);
212212
processedItems = rawResponse.items.cast<FeedItem>();
213213
case SearchModelType.source:
214214
rawResponse = await _sourceRepository.readAllByQuery({
215215
'q': searchTerm,
216216
'model': modelType.toJson(),
217-
}, limit: _limit);
217+
}, limit: _limit,);
218218
processedItems = rawResponse.items.cast<FeedItem>();
219219
}
220220
emit(

0 commit comments

Comments
 (0)