Open programmerElephant opened 4 years ago
@programmerElephant more details please. Share your code
@Dn-a i have the same issue. how to use gesture to swipe back when offset is 1 and leftChild is opened
@override
Widget build(BuildContext context) {
return InnerDrawer(
offset: IDOffset.only(left: 1),
leftChild: Container(
alignment: Alignment.center,
child: Text("data"),
),
scaffold: Scaffold(
body: Container(
alignment: Alignment.center,
child: Text("body"),
),
),
);
}
@akashicrecorder
InnerDrawer(key: _innerDrawerKey,...);
final GlobalKey<InnerDrawerState> _innerDrawerKey = GlobalKey<InnerDrawerState>();
You have three possibilities
_innerDrawerKey.currentState.open(
direction: InnerDrawerDirection.end // optional
);
_innerDrawerKey.currentState.close();
_innerDrawerKey.currentState.toggle();
when i set offset:IDOffset.horizontal(1), i can't use gesture to swipe back can you help me thanks