🐛 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) {
|
Widget build(BuildContext context) {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
width: min(MediaQuery.of(context).size.width, 400),
|
width: min(MediaQuery.of(context).size.width, 400),
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
mainAxisSize: MainAxisSize.min,
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: (connections
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
.map((elem) => PortConnectionCard(
|
children: (connections
|
||||||
sourcePort: elem.$1,
|
.map((elem) => PortConnectionCard(
|
||||||
connection: elem.$2,
|
sourcePort: elem.$1,
|
||||||
isOutput: widget.isOutput,
|
connection: elem.$2,
|
||||||
mixerState: widget.mixerState,
|
isOutput: widget.isOutput,
|
||||||
sendAction: widget.sendAction) as Widget)
|
mixerState: widget.mixerState,
|
||||||
.toList()) +
|
sendAction: widget.sendAction) as Widget)
|
||||||
<Widget>[
|
.toList()) +
|
||||||
const SizedBox(height: 10),
|
<Widget>[
|
||||||
TextButton.icon(
|
const SizedBox(height: 10),
|
||||||
onPressed: () {
|
TextButton.icon(
|
||||||
widget.showNewConnectionDialog(context);
|
onPressed: () {
|
||||||
},
|
widget.showNewConnectionDialog(context);
|
||||||
icon: const Icon(Icons.add),
|
},
|
||||||
label: const Text("New connection"))
|
icon: const Icon(Icons.add),
|
||||||
],
|
label: const Text("New connection"))
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user