| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import 'package:flutter/material.dart';
- import 'package:flutter_auth/models/config.dart';
- import 'package:flutter_auth/pages/background.dart';
- import 'package:flutter_auth/views/responsive.dart';
- /// Description: register page
- /// Time : 08/24/2023 Thursday
- /// Author : liuyuqi.gov@msn.cn
- class RegisterPage extends StatefulWidget {
- const RegisterPage({super.key});
- @override
- State<RegisterPage> createState() => _RegisterPageState();
- }
- class _RegisterPageState extends State<RegisterPage> {
- @override
- Widget build(BuildContext context) {
- return Background(
- child: SingleChildScrollView(
- child: Responsive(
- desktop: buildRegisterDesktop(),
- mobile: buildRegisterMobile(),
- ),
- ));
- }
- Widget buildRegisterDesktop() {
- return Row(
- children: [
- Expanded(child: RegisterTop()),
- Expanded(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- SizedBox(
- width: 450,
- child: RegisterForm(),
- ),
- SizedBox(
- height: defaultPadding / 2,
- ),
- // SocalSigUp()
- ],
- ))
- ],
- );
- }
- Widget buildRegisterMobile() {
- return Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: [
- RegisterTop(),
- Row(
- children: [
- Spacer(),
- Expanded(
- child: RegisterForm(),
- flex: 8,
- ),
- Spacer()
- ],
- )
- ],
- );
- }
- }
- class RegisterTop {
- }
- class RegisterForm {}
|