• Greg Spencer's avatar
    Don't allow Disabled InkWells to be focusable (#43848) · 0028887a
    Greg Spencer authored
    Makes sure that disabled InkWell/InkResponse and widgets that use them don't allow themselves to be focused.
    
    ListTile, PopupMenu, and Stepper were not setting canRequestFocus properly on the InkWell, and InkWell was allowing focus even if it was disabled (it was basically just relying on the containing widget to set canRequestFocus properly). Now InkWell must both be enabled (have an onTap or similar) and have canRequestFocus set to true.
    0028887a
stepper_test.dart 18.4 KB