mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
mod: save panel use absolute time (#657)
This commit is contained in:
committed by
GitHub
parent
1d4b08672b
commit
2a60a9b393
@@ -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),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user