opt dyn panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-24 12:42:54 +08:00
parent 86c64fdd05
commit fe97a485c7
2 changed files with 29 additions and 43 deletions

View File

@@ -67,8 +67,7 @@ class DynamicPanel extends StatelessWidget {
padding: const EdgeInsets.fromLTRB(12, 12, 12, 6),
child: authorWidget,
),
if (item.modules.moduleDynamic!.desc != null ||
item.modules.moduleDynamic!.major != null)
if (item.type != 'DYNAMIC_TYPE_NONE')
content(theme, isSave, context, item, source, callback),
module(theme, isSave, item, context, source, callback),
if (item.modules.moduleDynamic?.additional != null)