showInfoScreenIfNeeded method

Future<void> showInfoScreenIfNeeded()

Implementation

Future<void> showInfoScreenIfNeeded() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  bool shouldShowInfoScreen = prefs.getBool('showInfoScreen') ?? true;

  if (shouldShowInfoScreen) {
    Get.dialog(const InfoScreen());
  }
}