material-components-flutter-adaptive
material-components-flutter-adaptive copied to clipboard
[Adaptive Navigation] Menu icon is not center aligned with navigation rail items
Currently:

Should be more like:

One solution here would be to create an AdaptiveAppBar (that wraps a regular AppBar) that can adjust the menu icon position
This is not fixed because the existing solution only takes the medium screen size into account, but the rail can be configured to show up on other screen sizes
A possible solution to investigate is to make a parameter on the AppBar that is themable in the framework, and use that theme here. This would require a change to the framework. Then AdaptiveAppBar can be removed.
ahem this might work:
line about 72 right after build
double grottify() { double me;
me = getWindowType(context) == AdaptiveWindowType.large ? 96.0 : 72.0;
me = getWindowType(context) == AdaptiveWindowType.medium ? 72.0 : 56.0;
return me;
}
then at leadingWidth:
grottify()
its ugly but quick and probably works :)
well at leas until any framework changes :)