slidable_bar 1.0.1 copy "slidable_bar: ^1.0.1" to clipboard
slidable_bar: ^1.0.1 copied to clipboard

outdated

A Flutter package to show SideBar and hide it and custimaze your clicker.

slidable_bar #

A Flutter side bar slider can be with any widget you want

Demo

Features #

  • The SlidableBar can have four positions: top, bottom, right and left.
  • Customizable clicker, you can change the clicker widget with what you want.
  • Just like Flutter's Drawer, but with new way.

Usage #

    SlidableBar(
        width: 50, // this will be the height when you change the side to bottom or top
        frontColor: Colors.green, // the color of the cycle inside the default clicker
        children: <Widget>[], // here is the widgets inside the bar
        child: Container(), // here is your page body
        // optional
        side: Side.bottom, // Side.right is the default
        clickerPosition: 1.0, // the position of the clicker, 0.0 is the default
        clickerSize: 60, // the sizer of the default clicker, 55 is the default
        onChange: (int index){
            print(index);
            // this will print the index of the widget you clicked inside the bar
        },
        duration: Duration(milliseconds: 500), // the duration of the animation, (300 mil) is the default
        isOpenFirst: true, // the initial state of the bar, false is default
        backgroundColor: Colors.black, // primary color is default
        curve: Curves.ease, // the animation curve, linear is defualt
        clicker: Icon(Icons.arrow_forward_ios), // this will build instead of the default clicker
      );

Getting started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  slidable_bar: "^1.0.0"

Then run $ flutter pub get. In your library, add the following import:

import 'package:slidable_bar/slidable_bar.dart';

Preview Images (The positions) #

Top Bottom Right Left

Custom Clicker #

Custom Clicker

Author #

Mahmoud Haj Ali - GitHub

45
likes
0
points
84
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to show SideBar and hide it and custimaze your clicker.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on slidable_bar