floating_navbar 1.0.0 floating_navbar: ^1.0.0 copied to clipboard
A new Flutter package project.
floating_navbar #
This package allows developers to add a simpler custom navigation bar that floats at the bottom to their flutter applications.
Developed by Ngonidzashe Mangudya
Usage #
Add dependency #
floating_navbar: ^1.0.0
Import package #
import 'package:floating_navbar/floating_navbar.dart';
Use in code as follows #
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: FloatingNavBar(
color: Colors.purple,
pages: <Widget>[HomePage(), MyPage()],
icons: [
Icon(
Icons.home,
color: Colors.white,
),
Icon(
Icons.account_circle,
color: Colors.white,
)
],
),
);
}
}