ColourDragTargetFeedback class
Displays simple containers with colours depending on whether a drag is valid or not.
- Inheritance
-
- Object
- SimpleDragTargetFeedback
- ColourDragTargetFeedback
Constructors
- ColourDragTargetFeedback({Color? none, Color? valid, Color? invalid, BoxShape shape = BoxShape.rectangle, EdgeInsetsGeometry? margin})
- ColourDragTargetFeedback.fromTheme({BoardTheme theme = BoardTheme.blueGrey, BoxShape shape = BoxShape.rectangle, EdgeInsetsGeometry? margin})
-
Uses colours from
theme
.factory
Properties
Methods
-
build(
{required BuildContext context, required int id, required double squareSize, required List< PartialMove?> accepted, required List rejected}) → Widget? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited