• Hans Muller's avatar
    Add Dismissable support for DismissDirection · 4e01c054
    Hans Muller authored
    ```
    enum DismissDirection {
      vertical,
      horizontal,
      left,
      right,
      up,
      down
    }
    ```
    
    To only enable dismissing to the right create the `Dismissable` with `direction: DismissDirection.right`. By default direction is `DismissDirection.horizontal` (left or right).
    
    Updated the card_collection "Swipe Away" demo with a drawer that can be used to select one of the three X axis dismiss directions. Currently the MixedViewport class doesn't support horizontal scrolling, so the demo doesn't support the X axis dismiss directions.
    4e01c054
card_collection.dart 6.92 KB