This commit is contained in:
zhutao
2025-08-29 11:41:00 +08:00
parent fafb6c010a
commit ec7848ad57
2 changed files with 69 additions and 72 deletions

View File

@@ -207,10 +207,7 @@ class _LoginPageState extends State<LoginPage> {
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
body: SafeArea( body: SafeArea(
child: Stack( child: Container(
alignment: Alignment.center,
children: [
Container(
width: double.infinity, width: double.infinity,
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 0.07.sh, top: 0.07.sh,
@@ -269,11 +266,9 @@ class _LoginPageState extends State<LoginPage> {
_handAppleSignIn(); _handAppleSignIn();
}, },
), ),
], Container(
), margin: EdgeInsets.only(top: 20),
), width: double.infinity,
Positioned(
bottom: 20,
child: AgreementBox( child: AgreementBox(
checked: _agree, checked: _agree,
onChanged: (value) { onChanged: (value) {
@@ -288,6 +283,7 @@ class _LoginPageState extends State<LoginPage> {
), ),
), ),
), ),
),
); );
} }
} }

View File

@@ -17,6 +17,7 @@ class AgreementBox extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Row( return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
SizedBox( SizedBox(
width: 25, width: 25,