|
...
|
...
|
@@ -678,22 +678,25 @@ class _AgreementText extends GetView<LoginController> { |
|
|
|
TextSpan(
|
|
|
|
style: baseStyle,
|
|
|
|
children: [
|
|
|
|
if (controller.environmentConfig.region.value == AppRegion.china)
|
|
|
|
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,
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
WidgetSpan(
|
|
|
|
alignment: PlaceholderAlignment.middle,
|
|
|
|
child: Obx(() {
|
|
|
|
if (controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.global) {
|
|
|
|
return const SizedBox.shrink();
|
|
|
|
}
|
|
|
|
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),
|
|
|
|
),
|
...
|
...
|
|