This commit is contained in:
bggRGjQaUbCoE
2024-10-30 21:57:47 +08:00
parent 1d0ffd86d5
commit aaa9e45299
2 changed files with 22 additions and 15 deletions

View File

@@ -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: '*',

View File

@@ -64,6 +64,7 @@ class _FavPanelState extends State<FavPanel> {
TextButton.icon( TextButton.icon(
onPressed: () { onPressed: () {
Get.toNamed('/createFav')?.then((data) { Get.toNamed('/createFav')?.then((data) {
if (data != null) {
(widget.ctr?.favFolderData.value as FavFolderData?) (widget.ctr?.favFolderData.value as FavFolderData?)
?.list ?.list
?.insert( ?.insert(
@@ -78,6 +79,7 @@ class _FavPanelState extends State<FavPanel> {
), ),
); );
widget.ctr?.favFolderData.refresh(); widget.ctr?.favFolderData.refresh();
}
}); });
}, },
icon: Icon( icon: Icon(