-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
how can i Manually opening Backdrop to show frontLayer without using like sample code action such as:
backLayer: BackdropNavigationBackLayer(
items: [
ListTile(title: Text("Widget 1")),
ListTile(title: Text("Widget 2")),
],
onTap: (int position) => {setState(() => _currentIndex = position)},
),this is my code and i get Null check operator used on a null value error on this line of code Backdrop.of(context).fling() :
return BackdropScaffold(
backgroundColor: Colors.white,
revealBackLayerAtStart: true,
backLayer: Center(
child: GestureDetector(
onTap: () {
Backdrop.of(context).fling();
},
child: Container(
width: 200,
height: 100,
color: Colors.black12,
child: Text("Back Layer"),
),
),
),
frontLayer: Center(child: Text("Widget 1")),
);Metadata
Metadata
Assignees
Labels
No labels