flutter_inner_drawer
flutter_inner_drawer copied to clipboard
Drawer width doesn't reflect the offset parameter
I'm not sure if I'm doing something wrong or if the document is not very clear, but I'm trying to create a drawer that will fill 25% of the screen width. I created the following code:
@override
Widget build(BuildContext context) {
return InnerDrawer(
scaffold: Scaffold(
appBar: AppBar(title: Text('GoTV')),
),
leftChild: Text('Left Child'),
offset: IDOffset.only(left: 0.25),
);
}
But instead my drawer is filling a lot more than half of the screen:

Hi @vegidio, the offset works on 50% of the screen. In your case you will have width50%+width50%*25%.
I will add a more accurate description to improve the usage.
@vegidio am I unclear?
Can i set width to a specific value? I just need width equals 100.0,but offset doesn't work.
@cxblovecw No and it wouldn't make sense, because different devices have different screen sizes. If necessary, in the next releases, I could extend the offset on 100% of the screen, allowing more control.
@Dn-a , Is there any update? I'm also facing same issue with using right side drawer view. I just make a small upto 50% to right view with respect the screen size.
Hi @TejaDroid, you will find it in the next releases.