|
...
|
...
|
@@ -41,124 +41,172 @@ class LoginView extends GetView<LoginController> { |
|
|
|
final rightOffset = (width - buttonWidth) / 2;
|
|
|
|
double bottom(double value) => bottomInset + value;
|
|
|
|
final l10n = context.l10n;
|
|
|
|
return Stack(
|
|
|
|
fit: StackFit.expand,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/user_onboarding/bg_login.png',
|
|
|
|
fit: BoxFit.fitWidth,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
gradient: LinearGradient(
|
|
|
|
begin: Alignment(0.50, -0.00),
|
|
|
|
end: Alignment(0.50, 1.00),
|
|
|
|
colors: [
|
|
|
|
const Color(0xFFEEE6FF),
|
|
|
|
const Color(0xFFF8F6FF)
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
// Welcome texts
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.china
|
|
|
|
? 253
|
|
|
|
: 273),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
return Obx(() {
|
|
|
|
final region = controller.environmentConfig.region.value;
|
|
|
|
return Stack(
|
|
|
|
fit: StackFit.expand,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
mainAxisSize: MainAxisSize.max,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/common/ic_double_feel_text.png',
|
|
|
|
width: 160,
|
|
|
|
height: 42,
|
|
|
|
'assets/images/user_onboarding/bg_login.png',
|
|
|
|
fit: BoxFit.fitWidth,
|
|
|
|
),
|
|
|
|
SizedBox(height: 8),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.china
|
|
|
|
? 0
|
|
|
|
: 40),
|
|
|
|
child: Text(
|
|
|
|
l10n.loginSlogan,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.50,
|
|
|
|
letterSpacing:
|
|
|
|
controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.china
|
|
|
|
? 6
|
|
|
|
: 1,
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
gradient: LinearGradient(
|
|
|
|
begin: Alignment(0.50, -0.00),
|
|
|
|
end: Alignment(0.50, 1.00),
|
|
|
|
colors: [
|
|
|
|
const Color(0xFFEEE6FF),
|
|
|
|
const Color(0xFFF8F6FF)
|
|
|
|
]),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
// Login buttons – add new methods here as Column children
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(85),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: Center(
|
|
|
|
// Welcome texts
|
|
|
|
if (!controller.environmentConfig.hideChooseRegion)
|
|
|
|
Positioned(
|
|
|
|
right: 20,
|
|
|
|
top: MediaQuery.paddingOf(context).top,
|
|
|
|
child: GestureDetector(
|
|
|
|
onTap: () => Get.bottomSheet(
|
|
|
|
const _ServiceRegionBottomSheet(),
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
barrierColor: Colors.black.withValues(alpha: 0.5),
|
|
|
|
enableDrag: true,
|
|
|
|
isScrollControlled: true,
|
|
|
|
),
|
|
|
|
child: Text(
|
|
|
|
'🌏',
|
|
|
|
textAlign: TextAlign.right,
|
|
|
|
style: TextStyle(
|
|
|
|
color: Colors.black,
|
|
|
|
fontSize: 23,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(region == AppRegion.china ? 253 : 273),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
if (controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.china) ...[
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.loginWithPhone,
|
|
|
|
onPressed: controller.onPhoneLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'phone',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
if (controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.global) ...[
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.continueWithEmail,
|
|
|
|
onPressed: controller.onEmailLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'email',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
Image.asset(
|
|
|
|
'assets/images/common/ic_double_feel_text.png',
|
|
|
|
width: 160,
|
|
|
|
height: 42,
|
|
|
|
),
|
|
|
|
SizedBox(height: 8),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: region == AppRegion.china ? 0 : 40),
|
|
|
|
child: Text(
|
|
|
|
l10n.loginSlogan,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
color: context.colors.textSecondary,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.50,
|
|
|
|
letterSpacing: region == AppRegion.china ? 6 : 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
if (controller.environmentConfig.region.value ==
|
|
|
|
AppRegion.global) ...[
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
// Login buttons – add new methods here as Column children
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(85),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
if (region == AppRegion.china) ...[
|
|
|
|
//GetPlatform.isOhos
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.loginWithPhone,
|
|
|
|
onPressed: controller.onPhoneLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'phone',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
if (region == AppRegion.global) ...[
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.continueWithEmail,
|
|
|
|
onPressed: controller.onEmailLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'email',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
if (region == AppRegion.global) ...[
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.continueWithGoogle,
|
|
|
|
onPressed: controller.onGoogleLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'google',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
icon: Image.asset(
|
|
|
|
'assets/images/common/ic_google.png',
|
|
|
|
width: 20,
|
|
|
|
height: 20,
|
|
|
|
),
|
|
|
|
buttonStyle: ElevatedButton.styleFrom(
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
foregroundColor: context.colors.textPrimary,
|
|
|
|
disabledBackgroundColor: context
|
|
|
|
.colors.textPrimary
|
|
|
|
.withValues(alpha: 0.5),
|
|
|
|
disabledForegroundColor:
|
|
|
|
context.colors.textPrimary,
|
|
|
|
elevation: 0,
|
|
|
|
shadowColor: Colors.transparent,
|
|
|
|
padding:
|
|
|
|
const EdgeInsets.symmetric(horizontal: 12),
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(24),
|
|
|
|
),
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.continueWithGoogle,
|
|
|
|
onPressed: controller.onGoogleLoginPressed,
|
|
|
|
label: l10n.loginWithApple,
|
|
|
|
onPressed: controller.onAppleLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'google',
|
|
|
|
'apple',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
icon: Image.asset(
|
|
|
|
'assets/images/common/ic_google.png',
|
|
|
|
width: 20,
|
|
|
|
height: 20,
|
|
|
|
'assets/images/common/ic_apple.png',
|
|
|
|
width: 24,
|
|
|
|
height: 24,
|
|
|
|
color: context.colors.textPrimary,
|
|
|
|
),
|
|
|
|
buttonStyle: ElevatedButton.styleFrom(
|
|
|
|
backgroundColor: Colors.white,
|
|
...
|
...
|
@@ -181,79 +229,292 @@ class LoginView extends GetView<LoginController> { |
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12)
|
|
|
|
],
|
|
|
|
_LoginMethodButton(
|
|
|
|
width: buttonWidth,
|
|
|
|
label: l10n.loginWithApple,
|
|
|
|
onPressed: controller.onAppleLoginPressed,
|
|
|
|
isLastUsed:
|
|
|
|
Get.find<LocalStorage>().lastLoginMethod ==
|
|
|
|
'apple',
|
|
|
|
lastUsedLabel: l10n.loginLastUsed,
|
|
|
|
icon: Image.asset(
|
|
|
|
'assets/images/common/ic_apple.png',
|
|
|
|
width: 24,
|
|
|
|
height: 24,
|
|
|
|
color: context.colors.textPrimary,
|
|
|
|
),
|
|
|
|
buttonStyle: ElevatedButton.styleFrom(
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
foregroundColor: context.colors.textPrimary,
|
|
|
|
disabledBackgroundColor: context.colors.textPrimary
|
|
|
|
.withValues(alpha: 0.5),
|
|
|
|
disabledForegroundColor: context.colors.textPrimary,
|
|
|
|
elevation: 0,
|
|
|
|
shadowColor: Colors.transparent,
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 12),
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.circular(24),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Terms agreement text + checkbox
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(0),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: const _AgreementText(),
|
|
|
|
),
|
|
|
|
|
|
|
|
if (controller.environmentConfig.isDebug)
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
bottom: bottom(0),
|
|
|
|
child: Center(
|
|
|
|
child: TextButton(
|
|
|
|
onPressed: controller.onDebugPressed,
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
foregroundColor: context.colors.textSecondary
|
|
|
|
.withValues(alpha: 0.55),
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.w700,
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Builder(builder: (context) {
|
|
|
|
final environmentConfig =
|
|
|
|
Get.find<AppEnvironmentConfig>();
|
|
|
|
return Text(
|
|
|
|
environmentConfig.environment.value.name);
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class _ServiceRegionBottomSheet extends StatefulWidget {
|
|
|
|
const _ServiceRegionBottomSheet();
|
|
|
|
|
|
|
|
@override
|
|
|
|
State<_ServiceRegionBottomSheet> createState() =>
|
|
|
|
_ServiceRegionBottomSheetState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _ServiceRegionBottomSheetState extends State<_ServiceRegionBottomSheet> {
|
|
|
|
static const _brandColor = Color(0xFF845EEE);
|
|
|
|
static const _backgroundColor = Color(0xFFF5F2FF);
|
|
|
|
|
|
|
|
final _controller = Get.find<LoginController>();
|
|
|
|
late AppRegion _selectedRegion;
|
|
|
|
var _isSaving = false;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
_selectedRegion = _controller.environmentConfig.region.value;
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<void> _save() async {
|
|
|
|
if (_isSaving) return;
|
|
|
|
|
|
|
|
setState(() => _isSaving = true);
|
|
|
|
await _controller.selectServiceRegion(_selectedRegion);
|
|
|
|
if (mounted) Get.back();
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final l10n = context.l10n;
|
|
|
|
|
|
|
|
final isChinaSelected = _selectedRegion == AppRegion.china;
|
|
|
|
return SizedBox(
|
|
|
|
height: 446,
|
|
|
|
child: DecoratedBox(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
color: _backgroundColor,
|
|
|
|
borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: 8,
|
|
|
|
bottom: MediaQuery.paddingOf(context).bottom,
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: GestureDetector(
|
|
|
|
behavior: HitTestBehavior.opaque,
|
|
|
|
onTap: _isSaving ? null : Get.back,
|
|
|
|
child: SizedBox(
|
|
|
|
width: 84,
|
|
|
|
height: 56,
|
|
|
|
child: Center(
|
|
|
|
child: Image.asset(
|
|
|
|
'assets/images/common/ic_close.png',
|
|
|
|
width: 16,
|
|
|
|
height: 16,
|
|
|
|
color: _brandColor,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// Terms agreement text + checkbox
|
|
|
|
Positioned(
|
|
|
|
bottom: bottom(0),
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
child: const _AgreementText(),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 6),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
_ServiceRegionOption(
|
|
|
|
title: l10n.mainlandChinaServices,
|
|
|
|
description: l10n.mainlandChinaServicesDescription,
|
|
|
|
cannotChangeLabel: l10n.serviceRegionCannotBeChanged,
|
|
|
|
isSelected: isChinaSelected,
|
|
|
|
minHeight: isChinaSelected ? 142 : 56,
|
|
|
|
onTap: _isSaving
|
|
|
|
? null
|
|
|
|
: () => setState(
|
|
|
|
() => _selectedRegion = AppRegion.china,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12),
|
|
|
|
_ServiceRegionOption(
|
|
|
|
title: l10n.internationalServices,
|
|
|
|
description: l10n.internationalServicesDescription,
|
|
|
|
cannotChangeLabel: l10n.serviceRegionCannotBeChanged,
|
|
|
|
isSelected: !isChinaSelected,
|
|
|
|
minHeight: isChinaSelected ? 56 : 182,
|
|
|
|
onTap: _isSaving
|
|
|
|
? null
|
|
|
|
: () => setState(
|
|
|
|
() => _selectedRegion = AppRegion.global,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Spacer(),
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 28),
|
|
|
|
child: SizedBox(
|
|
|
|
width: double.infinity,
|
|
|
|
height: 48,
|
|
|
|
child: ElevatedButton(
|
|
|
|
onPressed: _isSaving ? null : _save,
|
|
|
|
style: ElevatedButton.styleFrom(
|
|
|
|
backgroundColor: _brandColor,
|
|
|
|
disabledBackgroundColor: _brandColor.withValues(
|
|
|
|
alpha: 0.4,
|
|
|
|
),
|
|
|
|
foregroundColor: Colors.white,
|
|
|
|
disabledForegroundColor: Colors.white,
|
|
|
|
elevation: 0,
|
|
|
|
shape: const StadiumBorder(),
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Text(l10n.friendsSave),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (controller.environmentConfig.isDebug)
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
right: 0,
|
|
|
|
bottom: bottom(0),
|
|
|
|
child: Center(
|
|
|
|
child: TextButton(
|
|
|
|
onPressed: controller.onDebugPressed,
|
|
|
|
style: TextButton.styleFrom(
|
|
|
|
foregroundColor: context.colors.textSecondary
|
|
|
|
.withValues(alpha: 0.55),
|
|
|
|
textStyle: const TextStyle(
|
|
|
|
fontSize: 12,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
class _ServiceRegionOption extends StatelessWidget {
|
|
|
|
const _ServiceRegionOption({
|
|
|
|
required this.title,
|
|
|
|
required this.description,
|
|
|
|
required this.cannotChangeLabel,
|
|
|
|
required this.isSelected,
|
|
|
|
required this.minHeight,
|
|
|
|
required this.onTap,
|
|
|
|
});
|
|
|
|
|
|
|
|
final String title;
|
|
|
|
final String description;
|
|
|
|
final String cannotChangeLabel;
|
|
|
|
final bool isSelected;
|
|
|
|
final double minHeight;
|
|
|
|
final VoidCallback? onTap;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Semantics(
|
|
|
|
button: true,
|
|
|
|
selected: isSelected,
|
|
|
|
label: title,
|
|
|
|
child: GestureDetector(
|
|
|
|
behavior: HitTestBehavior.opaque,
|
|
|
|
onTap: onTap,
|
|
|
|
child: Container(
|
|
|
|
constraints: BoxConstraints(minHeight: minHeight),
|
|
|
|
width: double.infinity,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
borderRadius: BorderRadius.circular(16),
|
|
|
|
border: isSelected
|
|
|
|
? Border.all(
|
|
|
|
color: Color(0xFF845EEE),
|
|
|
|
)
|
|
|
|
: null,
|
|
|
|
),
|
|
|
|
child: isSelected
|
|
|
|
? Stack(
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: const EdgeInsets.fromLTRB(24, 16, 24, 16),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Color(0xFF0F0F11),
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
height: 1.25,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Builder(builder: (context) {
|
|
|
|
final environmentConfig =
|
|
|
|
Get.find<AppEnvironmentConfig>();
|
|
|
|
return Text(environmentConfig.environment.value.name);
|
|
|
|
}),
|
|
|
|
const SizedBox(height: 14),
|
|
|
|
Text(
|
|
|
|
description,
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Color(0xFF78787D),
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.43,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 12),
|
|
|
|
Text(
|
|
|
|
cannotChangeLabel,
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Color(0xFF78787D),
|
|
|
|
fontSize: 14,
|
|
|
|
fontWeight: FontWeight.w400,
|
|
|
|
height: 1.43,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const Positioned(
|
|
|
|
top: 20,
|
|
|
|
right: 20,
|
|
|
|
child: Icon(
|
|
|
|
Icons.check_circle_rounded,
|
|
|
|
color: Color(0xFF845EEE),
|
|
|
|
size: 20,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 24),
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Text(
|
|
|
|
title,
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Color(0xFF0F0F11),
|
|
|
|
fontSize: 16,
|
|
|
|
fontWeight: FontWeight.w500,
|
|
|
|
height: 1.25,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
...
|
...
|
|