control_pad 1.1.1+1 control_pad: ^1.1.1+1 copied to clipboard
A virtual pad with joystick controller and configurable buttons.
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(
child: JoystickView(),
),
);
}
}