simple_joystick

Creator: coderz1093

Last updated:

0 purchases

simple_joystick Image
simple_joystick Images

Languages

Categories

Add to Cart

Description:

simple joystick

simple joystick #
Japanese READEME
simple joystick plugin for Flutter.
Supports iOS, Android.
(Other environments unconfirmed)
App Demo #
https://github.com/NaokiNishizawa/simple_joystick/assets/60878237/4399367d-ca9f-4c0d-96e7-8732f77f9759
Getting Started #
In your flutter project add the dependency:
dependencies:
...
 simple_joystick:
copied to clipboard
Usage example #
import 'package:simple_joystick/simple_joystick.dart';
copied to clipboard
Usage #
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
JoyStick(
150, // JoyStickAreaSize
50, // JoyStickStickSize
(details) {
// Please describe what you want to do after the stick move.
},
),
],
),
copied to clipboard
CallBack Detail #
typedef StickDragCallback = void Function(StickDragDetails details);

class StickDragDetails {
StickDragDetails(
this.x, // Global X coordinate after moving
this.y, // Global Y coordinate after moving
this.alignment,
this.currentOffset,
);

final double x;
final double y;
final Alignment alignment;
final Offset currentOffset;
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.