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

패키지 상세v1.0.2

motion_widget

간단하고 강력한 위젯으로 멋진 전환 효과를 만들 수 있습니다. 초기화, 상태 변경, 코드 정리 및 기타 모든 애니메이션 보일러플레이트 코드를 처리하며, 각 간격에서 애니메이션을 제어할 수 있게 해주어 항상 운전석에 앉아 있도록 합니다.

30일 다운로드
14
좋아요
66
Pub 점수
20

패키지 설치

flutter pub add motion_widget

패키지 개요

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

MotionWidget는 부드럽고 동적인 전환을 쉽게 만들 수 있도록 설계된 Flutter 패키지입니다. 초기화, 상태 관리 및 정리와 같은 일반적인 애니메이션 보일러플레이트를 추상화하면서도 개발자가 애니메이션 간격을 완전히 제어할 수 있도록 합니다. 직관적인 API를 통해 개발자는 저수준의 애니메이션 로직보다 디자인과 행동에 집중할 수 있습니다. 유연한 상호작용을 갖춘 반응형 UI를 구축하는 데 이상적이며, 세련된 시각적 피드백을 통해 사용자 경험을 향상시킵니다.

사용 사례

  • 애니메이션 버튼 상태 만들기
  • 슬라이딩 패널 전환 만들기
  • 페이드인/페이드아웃 효과 구현
  • 인터랙티브 폼 요소 설계
  • 애니메이션 리스트 항목 입력
  • UI 컴포넌트에 마이크로 인터랙션 추가하기

주요 기능

  • 자동 애니메이션 라이프사이클 관리
  • 애니메이션 간격에 대한 세밀한 제어
  • 최소한의 보일러플레이트 코드
  • 복잡한 전환 시퀀스를 지원합니다
  • 기존 위젯과의 간편한 통합
  • 깔끔하고 읽기 쉬운 API

적합한 대상

  • 효율적인 애니메이션 솔루션을 찾는 Flutter 개발자
  • 인터랙티브 프로토타입을 구현하는 UI/UX 디자이너
  • 풍부하고 반응성 있는 애니메이션을 필요로 하는 앱
  • 깨끗하고 유지보수 가능한 애니메이션 코드를 우선시하는 팀
  • 개발자들이 수동적인 AnimationController 관리 회피

고려 사항

  • 기본 애니메이션 개념에 대한 이해가 필요합니다
  • 핵심 예제 외에 문서가 제한되어 있음
  • 간단한 사용 사례에서 오버헤드가 발생할 수 있습니다
  • 매우 높은 주파수의 애니메이션에 최적화되지 않음
  • 중간에서 복잡한 전환 요구 사항에 가장 적합

원본 README

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

motion_widget

A simple, powerful widget to build cool transitions

Features

  • Fine-grained control with Interval
  • Lightweight & fully customizable
  • No boilerplate code
  • Works with Row & Column
  • Support for Translate & Fade modes
  • Provides Exit transitions
  • No code clean-up required
Screenshots

Screenshot

Usage

To use this plugin :

  • Add the dependency
  dependencies:
    flutter:
      sdk: flutter
    motion_widget:
  • Use the widget as a Row or a Column
Motion<Row>(
    children: <Widget>[]
)
  • Wrap its child with MotionElement
MotionElement(
    interval: Interval(0.3, 0.9)
    mode: MotionMode.FADE
    child: Container()
    orientation: MotionOrientation.HORIZONTAL_LEFT
)
  • Provide exitConfigurations for exit transitions
Motion(
    exitConfigurations: MotionExitConfigurations(
        displacement: 200,
        orientation: MotionOrientation.HORIZONTAL_LEFT,
        durationMs: 400
    )
)

Pull Requests

All the pull requests are welcomed. Please feel free to make valuable additions in the code.

Created by

Sumeet Rukeja (LinkedIn)

License

Copyright 2020 Sumeet Rukeja

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

   http://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.

카테고리

소스 저장소

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

아직 데이터가 없습니다.