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

shaky_animated_listview 표지
패키지 상세v0.0.5

shaky_animated_listview

스크롤 변경 사항을 화면에서 추적하거나 리스트 항목을 다양한 전환 규칙으로 애니메이션화하기 위해 리스트를 처음에 연결합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
98
좋아요
73
Pub 점수
140

패키지 설치

flutter pub add shaky_animated_listview

패키지 개요

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

ShakyAnimatedListView는 스크롤 변경 사항이나 리스트 항목의 초기 표시를 시각적으로 추적할 수 있도록 동적 리스트 항목 애니메이션을 제공하는 Flutter 패키지입니다. 항목이 뷰포트에 들어오거나 스크롤 중에 사용자 정의 가능한 전환 효과를 적용함으로써 사용자 경험을 향상시킵니다. 부드러운 진입 및 이동 애니메이션을 갖춘 매력적이고 반응성 있는 리스트를 만들기에 적합하며, Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원합니다. 이 패키지는 가볍고 기존의 Flutter 프로젝트에 쉽게 통합될 수 있습니다.

사용 사례

  • 목록 항목 입력 애니메이션 향상
  • 스크롤 중 시각적 피드백
  • 동적 전환을 사용하여 상호작용 가능한 UI 만들기
  • 스크롤 가능한 목록에서 사용자 참여도 향상
  • 다중 플랫폼 앱에서 목록 애니메이션

주요 기능

  • 사용자 정의 가능한 전환 규칙
  • 리스트 항목에 대한 부드러운 진입 애니메이션
  • 스크롤 인식 애니메이션 추적
  • 모든 주요 플러터 플랫폼을 지원합니다
  • 경량이며 통합이 쉬움

적합한 대상

  • 인터랙티브 리스트를 구축하는 개발자
  • 시각적 완성도를 추구하는 UI 디자이너
  • 애니메이션 리스트 항목을 필요로 하는 앱
  • 크로스 플랫폼 Flutter 애플리케이션
  • 사용자 경험 향상에 중점을 둔 프로젝트

고려 사항

  • 매우 큰 목록에서는 성능에 영향을 줄 수 있습니다
  • 애니메이션 매개변수를 신중하게 조정해야 합니다
  • 사용 가능한 문서가 제한되어 있습니다
  • 중간 크기의 목록에 적합
  • 정적 또는 간단한 목록에는 적합하지 않음

원본 README

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

Shaky_animated_list

pub

Shaky_animated_list can be used for three main things:

  1. Animate List view scroll.
  2. Animate grid view first view.
  3. Animate grid view scroll.

1. Library over view

All these animations track your scroll changes on screen or your list first attachment to animated your list items with different transition rules.

Shaking Grid Scroll list Scroll Grid
shaking_grid scroll_list scroll_grid

You can define these animation directions Axis by channing your list ScrollDirection.

Shaking Grid

Shaking grid can be simply implemented by wrapping your grid child by GridAnimatorWidget and that's it we will take it from here ^^

for example you can simply do this to show shaking grey color cards

    GridView.count(
    crossAxisCount: 3,
    // shrinkWrap: true,
    children: List.generate(9, (i) => GridAnimatorWidget(
        child: Padding(
        padding: const EdgeInsets.all(4),
            child: ClipRRect(
            borderRadius: const BorderRadius.all(Radius.circular(10)),
                child: Container(
                color: Colors.grey,
                ),
        ),
    ),
    ),).toList()
    )

shaking_grid

ListView Scroll animations

ListView Scroll animations will enable your to implement the scroll animations with full control on animations space and duration please don't add vertical margins to your elements, you can use the spaceBetween to give a space between elements and extendedSpaceBetween to control the scroll animations space. Also you can use duration to control the reverse animations duration based on your needs

for example you can simply do this to show ListView vertical Scroll animations

    AnimatedListView(
    duration: 100,
    extendedSpaceBetween: 30,
    spaceBetween:10,
    children: List.generate(
    21,
    (index) => Card(
    elevation: 50,
    margin: const EdgeInsets.symmetric(horizontal: 20),
    shadowColor: Colors.black,
    color: Colors.grey,
        child: SizedBox(
        height: 300,
            child: Padding(
            padding: const EdgeInsets.all(20.0),
            child: Column(
                children: [
                    CircleAvatar(
                    backgroundColor: Colors.blue[500],
                    radius: 60,
                    child: const CircleAvatar(
                        backgroundImage: NetworkImage(
                        "https://avatars.githubusercontent.com/u/30810111?v=4"),
                        //NetworkImage
                        radius: 50,
                        ),
                    ),
                    const SizedBox(
                    height: 10,
                    ),
                    Text(
                    'Scroll to start',
                        style: TextStyle(
                        fontSize: 30,
                        color: Colors.blue[900],
                        fontWeight: FontWeight.w500,
                        ),
                    ),
                    const SizedBox(
                    height: 10,
                    ),
                    const Text(
                    'Animated list demo',
                        style: TextStyle(
                        fontSize: 15,
                        color: Colors.white,
                        ),
                    ),
                    const SizedBox(
                    height: 10,
                    ),
                ],
            ),
            ),
        ),
    )
))

scroll_list

Grid Scroll animations

Grid Scroll animations will enable your to implement the scroll animations on a grid view, one little change here is that we will implement the delegate, this is a design issue that we run into so you will have to to specify your crossAxisCount, crossAxisSpacing, mainAxisSpacing, and duration and we will take it from here,you can use any other default supported parameters in GridView.

for example you can simply do this to show Grid vertical Scroll animations

    AnimatedGridView(
          duration: 100,
          crossAxisCount: 2,
          mainAxisExtent: 256,
          crossAxisSpacing: 8,
          mainAxisSpacing: 8,
          children: List.generate(
              21,
              (index) => Card(
                    elevation: 50,
                    shadowColor: Colors.black,
                    color: Colors.grey[700],
                    child: SizedBox(
                      width: double.infinity,
                      child: Padding(
                        padding: const EdgeInsets.all(20.0),
                        child: Column(
                          children: const [
                            CircleAvatar(
                              backgroundColor: Colors.black,
                              radius: 60,
                              child: CircleAvatar(
                                backgroundImage: NetworkImage(
                                    "https://avatars.githubusercontent.com/u/30810111?v=4"),
                                //NetworkImage
                                radius: 50,
                              ),
                            ),
                          ],
                        ),
                      ),
                    ),
                  )
             )
       ),

scroll_grid

ListView horizontal Scroll animations

if you want to add a horizontal animations, all what you have to do is to add a scroll direction to the widget and that's it for example you can simply do this to show ListView horizontal Scroll animations

  AnimatedListView(
        duration: 100,
        scrollDirection: Axis.horizontal,
        children: List.generate(
        21,
            (index) => const Card(
            elevation: 50,
            margin: EdgeInsets.symmetric(horizontal: 10),
            shadowColor: Colors.black,
            color: Colors.grey,
                child: SizedBox(
                height: 300,
                width: 200,
                ),
            ),
        ),
  ),

horz_list

Sample source code

Example for all cases

Contribute

Let's develop with collaborations. We would love to have contributions by raising issues and opening PRs. Filing an issue before PR is must.

License

Project is published under the Apache 2.0 license. Feel free to clone and modify repo as you want, but don't forget to add reference to authors :)

카테고리

소스 저장소

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

아직 데이터가 없습니다.