box_transform
一个用于 UI 中矩形高级缩放的库。
- 星标
- 84
- 复刻
- 22
- 最近推送(UTC)
- 2026年7月19日
- 项目状态
- 未归档
原始 README
以下为英文项目原文快照,最新内容请访问 GitHub。
Box Transform
Box Transform provides packages that allows you to programmatically handle box resizing and dragging. It provides highly flexible, programmatically resizable and draggable boxes that can be used in any Dart or Flutter project.
Packages
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.
- 🎨 Customizable Handles: Use default resizing handles or define your own custom handles.
- 🌀 Rotation Support: Rotate boxes around their center, with full rotated-aware drag, resize, flip, and clamping. Choose between
BindingStrategy.originalBox(the unrotated logical rect stays in the clamp; rotated corners may extend outside) andBindingStrategy.boundingBox(the rendered axis-aligned footprint stays inside). Rotation gestures slide-then-freeze: when the requested angle would force the rect outside the clamp, the box slides into available slack first, then caps at the last feasible angle. Rotated force-flip also falls back to the natural direction when the flipped state can't fit, so the rect stays clamp-pinned instead of jumping or freezing. - 🚀 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 boxtransform.hyperdesigned.dev.
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!
License
Copyright © 2023 Hyperdesigned
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
语言DartHTMLSwiftShellRubyJavaObjective-C
分类
如何选择适合项目的代码仓?
先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
- 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
- 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
- 使用前在 GitHub 核对 README、许可证与 Issues。
来源与维护
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗

