mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: dyn detail: repost btn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -458,7 +458,7 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Builder(
|
child: Builder(
|
||||||
builder: (context) => TextButton.icon(
|
builder: (btnContext) => TextButton.icon(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
context: context,
|
context: context,
|
||||||
@@ -482,8 +482,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
|||||||
.moduleStat
|
.moduleStat
|
||||||
.forward!
|
.forward!
|
||||||
.count = (count + 1).toString();
|
.count = (count + 1).toString();
|
||||||
if (context.mounted) {
|
if (btnContext.mounted) {
|
||||||
(context as Element?)
|
(btnContext as Element?)
|
||||||
?.markNeedsBuild();
|
?.markNeedsBuild();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user