mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 05:23:44 +08:00
fix:HomeUIModel
This commit is contained in:
parent
c290e832a0
commit
6dfb6b3cb0
@ -253,9 +253,9 @@ class HomeUIModel extends _$HomeUIModel {
|
|||||||
Future _loadRRS() async {
|
Future _loadRRS() async {
|
||||||
try {
|
try {
|
||||||
final rssVideoItems = await RSSApi.getRssVideo();
|
final rssVideoItems = await RSSApi.getRssVideo();
|
||||||
|
state = state.copyWith(rssVideoItems: rssVideoItems);
|
||||||
final rssTextItems = await RSSApi.getRssText();
|
final rssTextItems = await RSSApi.getRssText();
|
||||||
state = state.copyWith(
|
state = state.copyWith(rssTextItems: rssTextItems);
|
||||||
rssVideoItems: rssVideoItems, rssTextItems: rssTextItems);
|
|
||||||
dPrint("RSS update Success !");
|
dPrint("RSS update Success !");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
dPrint("_loadRRS Error:$e");
|
dPrint("_loadRRS Error:$e");
|
||||||
|
@ -6,7 +6,7 @@ part of 'home_ui_model.dart';
|
|||||||
// RiverpodGenerator
|
// RiverpodGenerator
|
||||||
// **************************************************************************
|
// **************************************************************************
|
||||||
|
|
||||||
String _$homeUIModelHash() => r'4ef5c2bdf2d9a506b2e139d321c52c97cf4bc30d';
|
String _$homeUIModelHash() => r'a911826a7b852408123bf4b8999ac80c3c582fd4';
|
||||||
|
|
||||||
/// See also [HomeUIModel].
|
/// See also [HomeUIModel].
|
||||||
@ProviderFor(HomeUIModel)
|
@ProviderFor(HomeUIModel)
|
||||||
|
Loading…
Reference in New Issue
Block a user