flutter_deck_ws_client 0.1.2 flutter_deck_ws_client: ^0.1.2 copied to clipboard
A WebSocket client for the flutter_deck package that allows you to control the presentation remotely.
Example usage in flutter_deck presentation #
void main() {
runApp(const FlutterDeckPresentation());
}
class FlutterDeckPresentation extends StatelessWidget {
const FlutterDeckPresentation({super.key});
@override
Widget build(BuildContext context) {
return FlutterDeckApp(
client: FlutterDeckWsClient(uri: Uri.parse('ws://localhost:8080')),
isPresenterView: true,
configuration: FlutterDeckConfiguration(
transition: const FlutterDeckTransition.fade(),
),
slides: const [
TitleSlide(),
ContentSlide(),
EndSlide(),
],
);
}
}