drag_ball 0.1.1
drag_ball: ^0.1.1 copied to clipboard

A Flutter package, inspiration Indonesia e-commerce widget or similiar AssistiveTouch on Iphone.

Dragball

A flutter package, inpiration Indonesian e-commerce widget or similiar AssistiveTouch on Iphone.


Platform Donate


⚠️ Warning #

  • Give the ball the same width as the ball size, for animation calculations
  • if you are making ui for web, desktop, please don't use mediaquery computation. Use immutable value if display is resized

Example #

Dragball(
      ball: FlutterLogo(
        size: 70,
      ),
      ballSize: 70,
      startFromRight: true,
      onTap: () {
        debugPrint('Dragball Tapped ${DateTime.now().microsecond}');
      },
      child: Scaffold(
        appBar: AppBar(
          title: Text('Dragball Example'),
        ),
        body: ListView.builder(
          padding: const EdgeInsets.symmetric(horizontal: 20),
          itemBuilder: (context, index) {
            return Container(
              height: 250,
              width: double.infinity,
              margin: const EdgeInsets.only(bottom: 16),
              decoration: BoxDecoration(
                color: Colors.grey[200],
                borderRadius: const BorderRadius.all(Radius.circular(10)),
              ),
            );
          },
          itemCount: 5,
        ),
      ),
    );


🚧 Maintener #

Farhan Fadila
Farhan Fadila
📫 How to reach me: farhan.fadila1717@gmail.com

17
likes
130
pub points
53%
popularity

A Flutter package, inspiration Indonesia e-commerce widget or similiar AssistiveTouch on Iphone.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on drag_ball