Skip to content

Commit b2cc6c5

Browse files
authored
refactor: remove PostCategory (#1354)
1 parent 2c99a5c commit b2cc6c5

File tree

59 files changed

+386
-377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+386
-377
lines changed

flutter_news_example/api/lib/client.dart

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export 'package:news_blocks/news_blocks.dart'
99
ImageBlock,
1010
NewsBlock,
1111
NewsBlocksConverter,
12-
PostCategory,
1312
PostGridGroupBlock,
1413
PostGridTileBlock,
1514
PostLargeBlock,

flutter_news_example/api/lib/src/data/in_memory_news_data_source.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class InMemoryNewsDataSource implements NewsDataSource {
115115
}
116116

117117
@override
118-
Future<List<Category>> getCategories() async => _newsFeedData.keys.toList();
118+
Future<List<Category>> getCategories() async => _categories;
119119

120120
@override
121121
Future<User> getUser({required String userId}) async {

0 commit comments

Comments
 (0)