|
...
|
...
|
@@ -138,39 +138,43 @@ class AddSecurityEmailView extends GetView<AddSecurityEmailController> { |
|
|
|
}),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Obx(() {
|
|
|
|
if (!c.showError) return const SizedBox(height: 0);
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 8, left: 20),
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
l10n.invalidEmailFormat,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Theme.of(context).colorScheme.error,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
SizedBox(
|
|
|
|
height: 88,
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.only(top: 8.0, left: 20, right: 20),
|
|
|
|
child: Obx(() => c.emailInput.value.isNotEmpty &&
|
|
|
|
controller.isEmailExist.value
|
|
|
|
? Text(
|
|
|
|
controller.isEmailExistText,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.warning,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Obx(() {
|
|
|
|
if (!c.showError) return const SizedBox(height: 0);
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.only(top: 8, left: 20),
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
l10n.invalidEmailFormat,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.warning,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox.shrink()),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
top: 8.0, left: 20, right: 20),
|
|
|
|
child: Obx(() => c.emailInput.value.isNotEmpty &&
|
|
|
|
controller.isEmailExist.value
|
|
|
|
? Text(
|
|
|
|
controller.isEmailExistText,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.warning,
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: SizedBox.shrink()),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
...
|
...
|
|