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

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

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:slidable_bar/slidable_bar.dart';

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

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

class Example extends StatefulWidget {

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

class _ExampleState extends State<Example> {

  final SlidableBarController controller = SlidableBarController(initialStatus: true);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('slidable bar example'),
      ),
      body: Column(
        children: [
          Container(
            height: 210,
            width: 300,
            child: SlidableBar(
              size: 60,
              slidableController: controller,
              side: Side.top,
              barChildren: [
                FlutterLogo(size: 50,),
                FlutterLogo(size: 50,),
                FlutterLogo(size: 50,),
                FlutterLogo(size: 50,),
              ],
              child: Container(
                color: Colors.grey.shade200,
                child: Center(
                  child: ElevatedButton(
                    child: Text("reverse status"),
                    onPressed: (){
                      controller.reverseStatus();
                    },
                  ),
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
48
likes
140
points
99
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on slidable_bar