control_pad 0.0.4 control_pad: ^0.0.4 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(
color: Colors.white,
child: JoystickView(),
),
);
}
}