v0.1.5
ff_navigation_bar
강조 및 그림자와 함께 구성 가능한 하단 탐색 바
159좋아요 8330일 다운로드40Pub 점수
플랫폼 정보 없음
Flutter용 구성 가능한 네비게이션 바
{"sdk":"flutter"}^4.0.2{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A highly configurable navigation bar with emphasis for the selected item. https://raw.githubusercontent.com/55Builds/Flutter-FFNavigationBar/HEAD/navbar-demo.gif
dependencies:
ff_navigation_bar: ^0.1.5
import 'package:flutter/material.dart';
import 'package:ff_navigation_bar/ff_navigation_bar.dart';
...
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text(
'Demonstration',
),
],
),
),
bottomNavigationBar: FFNavigationBar(
theme: FFNavigationBarTheme(
barBackgroundColor: Colors.white,
selectedItemBorderColor: Colors.yellow,
selectedItemBackgroundColor: Colors.green,
selectedItemIconColor: Colors.white,
selectedItemLabelColor: Colors.black,
),
selectedIndex: selectedIndex,
onSelectTab: (index) {
setState(() {
selectedIndex = index;
});
},
items: [
FFNavigationBarItem(
iconData: Icons.calendar_today,
label: 'Schedule',
),
FFNavigationBarItem(
iconData: Icons.people,
label: 'Contacts',
),
FFNavigationBarItem(
iconData: Icons.attach_money,
label: 'Bills',
),
FFNavigationBarItem(
iconData: Icons.note,
label: 'Notes',
),
FFNavigationBarItem(
iconData: Icons.settings,
label: 'Settings',
),
],
),
);
The navbar has a Theme class which can be used to define the majority of appearance settings for the navbar and its items.
Function(int selectedIndex)