👽 Support new mixed feed

This commit is contained in:
2025-04-06 01:20:55 +08:00
parent 151f917b07
commit 48f40099f4
13 changed files with 194 additions and 1179 deletions

View File

@@ -24,13 +24,13 @@ class NewsDetailScreen extends StatefulWidget {
}
class _NewsDetailScreenState extends State<NewsDetailScreen> {
SnNewsArticle? _article;
SnSubscriptionItem? _article;
Future<void> _fetchArticle() async {
try {
final sn = context.read<SnNetworkProvider>();
final resp = await sn.client.get('/cgi/re/news/${widget.hash}');
_article = SnNewsArticle.fromJson(resp.data);
_article = SnSubscriptionItem.fromJson(resp.data);
} catch (err) {
if (!mounted) return;
context.showErrorDialog(err).then((_) {