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

패키지 상세v1.0.1

flutter_gifimage

Flutter용 GIF 이미지. GIF의 속도 및 진행률을 제어할 수 없는 문제를 해결하기 위해

30일 다운로드
467
좋아요
63
Pub 점수
40

패키지 설치

flutter pub add flutter_gifimage

패키지 개요

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

표준 GIF 처리의 한계인 고정된 재생 속도와 진행 추적 기능 부족을 해결하고 GIF 애니메이션에 정밀한 제어를 가능하게 하는 플러터 패키지입니다. 개발자는 GIF를 재생, 일시정지, 다시 시작 및 탐색할 수 있으며, 더 상호작용적인 경험을 제공합니다. 플러터 앱에 원활하게 통합되도록 설계되었으며 사용자 지정 애니메이션 동작을 지원합니다. 성능과 사용 편의성을 고려하여 제작되어 동적 이미지 콘텐츠를 통해 사용자 참여도를 높입니다.

사용 사례

  • 인터랙티브 앱 아이콘
  • 사용자 지정 진행률이 있는 로딩 표시기
  • 애니메이션 튜토리얼
  • 게임화된 UI 요소
  • 사용자 지정 GIF 플레이어

주요 기능

  • GIF 재생, 일시정지 및 다시 시작
  • 특정 프레임 또는 시간으로 이동
  • 재생 속도 조정
  • 진보적 로딩 지원
  • 사용자 정의 애니메이션 동작

적합한 대상

  • 세밀한 GIF 제어가 필요한 개발자
  • 애니메이션 UI 컴포넌트가 필요한 앱
  • 상호작용 미디어 요소를 포함한 프로젝트
  • 교육용 또는 게임화된 애플리케이션
  • 고성능 애니메이션 필요

고려 사항

  • 큰 GIF의 경우 메모리 사용량이 증가할 수 있습니다
  • 애니메이션 라이프사이클을 신중하게 관리해야 합니다
  • 최적화 없이 매우 긴 또는 복잡한 GIF에는 적합하지 않습니다
  • 제한된 플랫폼별 최적화
  • 디코딩을 위한 외부 라이브러리에 의존합니다

원본 README

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

flutter_gifimage

We should know that in order to achieve Gif in flutter, we can use Image, but we have no way to manipulate Gif, for example: change its speed, control it has been playing in a frame, in which frame range loop. These problems can be solved by this widget,it also help you contain gif cache,avoid load frame every time.

Screenshots

Usage(Simple)

add in pubspec


     flutter_gifimage: ^1.0.0

simple usage

    GifController controller= GifController(vsync: this);


    GifImage(
         controller: controller,
         image: AssetImage("images/animate.gif"),
    )

list the most common operate in GifController:

// loop from 0 frame to 29 frame
controller.repeat(min:0,max:29,period:Duration(millseconds:300));

// jumpTo thrid frame(index from 0)
controller.value = 0;

// from current frame to 26 frame
controller.animateTo(26);

If you need to preCache gif,try this

// put imageProvider
fetchGif(AssetImage("images/animate.gif"));

Thanks

  • gif_ani (thanks for giving me idea)

License

MIT License

Copyright (c) 2019 Jpeng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

카테고리

소스 저장소

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

아직 데이터가 없습니다.