feat: add home and profile screens

This commit is contained in:
soragui
2026-01-19 14:56:39 +08:00
parent 0ade16350a
commit 12ff1d61c2
4 changed files with 116 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:phone_login/auth/auth_state.dart';
class ProfileScreen extends StatelessWidget {
const ProfileScreen({super.key});
@override
Widget build(BuildContext context) {
final authState = Provider.of<AuthState>(context, listen: false);
return Scaffold(
appBar: AppBar(title: const Text('Profile')),
body: Center(
child: ElevatedButton(
onPressed: () {
authState.toggleLogin();
},
child: const Text('Logout'),
),
),
);
}
}