mod: save panel use absolute time (#657)

This commit is contained in:
My-Responsitories
2025-04-10 12:34:40 +08:00
committed by GitHub
parent 1d4b08672b
commit 2a60a9b393
6 changed files with 168 additions and 135 deletions

View File

@@ -14,14 +14,14 @@ class DynamicPanel extends StatelessWidget {
final String? source;
final Function? onRemove;
final Function(List<String>, int)? callback;
final bool? isSave;
final bool isSave;
const DynamicPanel({
required this.item,
this.source,
this.onRemove,
this.callback,
this.isSave,
this.isSave = false,
super.key,
});
@@ -31,7 +31,7 @@ class DynamicPanel extends StatelessWidget {
// padding: source == 'detail'
// ? const EdgeInsets.only(bottom: 12)
// : EdgeInsets.zero,
decoration: isSave == true ||
decoration: isSave ||
(source == 'detail' &&
Get.context!.orientation == Orientation.landscape)
? null
@@ -133,6 +133,7 @@ class DynamicPanel extends StatelessWidget {
item: item,
source: source,
onRemove: onRemove,
isSave: isSave,
),
),
if (item!.modules!.moduleDynamic!.desc != null ||
@@ -141,7 +142,7 @@ class DynamicPanel extends StatelessWidget {
forWard(isSave, item, context, source, callback),
const SizedBox(height: 2),
if (source == null) ActionPanel(item: item),
if (source == 'detail' && isSave != true) const SizedBox(height: 12),
if (source == 'detail' && !isSave) const SizedBox(height: 12),
],
);
}