easy_bottom_bar 0.0.3 copy "easy_bottom_bar: ^0.0.3" to clipboard
easy_bottom_bar: ^0.0.3 copied to clipboard

A Flutter package to make a bottomBar easily in few lines by avoiding more lines of code.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomeScreen(),
    );
  }
}

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {
  @override
  Widget build(BuildContext context) {
    return EasyBottomBar(
      bottomItems: [
        BottomNavigationBarItem(icon: Icon(Icons.home), label: 'Example'),
        BottomNavigationBarItem(
            icon: Icon(Icons.bike_scooter), label: 'Example2'),
        BottomNavigationBarItem(icon: Icon(Icons.movie), label: 'Example3'),
        BottomNavigationBarItem(
            icon: Icon(Icons.airline_seat_individual_suite), label: 'Example4'),
      ],
      tabs: [
        Container(
            child: Center(
          child: Icon(Icons.home),
        )),
        Container(
            child: Center(
          child: Icon(Icons.bike_scooter),
        )),
        Container(
            child: Center(
          child: Icon(Icons.movie),
        )),
        Container(
            child: Center(
          child: Icon(Icons.airline_seat_flat),
        ))
      ],
      currentindex: 1,
    );
  }
}
4
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A Flutter package to make a bottomBar easily in few lines by avoiding more lines of code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

flutter, flutter_localizations

More

Packages that depend on easy_bottom_bar