feat: set top dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-16 08:01:21 +08:00
parent 2cc9324f08
commit 3638d65008
8 changed files with 75 additions and 1 deletions

View File

@@ -15,14 +15,16 @@ class DynamicPanel extends StatelessWidget {
final Function? onRemove;
final Function(List<String>, int)? callback;
final bool isSave;
final Function(bool isTop, dynamic dynId)? onSetTop;
const DynamicPanel({
super.key,
required this.item,
this.source,
this.onRemove,
this.callback,
this.isSave = false,
super.key,
this.onSetTop,
});
@override
@@ -134,6 +136,7 @@ class DynamicPanel extends StatelessWidget {
source: source,
onRemove: onRemove,
isSave: isSave,
onSetTop: onSetTop,
),
),
if (item!.modules!.moduleDynamic!.desc != null ||