I’ve been using Organic Maps (from F-Droid) and it has a “Keep the screen on” option in the settings. That said, I’ve never had the screen dim while navigating to a destination. The setting I mentioned prevents timeout when you’ve got the map open but not on route somewhere.