slidable_bar 1.1.1 copy "slidable_bar: ^1.1.1" to clipboard
slidable_bar: ^1.1.1 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: Container(
        child: SlidableBar(
          size: 60,
          slidableController: controller,
          side: Side.left,
          clicker: Container(
            color: Colors.green,
            height: 50,
            width: 20,
          ),
          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();
                },
              ),
            ),
          ),
        ),
      ),
    );
  }
}
41
likes
130
pub points
71%
popularity

Publisher

unverified uploader

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