패키지, 저장소 및 앱 카테고리 검색

flutter_box_transform 표지
패키지 상세v0.4.7

flutter_box_transform

UI 내 사각형의 고급 크기 조정을 제공하는 간편한 2D 박스 변환 작업을 지원하는 box_transform 패키지의 Flutter 구현입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
2.2만
좋아요
123
Pub 점수
160

패키지 설치

flutter pub add flutter_box_transform

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

flutter_box_transform은 정밀한 2D 박스 변환 작업을 가능하게 하는 Flutter 패키지로, UI 레이아웃 내 사각형 영역 조작을 간소화합니다. 이 패키지는 사각형의 고급 크기 조정 및 기하학적 변환을 지원하여 동적 UI 요소, 오버레이 및 인터랙티브 컴포넌트에 적합합니다. 크로스플랫폼 사용을 위해 설계되어 Android, iOS, Web, macOS, Windows, Linux에서 원활하게 작동합니다. 최소한의 코드로 상자 위치, 스케일, 회전을 조정할 수 있는 직관적인 API를 제공합니다. 시각적 레이아웃 기하학에 대한 세부 제어가 필요한 개발자를 위한 것입니다.

사용 사례

  • 동적 UI 요소 위치 지정
  • 인터랙티브 오버레이 디자인
  • 반응형 레이아웃 조정
  • 사각형의 시각적 변환
  • 다중 플랫폼 UI 일관성
  • 복잡한 모양 조작

주요 기능

  • 2D 박스 변환 유틸리티
  • 고급 사각형 크기 조정
  • 크로스 플랫폼 호환성
  • 기하 연산을 위한 직관적인 API
  • 확대/축소, 회전 및 이동을 지원
  • 내장된 정렬 및 오프셋 처리

적합한 대상

  • 정밀한 레이아웃 제어가 필요한 UI 개발자
  • 인터랙티브 인터페이스를 구현하는 디자이너
  • 반응형 또는 애니메이션 레이아웃을 개발하는 개발자
  • 복잡한 시각 효과를 갖춘 크로스 플랫폼 앱을 개발하는 팀
  • 실시간 사각형 조작이 필요한 앱

고려 사항

  • 2차원 좌표계에 대한 이해가 필요합니다
  • 고급 레이아웃 시나리오에 가장 적합
  • 간단한 UI 요구 사항에 대해 오버헤드를 추가할 수 있습니다
  • 직사각형 변환에 한정되며, 임의의 형태에는 적용되지 않음
  • 고주파 애니메이션 루프에 적합하지 않습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Banner

Box Transform

Build Tests codecov

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

Package Pub Description
box_transform Pub Version A pure Dart implementation for box transformation operations that does not rely on Flutter.
flutter_box_transform Pub Version A Flutter implementation that provides a flexible, customizable and easy to use interface tailored for Flutter projects.

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) and BindingStrategy.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.

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트