angulardart_custom_swipe 0.1.2 copy "angulardart_custom_swipe: ^0.1.2" to clipboard
angulardart_custom_swipe: ^0.1.2 copied to clipboard

outdatedDart 1 only

Custom swipe made for AngularDart using math to detect swipe

angulardart_custom_swipe #

AngularDart Swipe Decorator

Installation #

Add "angulardart_custom_swipe" in pubspec.yaml file:

    dependencies:
        angulardart_custom_swipe: any

then use pub to get the dependencies

How to use #

Import the module in your main.dart file

  import 'package:angulardart_custom_swipe/angulardart_custom_swipe.dart';

Add custom swipe decorator to the list of modules

  class AppModule extends Module {
    AppModule() {
      bind(customSwipe);
    }
  }

Use the decorator where you need it:

<div custom-swipe
     custom-swipe-right="swipeRightCallback()"
     custom-swipe-left="swipeLeftCallback()">Swipe on this container</div>

See examples provided on GitHub (https://github.com/allexcd/angulardart_custom_swipe). Load them in Dart Editor or WebStorm and open them in default or Dartium browsers.

0
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Custom swipe made for AngularDart using math to detect swipe

Homepage

License

unknown (license)

Dependencies

angular

More

Packages that depend on angulardart_custom_swipe