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: [
|
||||
Expanded(
|
||||
child: Builder(
|
||||
builder: (context) => TextButton.icon(
|
||||
builder: (btnContext) => TextButton.icon(
|
||||
onPressed: () {
|
||||
showModalBottomSheet(
|
||||
context: context,
|
||||
@@ -482,8 +482,8 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
|
||||
.moduleStat
|
||||
.forward!
|
||||
.count = (count + 1).toString();
|
||||
if (context.mounted) {
|
||||
(context as Element?)
|
||||
if (btnContext.mounted) {
|
||||
(btnContext as Element?)
|
||||
?.markNeedsBuild();
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user