• Greg Spencer's avatar
    Overridable default platform key bindings (#45102) · f7d16161
    Greg Spencer authored
    This adds actions and shortcuts arguments to WidgetsApp (and MaterialApp and CupertinoApp) to allow developers to override the default mappings on an application, and to allow for a more complex definition of the default mappings.
    
    I've stopped using SelectAction here, in favor of using ActivateAction for all activations, but haven't removed it, to avoid a breaking change, and to allow a common base class for these types of actions. This is because some platforms use the same mapping (web) for both kinds of activations (both select and activate).
    f7d16161
switch.dart 22.3 KB