43 lines
1.1 KiB
Dart
43 lines
1.1 KiB
Dart
import 'package:chat/routes/user_routes.dart';
|
|
import 'package:chat/views/user/index/widgets/user_top_bar.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
class UserPage extends StatefulWidget {
|
|
const UserPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
_UserPageState createState() => _UserPageState();
|
|
}
|
|
|
|
class _UserPageState extends State<UserPage> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SafeArea(
|
|
child: Scaffold(
|
|
body: Column(
|
|
children: [
|
|
const UserTopBar(),
|
|
const SizedBox(height: 8),
|
|
ListTile(
|
|
onTap: () {
|
|
Get.toNamed(UserRoutes.share);
|
|
},
|
|
title: const Text('分享邀请'),
|
|
),
|
|
ListTile(
|
|
onTap: () {
|
|
Get.toNamed(UserRoutes.setting);
|
|
},
|
|
title: const Text('设置中心'),
|
|
),
|
|
const ListTile(
|
|
title: Text('检查更新'),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|