feat(flutter): 接入分类记录收藏与下载授权

This commit is contained in:
Zhou Weidong committed 2026-10-17 14:49:16 +08:00
1 parent 00280ca0da
commit cc4d7c5a9d
52 files changed
+4440 -171

No files matched your search

-13
View File
@@ -34,7 +34,6 @@ void main() {
expect(await logic.position, const Duration(seconds: 4));
expect(history.reads, ['signal']);
expect(logic.category, 0);
expect(logic.searchOpen, isFalse);
logic.dispose();
});
@@ -78,18 +77,6 @@ void main() {
logic.dispose();
});
test('should_store_index_and_notify_once_when_category_is_selected', () {
final logic = DiscoverLogic(history: FakeWatchHistory(), drama: _drama('s'));
var notifications = 0;
logic.addListener(() => notifications++);
logic.selectCategory(3);
expect(logic.category, 3);
expect(notifications, 1);
logic.dispose();
});
test('should_show_search_when_flag_is_on_or_text_is_typed', () {
final logic = DiscoverLogic(history: FakeWatchHistory(), drama: _drama('s'));