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

circular_bottom_navigation 표지
패키지 상세v2.4.0

circular_bottom_navigation

원형 하단 탐색(또는 탭 바일 수 있음)

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
592
좋아요
223
Pub 점수
130

패키지 설치

flutter pub add circular_bottom_navigation

패키지 개요

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

Flutter용 원형 하단 탐색 위젯으로, 전통적인 탭 바의 현대적이고 시각적으로 매력적인 대안을 제공합니다. 부드러운 애니메이션과 사용자 정의 가능한 아이콘, 레이블, 색상을 지원합니다. Android, iOS, Web, macOS, Windows, Linux 등 다양한 플랫폼에서 사용할 수 있도록 설계되어 일관된 사용자 경험을 제공합니다. 패키지는 가볍고 쉽게 통합할 수 있어 기능을 희생하지 않고도 독특한 네비게이션 레이아웃을 원하는 앱에 이상적입니다.

사용 사례

  • 모바일 앱 탐색
  • 웹 애플리케이션 인터페이스
  • 크로스 플랫폼 UI 디자인
  • 현대 앱 미학
  • 사용자 정의 탭 바 구현

주요 기능

  • 순환 레이아웃 디자인
  • 부드러운 애니메이션 전환
  • 사용자 정의 가능한 아이콘 및 레이블
  • 다중 플랫폼 지원
  • Flutter와의 간편한 통합
  • 사용자 지정 가능한 색상 테마

적합한 대상

  • 독특한 탐색 패턴을 찾는 개발자
  • 제한된 화면 공간을 가진 앱
  • 디자인 중심 애플리케이션
  • 크로스 플랫폼 프로젝트
  • UI/UX 실험

고려 사항

  • 접근성에 대한 추가 스타일링이 필요할 수 있습니다
  • 원형 레이아웃(선형 아님)으로 제한
  • 사용자 정의를 위한 잠재적 학습 곡선
  • 복잡한 탐색 계층 구조에 적합하지 않습니다
  • 업데이트를 위해 외부 GitHub 저장소에 의존합니다

원본 README

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

Circular Bottom Navigation (or maybe a tab bar).

Awesome Flutter

pub package APK

This is implementation of an artwork in Uplabs

Let's get started

1 - Install and import

In your Dart code, you can use:
import 'package:circular_bottom_navigation/circular_bottom_navigation.dart';
import 'package:circular_bottom_navigation/tab_item.dart';

2 - CheatSheet

3 - Use it like a charm

Make your TabItems
List<TabItem> tabItems = List.of([
    TabItem(Icons.home, "Home", Colors.blue, labelStyle: TextStyle(fontWeight: FontWeight.normal)),
    TabItem(Icons.search, "Search", Colors.orange, labelStyle: TextStyle(color: Colors.red, fontWeight: FontWeight.bold)),
    TabItem(Icons.layers, "Reports", Colors.red, circleStrokeColor: Colors.black),
    TabItem(Icons.notifications, "Notifications", Colors.cyan),
  ]);
Use this widget everywhere you want
CircularBottomNavigation(
      tabItems,
      selectedCallback: (int selectedPos) {
        print("clicked on $selectedPos");
      },
    )

CircularBottomNavigation supports RTL designs, If you wrap your widget in a Directionality widget and set the textDirection property you can customize the direction:

MaterialApp(
  title: 'Circular Bottom Navigation Demo',
  theme: ThemeData(
    primarySwatch: Colors.blue,
  ),
  home: Directionality(
    // use this property to change direction in whole app
    // CircularBottomNavigation will act accordingly
    textDirection: TextDirection.rtl,
    child: MyHomePage(title: 'circular_bottom_navigation'),
  ),
);
How to use CircularBottomNavigationController

With this controller you can read the current tab position, and set a tab position on widget (without needing to rebuild the tree) with the widget built in animation.

Just create a new instance of controller

CircularBottomNavigationController _navigationController =
new CircularBottomNavigationController(selectedPos);

Then pass it in your widget

CircularBottomNavigation(
      tabItems,
      controller: _navigationController,
    );

Now you can write (set new position with animation) and read value from it everywhere you want

// Write a new value
_navigationController.value = 0;

// Read the latest value
int latest = _navigationController.value;

카테고리

소스 저장소

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

아직 데이터가 없습니다.