Flutter Drawer

Drawer package lets you add a beautiful drawer to your Flutter app.

Installation

  1. Add the latest version of package to your pubspec.yaml (and run'dart pub get'):
dependencies:
    flutter_drawer_x: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:flutter_drawer_x/flutter_drawer_x.dart';

Example

These are the properties that you can modify:

  • title
  • gradient (color1 and color2)

class FlutterDrawer extends StatelessWidget {  
  const FlutterDrawer({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: Center(  
        child: const FlutterDrawer(  
          title: 'Implement Flutter Package',  
          color1: Colors.indigo,  
          color2: Colors.white,  
        ),  
      ),  
    );  
  }  
}

Libraries

flutter_drawer_x