feat: save dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-07 17:31:04 +08:00
parent 457f2ea6c7
commit 82d615fbbf
11 changed files with 234 additions and 131 deletions

View File

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