glissando 0.0.1 copy "glissando: ^0.0.1" to clipboard
glissando: ^0.0.1 copied to clipboard

retractedoutdated

Slide over widgets while the pointer is down.

glissando #

Slide across widgets while the pointer is down.

[doc/keyboard_slide.gif]

Usage #

Wrap your widget in a Glissando.

import 'package:flutter/material.dart';
import 'package:glissando/glissando.dart';

void main() {
  runApp(MaterialApp(
    home: Glissando(
      child: Row(
        children: [
          Listener(
            onPointerDown: (_) => print("1 down"),
            onPointerCancel: (_) => print("1 cancel"),
            onPointerUp: (_) => print("1 up"),
            child: Container(
              color: Colors.red,
              width: 100,
              height: 100,
            ),
          ),
          Listener(
            onPointerDown: (_) => print("2 down"),
            onPointerCancel: (_) => print("2 cancel"),
            onPointerUp: (_) => print("2 up"),
            child: Container(
              color: Colors.blue,
              width: 100,
              height: 100,
            ),
          ),
        ],
      ),
    ),
  ));
}

When you slide from widget A to widget B, widget A will receive a pointer cancel event, while widget B will receive a pointer down event.

When you lift the pointer, the widget that last got the down event will get the pointer up event.

1
likes
0
points
137
downloads

Publisher

unverified uploader

Weekly Downloads

Slide over widgets while the pointer is down.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on glissando