| .. | .. |
|---|
| 196 | 196 | ref.read(wsStatusProvider.notifier).state = status; |
|---|
| 197 | 197 | if (status == ConnectionStatus.connected) { |
|---|
| 198 | 198 | ref.read(connectionDetailProvider.notifier).state = ''; |
|---|
| 199 | + ref.read(connectedViaProvider.notifier).state = _ws?.connectedVia ?? ''; |
|---|
| 200 | + } else { |
|---|
| 201 | + ref.read(connectedViaProvider.notifier).state = ''; |
|---|
| 199 | 202 | } |
|---|
| 200 | 203 | } |
|---|
| 201 | 204 | }; |
|---|
| .. | .. |
|---|
| 1417 | 1420 | connectionDetail, |
|---|
| 1418 | 1421 | style: TextStyle(fontSize: 11, color: Colors.grey.shade400), |
|---|
| 1419 | 1422 | ), |
|---|
| 1423 | + if (wsStatus == ConnectionStatus.connected && ref.watch(connectedViaProvider).isNotEmpty) |
|---|
| 1424 | + Text( |
|---|
| 1425 | + 'via ${ref.watch(connectedViaProvider)}', |
|---|
| 1426 | + style: TextStyle(fontSize: 11, color: Colors.grey.shade500), |
|---|
| 1427 | + ), |
|---|
| 1420 | 1428 | ], |
|---|
| 1421 | 1429 | ), |
|---|
| 1422 | 1430 | actions: [ |
|---|