Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class _EmailInput extends StatelessWidget {
? state.email.displayError == EmailValidationError.empty
? 'Email is too short'
: state.email.displayError == EmailValidationError.incorrect
? 'The format of the email address is incorrect'
? 'The format of the email is incorrect'
: null
: null);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ class InfoDialogInput extends StatelessWidget {
),
errorText: state.userEmail.displayError ==
UserEmailValidationError.incorrect
? 'The format of the email address is incorrect.'
? 'The format of the email is incorrect.'
: null,
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ class SendEmailForm extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Text('Reset password'),
const Text('Reset password', style: TextStyle(fontSize: 20)),
const Padding(padding: EdgeInsets.all(8)),
const Text(
'To reset your password, enter the email that you used to create your account',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 12,
fontSize: 14,
)),
const Padding(padding: EdgeInsets.all(8)),
_EmailInput(),
Expand Down Expand Up @@ -63,7 +64,7 @@ class _EmailInput extends StatelessWidget {
? state.email.displayError == EmailValidationError.empty
? 'Email is too short'
: state.email.displayError == EmailValidationError.incorrect
? 'The format of the email address is incorrect'
? 'The format of the email is incorrect'
: null
: null);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class SendOtpForm extends StatelessWidget {
return Column(
mainAxisSize: MainAxisSize.min,
children: [
const Text('Reset password'),
const Text('Reset password', style: TextStyle(fontSize: 20)),
const Padding(padding: EdgeInsets.all(8)),
Text(
'We have sent a verification code to ${context.read<ResetPasswordBloc>().state.email.value}',
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 12,
fontSize: 14,
)),
const Padding(padding: EdgeInsets.all(8)),
const OtpInput(),
Expand Down Expand Up @@ -127,10 +127,11 @@ class OtpInputState extends State<OtpInput> {
),
const Padding(
padding: EdgeInsets.all(8.0),
child: Text(
"Enter the 6 digit OTP sent to your email",
textAlign: TextAlign.center,
),
child: Text("Enter the 6 digit OTP sent to your email",
textAlign: TextAlign.center,
style: const TextStyle(
fontSize: 16,
)),
),
Padding(
padding: const EdgeInsets.all(8.0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SendResetPasswordForm extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
const Text('Set new password'),
const Text('Set new password', style: TextStyle(fontSize: 20)),
const Padding(padding: EdgeInsets.all(8)),
_PasswordInput(),
const Padding(padding: EdgeInsets.all(8)),
Expand Down
15 changes: 7 additions & 8 deletions sama_chat_client/lib/src/shared/ui/view/text_button_forms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class TextFieldForm extends StatelessWidget {
onChanged: (username) => onChanged(username),
decoration: InputDecoration(
border: InputBorder.none,
floatingLabelBehavior: error != null
? FloatingLabelBehavior.never
: FloatingLabelBehavior.auto,
contentPadding: const EdgeInsets.only(left: 12.0),
isDense: true,
label: Row(
Expand All @@ -53,13 +50,15 @@ class TextFieldForm extends StatelessWidget {
size: 26,
color: dullGray,
),
Text(
hint,
style: const TextStyle(color: dullGray, fontSize: 16),
)
Expanded(
child: Text(
error ?? hint,
style: TextStyle(
color: error != null ? red : dullGray, fontSize: 16),
overflow: TextOverflow.ellipsis,
))
],
),
errorText: error,
suffixIcon: Padding(
padding: const EdgeInsets.only(right: 8),
child: suffix ?? const SizedBox(),
Expand Down