Auto-expand modifier groups with children (ignore isCollapsible flag)
This commit is contained in:
parent
f6428a14ff
commit
d111833aab
2 changed files with 4 additions and 13 deletions
|
|
@ -1659,17 +1659,13 @@ class _ItemCustomizationSheetState extends State<_ItemCustomizationSheet> {
|
|||
for (final child in children) {
|
||||
final hasGrandchildren = widget.itemsByParent.containsKey(child.itemId);
|
||||
|
||||
if (hasGrandchildren && child.isCollapsible) {
|
||||
// Auto-expand any item with children (regardless of isCollapsible flag)
|
||||
if (hasGrandchildren) {
|
||||
// Collapsible section with ExpansionTile
|
||||
widgets.add(_buildExpansionTile(child, parent, depth));
|
||||
} else {
|
||||
// Regular checkbox/radio item
|
||||
// Regular checkbox/radio item (leaf node)
|
||||
widgets.add(_buildSelectableItem(child, parent, depth));
|
||||
|
||||
// Recursively add grandchildren
|
||||
if (hasGrandchildren && _selectedItemIds.contains(child.itemId)) {
|
||||
widgets.addAll(_buildModifierTree(child.itemId, depth + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -163,12 +163,7 @@ class _SplashScreenState extends State<SplashScreen> with TickerProviderStateMix
|
|||
// Start beacon scanning in background
|
||||
await _performBeaconScan();
|
||||
|
||||
// Ensure minimum 3 seconds display time so user can see/use skip button
|
||||
if (!mounted) return;
|
||||
final elapsed = DateTime.now().difference(_splashStartTime);
|
||||
if (elapsed < const Duration(seconds: 3)) {
|
||||
await Future.delayed(const Duration(seconds: 3) - elapsed);
|
||||
}
|
||||
// No minimum display time - proceed as soon as scan completes
|
||||
|
||||
// Navigate based on results
|
||||
if (!mounted) return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue