|
|
@ -418,27 +418,28 @@ class DesignComponentPage extends HookWidget { |
|
|
|
// disposeController: false, |
|
|
|
// disposeController: false, |
|
|
|
backgroundColor: Theme.of(context).colorScheme.background, |
|
|
|
backgroundColor: Theme.of(context).colorScheme.background, |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
if (!isSimulating.value) |
|
|
|
bottom: 0, |
|
|
|
Positioned( |
|
|
|
right: 0, |
|
|
|
bottom: 0, |
|
|
|
child: MouseRegion( |
|
|
|
right: 0, |
|
|
|
hitTestBehavior: HitTestBehavior.translucent, |
|
|
|
child: MouseRegion( |
|
|
|
opaque: false, |
|
|
|
hitTestBehavior: HitTestBehavior.translucent, |
|
|
|
onEnter: (_) { |
|
|
|
opaque: false, |
|
|
|
deleteOnDrop.value = true; |
|
|
|
onEnter: (_) { |
|
|
|
}, |
|
|
|
deleteOnDrop.value = true; |
|
|
|
onExit: (_) { |
|
|
|
}, |
|
|
|
deleteOnDrop.value = false; |
|
|
|
onExit: (_) { |
|
|
|
}, |
|
|
|
deleteOnDrop.value = false; |
|
|
|
child: Padding( |
|
|
|
}, |
|
|
|
padding: const EdgeInsets.all(16.0), |
|
|
|
child: Padding( |
|
|
|
child: Icon( |
|
|
|
padding: const EdgeInsets.all(16.0), |
|
|
|
Icons.delete, |
|
|
|
child: Icon( |
|
|
|
color: movingWidget.value != null && deleteOnDrop.value ? Colors.red : null, |
|
|
|
Icons.delete, |
|
|
|
|
|
|
|
color: movingWidget.value != null && deleteOnDrop.value ? Colors.red : null, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
) |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|