41 lines
935 B
Dart
41 lines
935 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
import 'package:together_mobile/common/constants.dart';
|
|
import 'components/signup.dart';
|
|
|
|
class SignupScreen extends StatefulWidget {
|
|
const SignupScreen({super.key});
|
|
|
|
@override
|
|
State<SignupScreen> createState() => _SignupScreenState();
|
|
}
|
|
|
|
class _SignupScreenState extends State<SignupScreen> {
|
|
String _method = 'email';
|
|
|
|
void chageSigninMethod() {
|
|
if (_method == 'email') {
|
|
_method = 'email';
|
|
} else {
|
|
_method = 'phone';
|
|
}
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
leading: IconButton(
|
|
icon: const Icon(Icons.arrow_back),
|
|
onPressed: () => context.pop(),
|
|
),
|
|
title: const Text('账号注册'),
|
|
centerTitle: true,
|
|
backgroundColor: kSecondaryColor,
|
|
),
|
|
body: const SignupBody(),
|
|
);
|
|
}
|
|
}
|