修复一点问题

This commit is contained in:
mmc
2026-04-20 08:54:27 +08:00
parent 06c54ef546
commit c79b191483
2 changed files with 14 additions and 49 deletions

View File

@@ -105,7 +105,12 @@ class _LoginPageState extends State<LoginPage> {
? null
: () {
if (!_isAgreed) {
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('请先阅读并同意用户协议')));
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(
content: Text('请先阅读并同意用户协议'),
duration: Duration(seconds: 1), // 这里设置显示时长:2秒
),
);
return;
}
_handleLogin();