Tinyrack

Drop Overlay

Cover a Flutter file-drop target with a shared accessible drag-active state.

Cover a file-drop target with a shared, accessible drag-active state.

Contract

AxisContract
OwnershipWrap the complete product-owned drop target. The product still validates payloads and handles the drop.
InteractionThe overlay ignores pointer events, announces the localized label while visible, and removes motion when reduced motion is enabled.

Install

Add the package, then import its public library.

flutter pub add tinyrack_ui
import 'package:tinyrack_ui/tinyrack_ui.dart';

Playground

Usage

import 'package:material_ui/material_ui.dart';
import 'package:tinyrack_ui/tinyrack_ui.dart';

TRDropOverlay(
  visible: dragging,
  label: 'Drop files here',
  child: conversationPane,
)

API

TRDropOverlay properties

PropType / defaultPurpose
visiblebool · requiredShows or hides the drag-active layer.
labelString · requiredProvides the localized visible and semantic instruction.
childWidget · requiredSupplies the complete surface covered by the overlay.