Initial Release: SAVEXSTATE Vault V1 - Cyber Orange Edition

This commit is contained in:
Zach Groth
2026-03-28 22:53:48 -05:00
commit d2863d2ce8
203 changed files with 8249 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import 'package:firebase_auth/firebase_auth.dart';
import 'login_screen.dart'; // Import your login screen
import 'home_screen.dart'; // Import your home screen
class AuthWrapper extends StatelessWidget {
const AuthWrapper({super.key});
@override
Widget build(BuildContext context) {
return StreamBuilder<User?>(
stream: FirebaseAuth.instance.authStateChanges(),
builder: (context, snapshot) {
// If snapshot has user data, they are logged in
if (snapshot.hasData) {
return const HomeScreen();
}
// Otherwise, show login
return const LoginScreen();
},
);
}
}