INNER CODE UNIT · Dart
MyApp
7-USH/TeVe · lib/main.dart:13
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
Widget home = Scaffold();
void switchHome() async {
SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
String? session = sharedPreferences.getString("session");
if (session == null) {
setState(() {
home = Login();
});
} else {