chore: Follow up design textfields
This commit is contained in:
parent
a3d15ec001
commit
aa3de2816b
13 changed files with 105 additions and 52 deletions
|
|
@ -3,6 +3,7 @@ import 'dart:io';
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:matrix/encryption.dart';
|
||||
import 'package:matrix/matrix.dart';
|
||||
|
||||
|
|
@ -69,9 +70,14 @@ extension LocalizedExceptionExtension on Object {
|
|||
}
|
||||
if (this is IOException ||
|
||||
this is SocketException ||
|
||||
this is SyncConnectionException) {
|
||||
this is SyncConnectionException ||
|
||||
this is ClientException) {
|
||||
return L10n.of(context)!.noConnectionToTheServer;
|
||||
}
|
||||
if (this is FormatException &&
|
||||
exceptionContext == ExceptionContext.checkHomeserver) {
|
||||
return L10n.of(context)!.doesNotSeemToBeAValidHomeserver;
|
||||
}
|
||||
if (this is String) return toString();
|
||||
if (this is UiaException) return toString();
|
||||
Logs().w('Something went wrong: ', this);
|
||||
|
|
@ -81,4 +87,5 @@ extension LocalizedExceptionExtension on Object {
|
|||
|
||||
enum ExceptionContext {
|
||||
changePassword,
|
||||
checkHomeserver,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue