mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 02:32:54 +01:00
chore: Better authwebview
This commit is contained in:
parent
2f7749a0c5
commit
d76df0ae4a
@ -20,6 +20,7 @@ class SignUpPassword extends StatefulWidget {
|
|||||||
class _SignUpPasswordState extends State<SignUpPassword> {
|
class _SignUpPasswordState extends State<SignUpPassword> {
|
||||||
final TextEditingController passwordController = TextEditingController();
|
final TextEditingController passwordController = TextEditingController();
|
||||||
String passwordError;
|
String passwordError;
|
||||||
|
String _lastAuthWebViewStage;
|
||||||
bool loading = false;
|
bool loading = false;
|
||||||
bool showPassword = true;
|
bool showPassword = true;
|
||||||
|
|
||||||
@ -66,6 +67,12 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
if (_lastAuthWebViewStage == currentStage) {
|
||||||
|
setState(
|
||||||
|
() => passwordError = L10n.of(context).oopsSomethingWentWrong);
|
||||||
|
return setState(() => loading = false);
|
||||||
|
}
|
||||||
|
_lastAuthWebViewStage = currentStage;
|
||||||
await AdaptivePageLayout.of(context).pushNamed(
|
await AdaptivePageLayout.of(context).pushNamed(
|
||||||
'/authwebview/$currentStage/${exception.session}',
|
'/authwebview/$currentStage/${exception.session}',
|
||||||
arguments: () => _signUpAction(
|
arguments: () => _signUpAction(
|
||||||
|
Loading…
Reference in New Issue
Block a user