push_drawer 0.0.1 copy "push_drawer: ^0.0.1" to clipboard
push_drawer: ^0.0.1 copied to clipboard

A sliding drawer, pushing the main view away

example/main.dart

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

final drawerKey = GlobalKey<PushDrawerState>();

class MyDrawerView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    throw UnimplementedError();
  }
}

class ContentView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    throw UnimplementedError();
  }
}

void main() {
  runApp(
    PushDrawer(
      key: drawerKey,
      drawerRatio: 0.9,
      drawer: MyDrawerView(),
      child: ContentView(),
    ),
  );
}
0
likes
120
pub points
0%
popularity

Publisher

unverified uploader

A sliding drawer, pushing the main view away

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on push_drawer