|
|
@@ -348,79 +348,82 @@ class LoginPage extends BasePage<LoginController> {
|
|
|
),
|
|
|
),
|
|
|
SizedBox(height: 18.h),
|
|
|
- Row(
|
|
|
- mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
- children: [
|
|
|
- Column(
|
|
|
- children: [
|
|
|
- Material(
|
|
|
- color: Colors.white,
|
|
|
- shape: const CircleBorder(),
|
|
|
- child: InkWell(
|
|
|
- customBorder: const CircleBorder(), // 保证点击区域是圆的
|
|
|
- onTap: () {
|
|
|
- controller.clickAppleLogin();
|
|
|
- },
|
|
|
- child: SizedBox(
|
|
|
- width: 44.w,
|
|
|
- height: 44.w,
|
|
|
- child: Center(
|
|
|
- child: Assets.images.iconLoginDialogApple.image(
|
|
|
- width: 22.w,
|
|
|
- height: 22.w,
|
|
|
+ Obx(() {
|
|
|
+ return Row(
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
+ children: [
|
|
|
+ Column(
|
|
|
+ children: [
|
|
|
+ Material(
|
|
|
+ color: Colors.white,
|
|
|
+ shape: const CircleBorder(),
|
|
|
+ child: InkWell(
|
|
|
+ customBorder: const CircleBorder(), // 保证点击区域是圆的
|
|
|
+ onTap: () {
|
|
|
+ controller.clickAppleLogin();
|
|
|
+ },
|
|
|
+ child: SizedBox(
|
|
|
+ width: 44.w,
|
|
|
+ height: 44.w,
|
|
|
+ child: Center(
|
|
|
+ child: Assets.images.iconLoginDialogApple.image(
|
|
|
+ width: 22.w,
|
|
|
+ height: 22.w,
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- SizedBox(height: 6.w),
|
|
|
- Text(
|
|
|
- StringName.loginApple,
|
|
|
- textAlign: TextAlign.center,
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.black.withValues(alpha: 0.5),
|
|
|
- fontSize: 12.sp,
|
|
|
- height: 0,
|
|
|
+ SizedBox(height: 6.w),
|
|
|
+ Text(
|
|
|
+ StringName.loginApple,
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.black.withValues(alpha: 0.5),
|
|
|
+ fontSize: 12.sp,
|
|
|
+ height: 0,
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- Column(
|
|
|
- children: [
|
|
|
- Material(
|
|
|
- color: Colors.white,
|
|
|
- shape: const CircleBorder(),
|
|
|
- child: InkWell(
|
|
|
- customBorder: const CircleBorder(), // 保证点击区域是圆的
|
|
|
- onTap: () {
|
|
|
- controller.clickWxLogin();
|
|
|
- },
|
|
|
- child: SizedBox(
|
|
|
- width: 44.w,
|
|
|
- height: 44.w,
|
|
|
- child: Center(
|
|
|
- child: Assets.images.iconWechatLogoBlack.image(
|
|
|
- width: 22.w,
|
|
|
- height: 22.w,
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ controller.isInstallWechat.value ?
|
|
|
+ Column(
|
|
|
+ children: [
|
|
|
+ Material(
|
|
|
+ color: Colors.white,
|
|
|
+ shape: const CircleBorder(),
|
|
|
+ child: InkWell(
|
|
|
+ customBorder: const CircleBorder(), // 保证点击区域是圆的
|
|
|
+ onTap: () {
|
|
|
+ controller.clickWxLogin();
|
|
|
+ },
|
|
|
+ child: SizedBox(
|
|
|
+ width: 44.w,
|
|
|
+ height: 44.w,
|
|
|
+ child: Center(
|
|
|
+ child: Assets.images.iconWechatLogoBlack.image(
|
|
|
+ width: 22.w,
|
|
|
+ height: 22.w,
|
|
|
+ ),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
),
|
|
|
- ),
|
|
|
- SizedBox(height: 6.w),
|
|
|
- Text(
|
|
|
- StringName.wechat,
|
|
|
- textAlign: TextAlign.center,
|
|
|
- style: TextStyle(
|
|
|
- color: Colors.black.withValues(alpha: 0.5),
|
|
|
- fontSize: 12.sp,
|
|
|
- height: 0,
|
|
|
+ SizedBox(height: 6.w),
|
|
|
+ Text(
|
|
|
+ StringName.wechat,
|
|
|
+ textAlign: TextAlign.center,
|
|
|
+ style: TextStyle(
|
|
|
+ color: Colors.black.withValues(alpha: 0.5),
|
|
|
+ fontSize: 12.sp,
|
|
|
+ height: 0,
|
|
|
+ ),
|
|
|
),
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
- ],
|
|
|
- ),
|
|
|
+ ],
|
|
|
+ ) : SizedBox()
|
|
|
+ ],
|
|
|
+ );
|
|
|
+ }),
|
|
|
],
|
|
|
),
|
|
|
);
|