52 lines
1.1 KiB
Dart
52 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
///
|
|
/// 登录页
|
|
///
|
|
class Login extends StatefulWidget {
|
|
final Function? successCallback;
|
|
|
|
const Login({
|
|
Key? key,
|
|
this.successCallback,
|
|
}) : super(key: key);
|
|
|
|
@override
|
|
LoginState createState() => LoginState();
|
|
}
|
|
|
|
class LoginState extends State<Login> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
// title: Text(''),
|
|
backgroundColor: Theme.of(context).colorScheme.background,
|
|
centerTitle: false,
|
|
),
|
|
body: SafeArea(
|
|
child: Column(
|
|
children: const [
|
|
Text(
|
|
'和数以千计的同好一起,',
|
|
style: TextStyle(
|
|
fontSize: 24,
|
|
),
|
|
),
|
|
Text(
|
|
'创造,改变',
|
|
style: TextStyle(
|
|
fontSize: 28,
|
|
),
|
|
),
|
|
Text(
|
|
'广阔九州,大有可为!',
|
|
style: TextStyle(fontSize: 22),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|