box_transform 0.4.4 box_transform: ^0.4.4 copied to clipboard
A pure dart implementation of advanced 2D box transformation with easy and simple API.
Box Transform #
Box Transform is a pure-Dart base package that allows you to programmatically handle box resizing and dragging without relying on Flutter. It provides highly flexible, programmatically resizable and draggable boxes that can be used in any Dart project.
Features #
- 📏 Dimension Constraining: Set maximum and minimum constraints to keep boxes within specific boundaries while resizing.
- 🔁 Flipping Mechanics: Advanced positional-flipping when resizing hits extreme values with hard constraints.
- 🔒 Drag Clamping: Specify clamping boxes to keep your transformable boxes within a specific region.
- 🎨 Flexible Resizing Modes: Choose from four different resizing modes for more flexibility in how boxes are resized.
- 📍 Customizable Anchor Points: Define resizing corner-handles to anchor different parts of the box when resizing.
- 🚀 Easy Integration: Integrate Box Transform into your Dart or Flutter project with ease.
Getting started #
Go to the Getting Started page of the documentation to start using Box Transform.
Example App: box-transform-example.firebaseapp.com #
Playground: box-transform-playground.firebaseapp.com #
Documentation #
Documentation is available at https://docs.page/hyper-designed/box_transform.
Contributing #
See CONTRIBUTING.md for details.
See DEVELOPMENT.md for development setup.
Authors #
Birju Vachhani |
Saad Ardati |
Feel free to join our Discord server for any inquiries or support: https://discord.gg/yrahEhCqTJ
License #
BSD 3-Clause License
Copyright (c) 2023, Birju Vachhani
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.