Commit 20d1cb78 by tanghuan

只在iOS上显示Apple账号绑定

1 parent 3729fb2c
import 'dart:io';
import 'package:appframe/bloc/setting/account_cubit.dart'; import 'package:appframe/bloc/setting/account_cubit.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_bloc/flutter_bloc.dart';
...@@ -72,13 +74,15 @@ class AccountPageV2 extends StatelessWidget { ...@@ -72,13 +74,15 @@ class AccountPageV2 extends StatelessWidget {
onTap: () => cubit.goBind(), onTap: () => cubit.goBind(),
), ),
const Divider(height: 1, thickness: 0.5, color: Color(0xFFE5E5E5)), const Divider(height: 1, thickness: 0.5, color: Color(0xFFE5E5E5)),
_buildItem( if (Platform.isIOS) ...[
label: 'Apple账号', _buildItem(
value: state.appleId.isNotEmpty ? '已绑定' : '未绑定', label: 'Apple账号',
showArrow: true, value: state.appleId.isNotEmpty ? '已绑定' : '未绑定',
onTap: state.appleId.isEmpty ? () => cubit.appleBind() : () => cubit.goApple(), showArrow: true,
), onTap: state.appleId.isEmpty ? () => cubit.appleBind() : () => cubit.goApple(),
const Divider(height: 1, thickness: 0.5, color: Color(0xFFE5E5E5)), ),
const Divider(height: 1, thickness: 0.5, color: Color(0xFFE5E5E5)),
],
], ],
), ),
), ),
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!