mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-23 20:10:12 +08:00
@@ -109,7 +109,7 @@ class DynTopicController
|
||||
} else {
|
||||
topState.value.data!.topicItem!.fav += 1;
|
||||
}
|
||||
this.isFav.value = !isFav;
|
||||
this.isFav.toggle();
|
||||
} else {
|
||||
res.toast();
|
||||
}
|
||||
@@ -128,7 +128,7 @@ class DynTopicController
|
||||
} else {
|
||||
topState.value.data!.topicItem!.like += 1;
|
||||
}
|
||||
this.isLike.value = !isLike;
|
||||
this.isLike.toggle();
|
||||
} else {
|
||||
res.toast();
|
||||
}
|
||||
|
||||
@@ -421,14 +421,15 @@ class _DynTopicPageState extends State<DynTopicPage>
|
||||
Widget _buildFoldItem(FoldCardItem item) {
|
||||
return Padding(
|
||||
padding: const .only(top: 12),
|
||||
child: InkWell(
|
||||
onTap: _controller.topicFold,
|
||||
child: Ink(
|
||||
padding: const .symmetric(vertical: 10),
|
||||
color: colorScheme.outline.withValues(alpha: .05),
|
||||
child: Center(
|
||||
child: Material(
|
||||
color: colorScheme.outline.withValues(alpha: .05),
|
||||
child: InkWell(
|
||||
onTap: _controller.topicFold,
|
||||
child: Padding(
|
||||
padding: const .symmetric(vertical: 10),
|
||||
child: Row(
|
||||
mainAxisSize: .min,
|
||||
mainAxisAlignment: .center,
|
||||
children: [
|
||||
Text(item.foldDesc!),
|
||||
const Icon(Icons.keyboard_arrow_right, size: 22),
|
||||
|
||||
Reference in New Issue
Block a user