• gspencergoog's avatar
    Adding proper accommodation for textScaleFactor in bottom navigation bar. (#12421) · 8d41fa78
    gspencergoog authored
    This updates the bottom navigation bar to be able to handle more general widgets in the place of the label in the bottom navigation bar, so that Text with a textScaleFactor larger than 1.0 will behave nicely in a bottom navigation bar.
    
    It also means that other widgets given instead of a Text widget for the label will work more predictably.
    
    I also vastly simplified the layout logic, eliminating many computations that were not needed, and refactored the build function to use a separate private navigation tile widget.
    
    Also, the color splash animations were coming from the wrong location (they were coming from far to the right of the touched widget), so that works as specified now.
    8d41fa78
constants.dart 1.42 KB