✨ Implement connection selector
- Ability to Add/Modify/Delete connections
This commit is contained in:
@ -2,6 +2,7 @@ import 'dart:convert';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:gomix_flutter/connection_selector.dart';
|
||||
import 'package:gomix_flutter/mixer_state.dart' as mixer;
|
||||
import 'package:gomix_flutter/mixing_tab.dart';
|
||||
import 'package:gomix_flutter/ports_tab.dart';
|
||||
@ -176,7 +177,12 @@ class _GoMixHomeState extends State<GoMixHome> {
|
||||
context: context,
|
||||
builder: (BuildContext context) => AlertDialog(
|
||||
title: const Text('Select Instance'),
|
||||
content: const Text("WIP"),
|
||||
content: ConnectionSelector(
|
||||
prefs: prefs,
|
||||
initWs: initWs,
|
||||
connections: (jsonDecode(
|
||||
prefs.getString("connections") ?? "{}"))
|
||||
as Map<String, dynamic>),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
onPressed: () => Navigator.pop(context, 'Cancel'),
|
||||
|
||||
Reference in New Issue
Block a user