File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
account/view/manage_followed_items/categories Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,9 @@ class AddCategoryToFollowPage extends StatelessWidget {
104
104
child: Center (child: CircularProgressIndicator ()),
105
105
);
106
106
}
107
- if (index >= categories.length)
107
+ if (index >= categories.length) {
108
108
return const SizedBox .shrink ();
109
+ }
109
110
110
111
final category = categories[index];
111
112
final isFollowed = followedCategories.any (
@@ -151,8 +152,9 @@ class AddCategoryToFollowPage extends StatelessWidget {
151
152
child,
152
153
loadingProgress,
153
154
) {
154
- if (loadingProgress == null )
155
+ if (loadingProgress == null ) {
155
156
return child;
157
+ }
156
158
return Center (
157
159
child: CircularProgressIndicator (
158
160
strokeWidth: 2 ,
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ class AppConfig {
7
7
// Add other environment-specific configs here (e.g., analytics keys)
8
8
});
9
9
10
- final AppEnvironment environment;
11
- final String baseUrl;
12
-
13
10
// Factory constructors for different environments
14
11
factory AppConfig .production () => const AppConfig (
15
12
environment: AppEnvironment .production,
@@ -28,4 +25,7 @@ class AppConfig {
28
25
environment: AppEnvironment .developmentApi,
29
26
baseUrl: 'http://localhost:8080' , // Default Dart Frog local URL
30
27
);
28
+
29
+ final AppEnvironment environment;
30
+ final String baseUrl;
31
31
}
Original file line number Diff line number Diff line change 1
- export 'app_environment.dart' ;
2
1
export 'app_config.dart' ;
2
+ export 'app_environment.dart' ;
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ class HeadlinesSearchBloc
184
184
rawResponse = await _headlinesRepository.readAllByQuery ({
185
185
'q' : searchTerm,
186
186
'model' : modelType.toJson (),
187
- }, limit: _limit);
187
+ }, limit: _limit, );
188
188
final headlines = rawResponse.items.cast <Headline >();
189
189
final currentUser = _appBloc.state.user;
190
190
final appConfig = _appBloc.state.appConfig;
@@ -208,13 +208,13 @@ class HeadlinesSearchBloc
208
208
rawResponse = await _categoryRepository.readAllByQuery ({
209
209
'q' : searchTerm,
210
210
'model' : modelType.toJson (),
211
- }, limit: _limit);
211
+ }, limit: _limit, );
212
212
processedItems = rawResponse.items.cast <FeedItem >();
213
213
case SearchModelType .source:
214
214
rawResponse = await _sourceRepository.readAllByQuery ({
215
215
'q' : searchTerm,
216
216
'model' : modelType.toJson (),
217
- }, limit: _limit);
217
+ }, limit: _limit, );
218
218
processedItems = rawResponse.items.cast <FeedItem >();
219
219
}
220
220
emit (
You can’t perform that action at this time.
0 commit comments