drag_ball 2.0.0 copy "drag_ball: ^2.0.0" to clipboard
drag_ball: ^2.0.0 copied to clipboard

A Flutter package similiar AssistiveTouch on Iphone.

cover #

flutter badge paypal
qr-paypal

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

🌟 Open To Work / Freelance #

Farhan The author of this package is available for hiring as Flutter Developer. See portofolio website here.

📌 Note #

  • Put [DragBall] on top the Scaffold

Example #

Dragball(
  ball: const FlutterLogo(
    size: 70,
  ),
  initialPosition: DragballPosition.defaultPosition(),
  onTap: () => debugPrint('Dragball Tapped'),
  onPositionChanged: (DragballPosition position) =>
      debugPrint(position.toString()),
  child: Scaffold(
    appBar: AppBar(
      title: const Text('Dragball Example'),
    ),
    body: ListView.builder(
      padding: const EdgeInsets.all(20),
      itemBuilder: (BuildContext context, int index) {
        return Padding(
          padding: const EdgeInsets.only(bottom: 20),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: const [
              SizedBox(
                width: 100,
                height: 30,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
              SizedBox(height: 16),
              SizedBox(
                width: double.infinity,
                height: 160,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
              SizedBox(height: 16),
              SizedBox(
                width: 200,
                height: 30,
                child: DecoratedBox(
                  decoration: BoxDecoration(
                    color: Color(0xFFE5E5E5),
                    borderRadius: BorderRadius.all(Radius.circular(15)),
                  ),
                ),
              ),
            ],
          ),
        );
      },
      itemCount: 5,
    ),
  ),
);

Output #

output


🚧 Maintener #

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

❤️ Suport Maintener #

badge paypal badge linktree

qr-paypal

36
likes
130
pub points
78%
popularity
screenshot

Publisher

verified publisherfarhanfadila.site

A Flutter package similiar AssistiveTouch on Iphone.

Homepage
Repository (GitHub)
View/report issues

Topics

#assitive-touch #tiktok #overlay #draggable

Documentation

API reference

Funding

Consider supporting this project:

www.paypal.me

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on drag_ball