If you place a TextField in a Stack behind the Dropzone, you can focus on the TextField, but you cannot type in it. It works in Google Chrome but not in Firefox and Safari.
import 'package:flutter/material.dart';
import 'package:flutter_dropzone/flutter_dropzone.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key, required this.title});
final String title;
@override
Widget build(BuildContext context) {
return const Scaffold(
body: Stack(
children: [
Column(
children: [
TextField(),
TextField(),
],
),
IgnorePointer(
child: DropzoneView(),
),
],
),
);
}
}
If you place a TextField in a Stack behind the Dropzone, you can focus on the TextField, but you cannot type in it. It works in Google Chrome but not in Firefox and Safari.
Versions:
Example