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

flutter_gif 표지
패키지 상세v0.0.4

flutter_gif

GIF 이미지 위젯은 GIF 진행률, 속도, 반복 프레임을 제어하는 데 도움이 됩니다.

30일 다운로드
669
좋아요
56
Pub 점수
70

패키지 설치

flutter pub add flutter_gif

패키지 개요

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

flutter_gif 패키지는 Flutter 애플리케이션에서 GIF 애니메이션을 표시하고 제어하는 위젯을 제공합니다. 진행률, 속도, 프레임 반복과 같은 GIF 재생에 대한 세밀한 제어를 가능하게 합니다. 동적이고 상호작용 가능한 애니메이션 콘텐츠가 필요한 앱에 적합하며, 부드러운 렌더링과 효율적인 메모리 사용을 지원합니다. 이 패키지는 가볍고 쉽게 통합할 수 있도록 설계되어 단순한 애니메이션부터 복잡한 애니메이션 요구 사항까지 모두 대응할 수 있습니다.

사용 사례

  • 애니메이션 배너 표시
  • 상호작용형 로딩 표시기 만들기
  • 동적 시각 효과로 사용자 인터페이스 향상
  • 사용자 정의 GIF 플레이어 구현
  • 앱 요소에 재미있는 애니메이션 추가

주요 기능

  • GIF 재생 속도 조절
  • 조정 가능한 애니메이션 진행률
  • 프레임 반복 설정
  • 경량이고 효율적인 렌더링
  • 기존 Flutter 프로젝트와의 간단한 통합

적합한 대상

  • 미디어가 풍부한 앱을 개발하는 개발자
  • 애니메이션 요소가 필요한 UI 디자이너
  • 사용자 정의 GIF가 필요한 앱
  • 성능과 부드러운 애니메이션에 중점을 둔 프로젝트

고려 사항

  • GIF 형식만 가능
  • 다른 애니메이션 형식에 대한 지원 없음
  • 큰 GIF에 최적화가 필요할 수 있습니다
  • 플랫폼별 동작은 다를 수 있습니다

원본 README

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

flutter_gif

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_gif: any // or the latest version on Pub

simple usage

    FlutterGifController controller= FlutterGifController(vsync: this);


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

list the most common operate in FlutterGifController:

// loop from 0 frame to 29 frame
controller.repeat(min:0, max:29, period:const 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"));

Support the package (optional)

If you find this package useful, you can support it for free by giving it a thumbs up at the top of this page. Here's another option to support the package:

Thanks

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.

카테고리

소스 저장소

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

아직 데이터가 없습니다.