material-components-flutter-adaptive icon indicating copy to clipboard operation
material-components-flutter-adaptive copied to clipboard

[Adaptive Navigation] Menu icon is not center aligned with navigation rail items

Open clocksmith opened this issue 5 years ago • 4 comments

Currently: Screen Shot 2020-08-11 at 1 36 29 PM

Should be more like: Screen Shot 2020-08-11 at 1 37 17 PM

clocksmith avatar Aug 11 '20 17:08 clocksmith

One solution here would be to create an AdaptiveAppBar (that wraps a regular AppBar) that can adjust the menu icon position

clocksmith avatar Sep 09 '20 15:09 clocksmith

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

clocksmith avatar Oct 09 '20 15:10 clocksmith

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.

clocksmith avatar Oct 13 '20 17:10 clocksmith

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 :)

fredgrott avatar Dec 30 '21 23:12 fredgrott