mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-02-02 11:24:50 -05:00
cleanup
This commit is contained in:
parent
a5a45e2492
commit
9be3d100e4
@ -87,7 +87,8 @@
|
|||||||
"paste_invite_here": "Paste your contact invite here:",
|
"paste_invite_here": "Paste your contact invite here:",
|
||||||
"paste": "Paste",
|
"paste": "Paste",
|
||||||
"message_from_contact": "Message from contact",
|
"message_from_contact": "Message from contact",
|
||||||
"validating": "Validating..."
|
"validating": "Validating...",
|
||||||
|
"invalid_invitation": "Invalid invitation"
|
||||||
},
|
},
|
||||||
"enter_pin_dialog": {
|
"enter_pin_dialog": {
|
||||||
"enter_pin": "Enter PIN",
|
"enter_pin": "Enter PIN",
|
||||||
|
@ -216,8 +216,8 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
|||||||
if (_isAccepting) {
|
if (_isAccepting) {
|
||||||
return SizedBox(height: 400, child: waitingPage(context));
|
return SizedBox(height: 400, child: waitingPage(context));
|
||||||
}
|
}
|
||||||
return SizedBox(
|
return ConstrainedBox(
|
||||||
height: 400,
|
constraints: const BoxConstraints(maxHeight: 400),
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
padding: const EdgeInsets.all(8),
|
padding: const EdgeInsets.all(8),
|
||||||
child: Column(
|
child: Column(
|
||||||
@ -250,6 +250,13 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
|||||||
Text(translate('paste_invite_dialog.validating')),
|
Text(translate('paste_invite_dialog.validating')),
|
||||||
buildProgressIndicator(context),
|
buildProgressIndicator(context),
|
||||||
]),
|
]),
|
||||||
|
if (_validInvitation == null &&
|
||||||
|
!_validatingPaste &&
|
||||||
|
_pasteTextController.text.isNotEmpty)
|
||||||
|
Column(children: [
|
||||||
|
Text(translate('paste_invite_dialog.invalid_invitation')),
|
||||||
|
const Icon(Icons.error)
|
||||||
|
]).paddingAll(16).toCenter(),
|
||||||
if (_validInvitation != null && !_validatingPaste)
|
if (_validInvitation != null && !_validatingPaste)
|
||||||
Column(children: [
|
Column(children: [
|
||||||
ProfileWidget(
|
ProfileWidget(
|
||||||
@ -275,7 +282,7 @@ class PasteInviteDialogState extends ConsumerState<PasteInviteDialog> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
).withModalHUD(context, _isAccepting);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user