mirrored_repositories/id_generator/lib
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';

class AuthProvider extends ChangeNotifier {
  bool _iSignedIn = false;
  bool get isSignedIn => isSignedIn;

  AuthProvider() {
    checkSignIn();
  }

  void checkSignIn() async {
    final SharedPreferences s = await SharedPreferences.getInstance();
    _iSignedIn = s.getBool("is_signedin") ?? false;
    notifyListeners();
  }
}
