sign in smoothness

This commit is contained in:
2024-08-26 16:09:15 +02:00
parent 3efa6f9df1
commit 339c6868ef
4 changed files with 28 additions and 28 deletions

View File

@@ -12,14 +12,16 @@ class AuthCheck extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FutureBuilder(
future: doesSessionExist(),
builder: (context, snapshot) {
if (snapshot.data == true) {
return const Home();
} else {
return const SignInOrRegister();
}
});
return Scaffold(
body: FutureBuilder(
future: doesSessionExist(),
builder: (context, snapshot) {
if (snapshot.data == true) {
return const Home();
} else {
return const SignInOrRegister();
}
}),
);
}
}