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

floating_bottom_bar 표지
패키지 상세v0.0.4

floating_bottom_bar

이 패키지는 중심과 하단 탭 버튼에 위치한 플로팅 액션 버튼에 슬라이딩 애니메이션을 제공합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.4천
좋아요
115
Pub 점수
150

패키지 설치

flutter pub add floating_bottom_bar

패키지 개요

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

floating_bottom_bar 패키지는 중심에 위치한 플로팅 액션 버튼과 하단 탭 버튼에 부드러운 슬라이딩 애니메이션을 추가하여 사용자 인터페이스를 향상시킵니다. Flutter 앱 전용으로 설계되어 하단 네비게이션 바와 원활하게 통합되며, Android, iOS, 웹, macOS, Windows, Linux 플랫폼에서 매력적이고 상호작용적인 경험을 제공합니다. 사용자 정의 가능한 전환 효과와 반응형 레이아웃을 지원하여 직관적인 탐색과 시각적 매력을 중시하는 현대적인 앱 디자인에 이상적입니다.

사용 사례

  • 모바일 앱 탐색 개선
  • 애니메이션 플로팅 액션 버튼 만들기
  • 대시보드에서 사용자 참여도 향상
  • 반응형 하단 탐색 디자인
  • 웹 앱에 동적 UI 요소 추가하기
  • 다중 플랫폼 앱 개발 지원

주요 기능

  • FAB용 부드러운 슬라이딩 애니메이션
  • 중앙 정렬 플로팅 액션 버튼
  • 하단 탭 통합
  • 크로스 플랫폼 호환성
  • 사용자 정의 전환 효과
  • 반응형 레이아웃 지원

적합한 대상

  • 애니메이션 UI를 찾는 플러터 개발자
  • 직관적인 하단 탐색이 필요한 앱
  • 디자이너는 상호작용 컴포넌트에 집중합니다
  • 다중 플랫폼 애플리케이션 빌더
  • 모바일 및 웹 앱 UX 개선

고려 사항

  • Flutter SDK 2.0 이상이 필요합니다
  • 저사양 기기에서 성능에 영향을 줄 수 있습니다
  • 애니메이션을 넘어서는 사용자 정의가 제한적
  • 간단한 탐색 패턴에 가장 적합
  • 플랫폼 고유의 렌더링에 의존
  • 복잡한 탐색 계층 구조에는 적합하지 않습니다

원본 README

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

floating_bottom_bar

This package will animate a floating action button at the center and icons at the bottomNavigationBar using AnimatedContainer and SlideTransition respectively.

Floating Bottom Bar

Floating Bottom Bar

Usage

Example
    bottomNavigationBar: AnimatedBottomNavigationBar(
      barColor: Colors.white,
      controller: FloatingBottomBarController(initialIndex: 1),
      bottomBar: [
        BottomBarItem(
          icon: const Icon(Icons.home, size: example.Dimens.iconNormal),
          iconSelected: const Icon(Icons.home,
              color: example.AppColors.cherryRed,
              size: example.Dimens.iconNormal),
          title: example.Strings.home,
          dotColor: example.AppColors.cherryRed,
          onTap: (value) {
            setState(() {
              index = value;
            });
            log('Home $value');
          },
        ),
        BottomBarItem(
          icon:
              const Icon(Icons.photo, size: example.Dimens.iconNormal),
          iconSelected: const Icon(Icons.photo,
              color: example.AppColors.cherryRed,
              size: example.Dimens.iconNormal),
          title: example.Strings.search,
          dotColor: example.AppColors.cherryRed,
          onTap: (value) {
            setState(() {
              index = value;
            });
            log('Search $value');
          },
        ),
        BottomBarItem(
          icon:
              const Icon(Icons.person, size: example.Dimens.iconNormal),
          iconSelected: const Icon(Icons.person,
              color: example.AppColors.cherryRed,
              size: example.Dimens.iconNormal),
          title: example.Strings.person,
          dotColor: example.AppColors.cherryRed,
          onTap: (value) {
            setState(() {
              index = value;
            });
            log('Profile $value');
          },
        ),
        BottomBarItem(
          icon: const Icon(Icons.settings,
              size: example.Dimens.iconNormal),
          iconSelected: const Icon(Icons.settings,
              color: example.AppColors.cherryRed,
              size: example.Dimens.iconNormal),
          title: example.Strings.settings,
          dotColor: example.AppColors.cherryRed,
          onTap: (value) {
            setState(() {
              index = value;
            });
            log('Settings $value');
          },
        ),
      ],
      bottomBarCenterModel: BottomBarCenterModel(
        centerBackgroundColor: example.AppColors.cherryRed,
        centerIcon: const FloatingCenterButton(
          child: Icon(
            Icons.add,
            color: AppColors.white,
          ),
        ),
        centerIconChild: [
          FloatingCenterButtonChild(
            child: const Icon(
              Icons.home,
              color: AppColors.white,
            ),
            onTap: () => log('Item1'),
          ),
          FloatingCenterButtonChild(
            child: const Icon(
              Icons.access_alarm,
              color: AppColors.white,
            ),
            onTap: () => log('Item2'),
          ),
          FloatingCenterButtonChild(
            child: const Icon(
              Icons.ac_unit_outlined,
              color: AppColors.white,
            ),
            onTap: () => log('Item3'),
          ),
        ],
      ),
    ),
Required parameters
bottomBar:

This property takes List as a parameter which are use to show the icons in the bottomNavigationBar.

bottomBarCenterModel:

BottomBarCenterModel class is model class for bottom menu. It takes icon, iconSelected, title, titleStyle as parameters.

controller:

FloatingBottomBarController is used to give the initial index to the bottom bar to have the pre selected item form the bottom bar.

Guideline for contributors

Contribution towards our repository is always welcome, we request contributors to create a pull request to the develop branch only.

Guideline to report an issue/feature request

It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue

LICENSE!

Animated Segment is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.