diff --git a/lib/port_connection_dialog.dart b/lib/port_connection_dialog.dart index ad44db3..0a2506b 100644 --- a/lib/port_connection_dialog.dart +++ b/lib/port_connection_dialog.dart @@ -106,26 +106,28 @@ class _PortConnectionState extends State { Widget build(BuildContext context) { return SizedBox( width: min(MediaQuery.of(context).size.width, 400), - child: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.stretch, - children: (connections - .map((elem) => PortConnectionCard( - sourcePort: elem.$1, - connection: elem.$2, - isOutput: widget.isOutput, - mixerState: widget.mixerState, - sendAction: widget.sendAction) as Widget) - .toList()) + - [ - const SizedBox(height: 10), - TextButton.icon( - onPressed: () { - widget.showNewConnectionDialog(context); - }, - icon: const Icon(Icons.add), - label: const Text("New connection")) - ], + child: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.stretch, + children: (connections + .map((elem) => PortConnectionCard( + sourcePort: elem.$1, + connection: elem.$2, + isOutput: widget.isOutput, + mixerState: widget.mixerState, + sendAction: widget.sendAction) as Widget) + .toList()) + + [ + const SizedBox(height: 10), + TextButton.icon( + onPressed: () { + widget.showNewConnectionDialog(context); + }, + icon: const Icon(Icons.add), + label: const Text("New connection")) + ], + ), ), ); }