1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 08:15:16 +00:00

Start Flutter update

This commit is contained in:
2021-03-13 15:14:54 +01:00
parent fb80f3bd52
commit 819e2a7590
24 changed files with 140 additions and 189 deletions

View File

@ -79,7 +79,7 @@ class _ConversationRouteState extends SafeState<ConversationRoute> {
return buildErrorCard(
tr("Could not get conversation information!"),
actions: <Widget>[
FlatButton(
TextButton(
onPressed: _loadConversation,
child: Text(
tr("Try again").toUpperCase(),

View File

@ -146,14 +146,14 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> {
children: <Widget>[
Text(tr("Here are your options to reset your account:")),
_Spacer(),
OutlineButton.icon(
OutlinedButton.icon(
onPressed: _openSendEmailDialog,
icon: Icon(Icons.email),
label: Text(tr("Send us an email to ask for help")),
),
_Spacer(visible: _hasSecurityQuestions),
_hasSecurityQuestions
? OutlineButton.icon(
? OutlinedButton.icon(
onPressed: _loadSecurityQuestions,
icon: Icon(Icons.help_outline),
label: Text(tr("Answer your security questions")),
@ -199,7 +199,7 @@ class _ResetPasswordBodyState extends SafeState<_ResetPasswordBody> {
..add(_Spacer())
..addAll(List.generate(_questions.length, _buildSecurityQuestionField))
..add(_Spacer())
..add(OutlineButton(
..add(OutlinedButton(
onPressed: _canSubmitAnswers ? _submitSecurityAnswers : null,
child: Text(tr("Submit")),
)),