fix analyzer warning
This commit is contained in:
@@ -32,8 +32,9 @@ class LiveKitTheme {
|
|||||||
foregroundColor: MaterialStateProperty.all<Color>(Colors.white),
|
foregroundColor: MaterialStateProperty.all<Color>(Colors.white),
|
||||||
// backgroundColor: MaterialStateProperty.all<Color>(accentColor),
|
// backgroundColor: MaterialStateProperty.all<Color>(accentColor),
|
||||||
backgroundColor: MaterialStateProperty.resolveWith((states) {
|
backgroundColor: MaterialStateProperty.resolveWith((states) {
|
||||||
if (states.contains(MaterialState.disabled))
|
if (states.contains(MaterialState.disabled)) {
|
||||||
return accentColor.withOpacity(0.5);
|
return accentColor.withOpacity(0.5);
|
||||||
|
}
|
||||||
return accentColor;
|
return accentColor;
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -76,8 +76,9 @@ class SignalClient extends Disposable with EventsEmittable<SignalEvent> {
|
|||||||
// Attempt Validation
|
// Attempt Validation
|
||||||
try {
|
try {
|
||||||
final validateResponse = await http.get(validateUri);
|
final validateResponse = await http.get(validateUri);
|
||||||
if (validateResponse.statusCode != 200)
|
if (validateResponse.statusCode != 200) {
|
||||||
throw ConnectException(validateResponse.body);
|
throw ConnectException(validateResponse.body);
|
||||||
|
}
|
||||||
throw ConnectException();
|
throw ConnectException();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Pass it up if it's already a `ConnectError`
|
// Pass it up if it's already a `ConnectError`
|
||||||
|
|||||||
Reference in New Issue
Block a user