FlutterDropzoneView constructor
FlutterDropzoneView(
- int viewId
Implementation
FlutterDropzoneView(this.viewId) {
final id = 'dropzone-container-$viewId';
container = web.HTMLDivElement()
..id = id
..style.pointerEvents = 'auto'
..style.border = 'none'
// idea from https://keithclark.co.uk/articles/working-with-elements-before-the-dom-is-ready/
..append(web.HTMLStyleElement()
..innerText =
'@keyframes $id-animation {from { clip: rect(1px, auto, auto, auto); } to { clip: rect(0px, auto, auto, auto); }}')
..style.animationName = '$id-animation'
..style.animationDuration = '0.001s'
..style.width = '100%'
..style.height = '100%'
..addEventListener('animationstart', _startCallback.toJS);
}