Skip to content

Manually opening Backdrop #131

@pishguy

Description

@pishguy

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions