Lets not waste time and get started with the code. add dependecy: dependencies:
backdrop: ">=0.0.0 <0.1.0" run get package: $ flutter packages get drop in BackdropScaffold widget in your code: import 'package:backdrop/backdrop.dart';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Backdrop Demo',
home: BackdropScaffold(
title: Text("Backdrop Example"),
backpanel: Center(
child: Text("Backpanel"),
),
body: Center(
child: Text("Body"),
),
),
);
}
}