页面逻辑

This commit is contained in:
2022-10-20 16:08:27 +08:00
parent 8ad451d4d8
commit 0a81762ba1
12 changed files with 197 additions and 25 deletions

View File

@@ -0,0 +1,30 @@
import 'package:chat/services/auth_service.dart';
import 'package:flutter/material.dart';
class UserSettingPage extends StatefulWidget {
const UserSettingPage({Key? key}) : super(key: key);
@override
_UserSettingPageState createState() => _UserSettingPageState();
}
class _UserSettingPageState extends State<UserSettingPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('设置中心'),
),
body: Column(
children: [
ElevatedButton(
onPressed: () {
AuthService.to.logout();
},
child: const Text('退出登录'),
),
],
),
);
}
}