|
...
|
...
|
@@ -297,31 +297,33 @@ class _AgreementText extends GetView<LoginController> { |
|
|
|
decorationColor: _linkColor,
|
|
|
|
);
|
|
|
|
|
|
|
|
return Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Obx(() {
|
|
|
|
final isChecked = controller.termsChecked.value;
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: controller.toggleTermsChecked,
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.only(right: 8.0, top: 4.0, bottom: 4.0),
|
|
|
|
child: Icon(
|
|
|
|
isChecked
|
|
|
|
? Icons.check_circle_rounded
|
|
|
|
: Icons.radio_button_unchecked_rounded,
|
|
|
|
color: isChecked
|
|
|
|
? context.colors.primary
|
|
|
|
: context.colors.textSecondary,
|
|
|
|
size: 18,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
Text.rich(
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24.0),
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: controller.toggleTermsChecked,
|
|
|
|
behavior: HitTestBehavior.opaque,
|
|
|
|
child: Text.rich(
|
|
|
|
TextSpan(
|
|
|
|
style: baseStyle,
|
|
|
|
children: [
|
|
|
|
WidgetSpan(
|
|
|
|
alignment: PlaceholderAlignment.middle,
|
|
|
|
child: Obx(() {
|
|
|
|
final isChecked = controller.termsChecked.value;
|
|
|
|
return Icon(
|
|
|
|
isChecked
|
|
|
|
? Icons.check_circle_rounded
|
|
|
|
: Icons.radio_button_unchecked_rounded,
|
|
|
|
color: isChecked
|
|
|
|
? context.colors.primary
|
|
|
|
: context.colors.textSecondary,
|
|
|
|
size: 18,
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
const WidgetSpan(
|
|
|
|
child: SizedBox(width: 8),
|
|
|
|
),
|
|
|
|
TextSpan(text: l10n.loginAgreementPrefix),
|
|
|
|
TextSpan(
|
|
|
|
text: l10n.loginTerms,
|
|
...
|
...
|
@@ -340,7 +342,7 @@ class _AgreementText extends GetView<LoginController> { |
|
|
|
),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|