🐛 Fix port_connection_dialog not being scrollable

This commit is contained in:
2024-08-29 22:53:50 +02:00
parent 02882871b9
commit 7f6772888a

View File

@ -106,26 +106,28 @@ class _PortConnectionState extends State<PortConnectionDialog> {
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()) +
<Widget>[
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()) +
<Widget>[
const SizedBox(height: 10),
TextButton.icon(
onPressed: () {
widget.showNewConnectionDialog(context);
},
icon: const Icon(Icons.add),
label: const Text("New connection"))
],
),
),
);
}