INNER CODE UNIT · Dart

_MyAppState

Hash-Studios/e-learning-app · lib/main.dart:30

class _MyAppState extends State<MyApp> {
  void getLoginStatus() async {
    prefs = await SharedPreferences.getInstance();
    globals.gAuth.googleSignIn.isSignedIn().then((value) {
      prefs.setBool("isLoggedin", value);
    });
  }

  @override
  void initState() {
    getLoginStatus();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      onGenerateRoute: router.generateRoute,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…