rand dart fix

This commit is contained in:
2026-01-15 17:36:22 -08:00
parent dbbdafd893
commit 91e7e39fe8
131 changed files with 976 additions and 1365 deletions
@@ -27,7 +27,7 @@ class _WindowAcceptRegionState extends State<WindowAcceptRegion> {
@override
Widget build(BuildContext context) {
return SizedBox.fromSize(
size: widget?.size,
size: widget.size,
child: LayoutBuilder(
builder: (context, dimens) => Stack(
fit: StackFit.expand,
@@ -42,22 +42,22 @@ class _WindowAcceptRegionState extends State<WindowAcceptRegion> {
),
),
Positioned.fill(
left: widget?.left ?? 0,
right: widget?.right ?? 0,
top: widget?.top ?? 0,
bottom: widget?.bottom ?? 0,
left: widget.left ?? 0,
right: widget.right ?? 0,
top: widget.top ?? 0,
bottom: widget.bottom ?? 0,
child: Container(
child: DragTarget<WindowTab>(
builder: (context, accepted, rejected) => Container(),
onAccept: (val) {
onAcceptWithDetails: (val) {
if (mounted) {
setState(() {
accepting = false;
});
}
if (widget.onAccept != null) widget.onAccept(val);
widget.onAccept(val);
},
onWillAccept: (val) {
onWillAcceptWithDetails: (val) {
if (mounted) {
setState(() {
accepting = true;