35 lines
925 B
Dart
35 lines
925 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:go_router/go_router.dart';
|
||
|
|
||
|
import 'package:together_mobile/common/constants.dart';
|
||
|
import 'package:together_mobile/screens/common_widgets.dart'
|
||
|
show elevatedButton;
|
||
|
|
||
|
class WelcomeScreen extends StatelessWidget {
|
||
|
const WelcomeScreen({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
body: SafeArea(
|
||
|
child: Column(
|
||
|
children: [
|
||
|
const SizedBox(
|
||
|
height: kDefaultPadding,
|
||
|
),
|
||
|
Image.asset('assets/images/welcome_image.png'),
|
||
|
elevatedButton(
|
||
|
onPressed: () => context.push('/signin'),
|
||
|
text: '登录',
|
||
|
),
|
||
|
elevatedButton(
|
||
|
onPressed: () => context.push('/signup'),
|
||
|
text: '注册',
|
||
|
color: kSecondaryColor),
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|