fancy_bottom_bar 0.0.1 copy "fancy_bottom_bar: ^0.0.1" to clipboard
fancy_bottom_bar: ^0.0.1 copied to clipboard

discontinued

A different take on your standard bottom app bar. Inspired by \https://dribbble.com/shots/6957731-Reader-app-tab-bar

example/README.md

Example App #

import 'package:fancy_bottom_bar/fancy_bottom_bar.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.red,
      ),
      home: new HomeWidget(),
    );
  }
}

class HomeWidget extends StatefulWidget {
  const HomeWidget({
    Key key,
  }) : super(key: key);

  @override
  _HomeWidgetState createState() => _HomeWidgetState();
}

class _HomeWidgetState extends State<HomeWidget> {
  int selectedPos = 0;

  final tabItems = [
    FancyBottomItem(title: Text("Home"), icon: Icon(Icons.home)),
    FancyBottomItem(title: Text("Connect"), icon: Icon(Icons.usb)),
    FancyBottomItem(title: Text("Profile"), icon: Icon(Icons.person)),
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      bottomNavigationBar: FancyBottomBar(
        onItemSelected: (i) => setState(() => selectedPos = i),
        items: tabItems,
        selectedPosition: selectedPos,
        selectedColor: Colors.amber,
        indicatorColor: Colors.deepPurple,
      ),
      body: Container(
        width: double.infinity,
        color: Colors.orange.shade100,
        child: Column(
          mainAxisSize: MainAxisSize.max,
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text("Check out what's happening below!"),
            SizedBox(height: 32),
            tabItems[selectedPos].icon
          ],
        ),
      ),
    );
  }
}
26
likes
40
pub points
51%
popularity

Publisher

unverified uploader

A different take on your standard bottom app bar. Inspired by \https://dribbble.com/shots/6957731-Reader-app-tab-bar

Homepage

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on fancy_bottom_bar