Skip to content

Commit

Permalink
refactor: remove PostCategory (#1354)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasleyba authored Dec 13, 2024
1 parent 2c99a5c commit b2cc6c5
Show file tree
Hide file tree
Showing 59 changed files with 386 additions and 377 deletions.
1 change: 0 additions & 1 deletion flutter_news_example/api/lib/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export 'package:news_blocks/news_blocks.dart'
ImageBlock,
NewsBlock,
NewsBlocksConverter,
PostCategory,
PostGridGroupBlock,
PostGridTileBlock,
PostLargeBlock,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class InMemoryNewsDataSource implements NewsDataSource {
}

@override
Future<List<Category>> getCategories() async => _newsFeedData.keys.toList();
Future<List<Category>> getCategories() async => _categories;

@override
Future<User> getUser({required String userId}) async {
Expand Down
Loading

0 comments on commit b2cc6c5

Please sign in to comment.