Fix duplicate FileDropTarget.

This commit is contained in:
Elias Bonnici 2024-01-10 10:29:24 +01:00 committed by Dain Nilsson
parent 5462ffe6c5
commit a7984a5e4e
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -295,20 +295,7 @@ class AppPage extends StatelessWidget {
],
),
drawer: hasDrawer ? _buildDrawer(context) : null,
body: onFileDropped != null && !hasRail
? Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(
child: FileDropTarget(
onFileDropped: onFileDropped!,
overlay: fileDropOverlay!,
child: body,
),
)
],
)
: body,
body: body,
);
}
}