Skip to content
pubscout

box_transform

0.4.4, released 2 years ago by hyperdesigned.dev

Pure-Dart implementation of advanced 2D box transformation, resizing, and dragging.

WASM-ready
$ flutter pub add box_transform
Source repository

What it does

Provides programmatically resizable and draggable 2D boxes without relying on Flutter. Includes dimension constraining, positional flipping mechanics, drag clamping, and customizable anchor points.

AI-written summary of version 0.4.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to handle box resizing and dragging logic programmatically in Dart or Flutter.
  • You require advanced features like dimension constraining and positional flipping.

Skip it when

  • You only need simple out-of-the-box Flutter UI widgets without managing custom box transformation logic.
  • Your project does not deal with 2D rectangles or spatial manipulations.

Strengths

  • Pure Dart implementation independent of Flutter.
  • Flexible resizing modes and customizable anchor points.
  • Supports dimension constraining and dragging clamping.

Weaknesses

  • Requires manual implementation for rendering the UI elements based on the transformation results.
  • Limited to 2D box transformations.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:box_transform/box_transform.dart';

// Use BoxTransformer to handle resizing or moving boxes programmatically

Alternatives

Packages that do the same job and could replace box_transform.

Works with

Packages commonly used together with box_transform: ones it builds on, ones built on it, and its own family.