Commit 2b070705 by tanghuan

扫码拒绝登录后,增加刷新按钮

1 parent 2db5b4bc
......@@ -121,7 +121,7 @@ class LoginQrCubit extends Cubit<LoginQrState> {
int? errCode = response.errCode;
if (errCode != null && errCode == 0) {
_doLogin(response.authCode!);
} else if (errCode == -2) {
} else if (errCode == -4) {
// 用户主动取消
emit(state.copyWith(
status: 3,
......
......@@ -256,6 +256,31 @@ class LoginQrPageV3 extends StatelessWidget {
color: Color(0xFF333333),
),
),
SizedBox(height: 20),
InkWell(
onTap: () {
loginQrCubit.refresh();
},
borderRadius: BorderRadius.circular(25),
child: Container(
width: 200,
height: 50,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xFF7691FA),
borderRadius: BorderRadius.circular(25),
),
child: Text(
'重新登录',
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 18,
height: 1.0,
color: Color(0xFFFFFFFF),
),
),
),
),
],
);
} else if (state.status == 4) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!