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

stage_navigation_bar 표지
패키지 상세v0.1.0

stage_navigation_bar

항목을 선택할 때 애니메이션이 있는 아름다운 네비게이션 바를 제공하는 플러터 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
10
좋아요
9
Pub 점수
150

패키지 설치

flutter pub add stage_navigation_bar

패키지 개요

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

항목 간 전환 시 부드러운 애니메이션을 제공하는 시각적으로 매력적인 하단 탐색 바를 제공하는 플러터 패키지입니다. 탐색 중 동적 시각 피드백을 제공하여 사용자 경험을 향상시키며, 매력적이고 현대적인 인터페이스 요소가 필요한 앱에 적합합니다. Android, iOS, Web, macOS, Windows, Linux 등 여러 플랫폼을 지원하여 장치 간 일관된 동작을 보장합니다. pub add를 통해 최소한의 설정으로 개발자는 프로젝트에 시각적으로 풍부한 탐색 솔루션을 빠르게 통합할 수 있습니다.

사용 사례

  • 모바일 앱 탐색
  • 웹 애플리케이션 인터페이스
  • 크로스 플랫폼 데스크톱 앱
  • 인터랙티브 UI 프로토타입
  • 현대적인 앱 디자인 구현

주요 기능

  • 애니메이션 항목 선택
  • 부드러운 전환 효과
  • 다중 플랫폼 지원
  • pub과의 간편한 통합
  • 사용자 정의 가능한 외관
  • 반응형 디자인

적합한 대상

  • 애니메이션 네비게이션 바를 찾는 개발자
  • 디자인 중심의 플러터 애플리케이션
  • 다중 플랫폼을 대상으로 하는 앱
  • UI/UX 개선 프로젝트
  • 초보자에서 중급자까지의 플러터 사용자

고려 사항

  • 오래된 장치에서 성능 테스트가 필요할 수 있습니다
  • 기본 스타일링을 넘어서는 사용자 정의가 제한되어 있음
  • 외부 애니메이션 라이브러리에 의존합니다
  • 간단한 정적 탐색 요구 사항에 적합하지 않습니다
  • 다른 네비게이션 패키지와의 잠재적 충돌

원본 README

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

Static Badge Static Badge Static Badge

A beautiful navigation bar with animation when select item.

Top To Bottom

Table of contents

  1. Installing
  2. How To Use
  3. Showcase
  4. Example Project
  5. Contributors

🖥 Installing

Add Dependency
dependencies:
  stage_navigation_bar: ^0.1.0 #latest version
Import Package
import 'package:stage_navigation_bar/stage_navigation_bar.dart';

ℹ️ How To Use

Place your StageNavigationBar to the bottomNavigationBar slot of a Scaffold. Or in the bottom of your main page view.

Code
class StageNavigationBarExample extends StatefulWidget {
  const StageNavigationBarExample({super.key});

  @override
  State<StageNavigationBarExample> createState() =>
      _StageNavigationBarExampleState();
}

class _StageNavigationBarExampleState extends State<StageNavigationBarExample> {
  /// Your initial page
  int _selectedIndex = 0;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      bottomNavigationBar: StageNavigationBar(
        items: const [
          Icon(Icons.home_filled, color: Colors.white),
          Icon(Icons.favorite, color: Colors.white),
          Icon(Icons.search, color: Colors.white),
          Icon(Icons.person, color: Colors.white),
        ],
        selectedIndex: _selectedIndex,
        indicatorColor: Colors.amber,
        onTap: (int index) {
          setState(() {
            _selectedIndex = index;
          });
        },
      ),
    );
  }
}
Properties
  • animationDirection: Define the animation move shape when tap.
  • alignment: Alignment of the items.
  • barHeight: StageNavigationBar height.
  • barWidth: StageNavigationBar width.
  • indicatorHeight: Indicator line height.
  • itemPadding: Each item padding.
  • duration: Indicator animation Transition duration.
  • selectedIndex*: Current selected index.
  • indicatorColor*: Color of the indicator and the gradient.
  • onTap*: On item tap.
  • barPadding?: StageNavigationBar internal padding.
  • barMargin?: StageNavigationBar external padding.
  • decoration?: StageNavigationBar box decoration.
  • selectedIndicatorBorderRadius?: Selected item indicator border radius.
  • unselectedIndicatorBorderRadius?: Unselected item indicator border radius.
  • items!: StageNavigationBar items, List of widget.
  • itemsCount!: Items count for itemBuilder callback.
  • itemBuilder!: Callback will be called with indices greater than or equal to zero and less than itemsCount.
Default values
  • animationDirection = IndicatorAnimationDirection.topToBottom,
  • alignment = Alignment.center,
  • barHeight = 60,
  • barWidth = double.infinity
  • indicatorHeight = 5,
  • itemPadding = const EdgeInsets.all(0),
  • duration = const Duration(milliseconds: 200),
  • selectedIndicatorBorderRadius: default value depends on 'animationDirection' value,
  • unselectedIndicatorBorderRadius: default value depends on 'animationDirection' value,
IndicatorAnimationDirection Values
IndicatorAnimationDirection.top
IndicatorAnimationDirection.topToBottom
IndicatorAnimationDirection.centerToTop
IndicatorAnimationDirection.centerToBottom
IndicatorAnimationDirection.bottom
IndicatorAnimationDirection.bottomToTop
Event
onTap: (index){

}

🕹 Showcase

IndicatorAnimationDirection
animationDirection: IndicatorAnimationDirection.top

Top


animationDirection: IndicatorAnimationDirection.topToBottom

Top To Bottom


animationDirection: IndicatorAnimationDirection.centerToTop

Center To Top


animationDirection: IndicatorAnimationDirection.centerToBottom

Center To Bottom


animationDirection: IndicatorAnimationDirection.bottom

Bottom


animationDirection: IndicatorAnimationDirection.bottomToTop

Bottom To Top

📱 Example Project

Pub Example

Github Example Project

👨🏻‍💻 Contributors

Mohammad Alamoudi @mu7mmd

카테고리

소스 저장소

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

아직 데이터가 없습니다.