Code Monkey home page Code Monkey logo

mjhansen3 / floaty_navy_bar Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 430 KB

A highly customizable and dynamic floating navigation bar. Use this for your Flutter apps where you need a bottom navigation bar. To achieve the desired floaty effect, avoid passing FloatyNavyBar() to the bottomNavigationBar property. See example or README.md on how to properly use the FloatyNavyBar.

License: MIT License

Dart 17.25% Kotlin 0.21% Swift 2.96% Objective-C 0.07% CMake 33.25% C++ 40.68% C 2.44% HTML 3.15%
dart flutter flutter-ui

floaty_navy_bar's Introduction

๐Ÿ“ฆ Floaty Navy Bar

Version: 1.0.5

๐Ÿ’ป EXAMPLE

      Scaffold(
        backgroundColor: Colors.grey[140],
        // BODY TAKES IN A STACK WIDGET WHICH INCLUDES:
        // List<Widgets>, [Home(), Search(), Settings(), Profile()] and
        // FloatingNavigationBar
        // CREATE A BOOL VARIABLE _isVisible and INITIALIZE IT TRUE
        // ** DETERMINE _isVisible WITH YOUR SCROLLCONTROLLER
        body: Stack(
          children: [
            List<Widget>,
            FloatyNavyBar(
            opacityAnimation: _isVisible, 
            backgroundColor: Colors.black,
              barHeight: 70.0,
              iconColor: Colors.white,
              textStyle: const TextStyle(
                color: Colors.white,
                fontSize: 14.0,
              ),
              iconSize: 28.0,
              indicatorColor: Colors.white,
              indicatorHeight: 3,
              indicatorWidth: 14.0,
              items: [
                NavyBarItem(
                  icon: EvaIcons.homeOutline,
                ),
                NavyBarItem(
                  icon: EvaIcons.search,
                  title: "Search",
                ),
                NavyBarItem(
                  icon: EvaIcons.settingsOutline,
                ),
                NavyBarItem(
                  icon: EvaIcons.personOutline,
                  title: "Profile",
                ),
              ],
              onChanged: (value) {
                // USE YOUR STATE MANAGEMENT TECHNIQUE TO GET
                // AND CHANGE INDEX OF NAVIGATION BAR
              },
            )
          ],
        ),
      );

Willing to contribute? Go ahead and send pull request ๐Ÿ˜

Found bug or issues? ๐Ÿ˜ž Open an issue on Github repo

๐Ÿ”‘ License

MIT License

floaty_navy_bar's People

Contributors

mjhansen3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.