control_pad 0.0.3 control_pad: ^0.0.3 copied to clipboard
A control pad that allows you to control anything with a joystick.
import 'package:flutter/material.dart';
import 'package:control_pad/control_pad.dart';
void main() {
runApp(ExampleApp());
}
class ExampleApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Control Pad Example',
home: HomePage(),
);
}
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Control Pad Example'),
),
body: Container(
color: Colors.white,
child: JoystickView(),
),
);
}
}