🐛 Fix port_connection_dialog not being scrollable
This commit is contained in:
@ -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"))
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user