| .. | .. |
|---|
| 138 | 138 | children: [ |
|---|
| 139 | 139 | StatusDot(status: wsStatus), |
|---|
| 140 | 140 | const SizedBox(width: 12), |
|---|
| 141 | | - Text( |
|---|
| 142 | | - _statusText(wsStatus), |
|---|
| 143 | | - style: Theme.of(context).textTheme.bodyLarge, |
|---|
| 141 | + Expanded( |
|---|
| 142 | + child: Column( |
|---|
| 143 | + crossAxisAlignment: CrossAxisAlignment.start, |
|---|
| 144 | + children: [ |
|---|
| 145 | + Text( |
|---|
| 146 | + _statusText(wsStatus), |
|---|
| 147 | + style: Theme.of(context).textTheme.bodyLarge, |
|---|
| 148 | + ), |
|---|
| 149 | + if (ref.watch(connectedViaProvider).isNotEmpty) |
|---|
| 150 | + Text( |
|---|
| 151 | + 'via ${ref.watch(connectedViaProvider)}', |
|---|
| 152 | + style: TextStyle( |
|---|
| 153 | + fontSize: 12, |
|---|
| 154 | + color: Colors.grey.shade500, |
|---|
| 155 | + ), |
|---|
| 156 | + ), |
|---|
| 157 | + ], |
|---|
| 158 | + ), |
|---|
| 144 | 159 | ), |
|---|
| 145 | 160 | ], |
|---|
| 146 | 161 | ), |
|---|