mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: fav
This commit is contained in:
@@ -315,7 +315,12 @@ class _CreateFavPageState extends State<CreateFavPage> {
|
|||||||
children: [
|
children: [
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '简介',
|
text: '简介',
|
||||||
style: leadingStyle,
|
style: TextStyle(
|
||||||
|
fontSize: 14,
|
||||||
|
color: Theme.of(context)
|
||||||
|
.colorScheme
|
||||||
|
.onSurfaceVariant,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
TextSpan(
|
TextSpan(
|
||||||
text: '*',
|
text: '*',
|
||||||
|
|||||||
@@ -64,20 +64,22 @@ class _FavPanelState extends State<FavPanel> {
|
|||||||
TextButton.icon(
|
TextButton.icon(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
Get.toNamed('/createFav')?.then((data) {
|
Get.toNamed('/createFav')?.then((data) {
|
||||||
(widget.ctr?.favFolderData.value as FavFolderData?)
|
if (data != null) {
|
||||||
?.list
|
(widget.ctr?.favFolderData.value as FavFolderData?)
|
||||||
?.insert(
|
?.list
|
||||||
1,
|
?.insert(
|
||||||
FavFolderItemData(
|
1,
|
||||||
id: data['id'],
|
FavFolderItemData(
|
||||||
fid: data['fid'],
|
id: data['id'],
|
||||||
attr: data['attr'],
|
fid: data['fid'],
|
||||||
title: data['title'],
|
attr: data['attr'],
|
||||||
favState: data['fav_state'],
|
title: data['title'],
|
||||||
mediaCount: data['media_count'],
|
favState: data['fav_state'],
|
||||||
),
|
mediaCount: data['media_count'],
|
||||||
);
|
),
|
||||||
widget.ctr?.favFolderData.refresh();
|
);
|
||||||
|
widget.ctr?.favFolderData.refresh();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
|
|||||||
Reference in New Issue
Block a user