Turn off Windows 10 screen brightness auto-adjustment feature

Turning off the auto-brightness feature on Windows 10 will help you adjust the brightness as desired, without encountering the annoying flashing when changing from light background to dark background and vice versa.