Quickly implement backdrop with flutter

Harsh Bhikadia
Jul 23, 2018 · 2 min read
1. Backlayer 2. Frontlayer 3. Subheader

BackdropScaffold

Basic Backdrop Implementation

Add backdrop as dependecy

dependencies:
backdrop: ">=0.0.0 <0.1.0"
$ flutter packages get
import 'package:backdrop/backdrop.dart';

Implementation example

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"),
),

),
);
}
}

Contribute

Harsh Bhikadia

Written by

Curious Mind. www.bhikadia.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade