mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-26 11:44:54 +00:00
Semi-implemented getting spaces feature
This commit is contained in:
@ -2,11 +2,9 @@ import 'dart:async';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
import 'package:syncrow_app/services/locator.dart';
|
||||
import 'package:syncrow_app/utils/bloc_observer.dart';
|
||||
import 'package:syncrow_app/utils/helpers/localization_helpers.dart';
|
||||
import 'package:syncrow_app/utils/resource_manager/constants.dart';
|
||||
|
||||
import 'my_app.dart';
|
||||
|
||||
@ -35,11 +33,6 @@ void main() {
|
||||
initialSetup();
|
||||
|
||||
//final SharedPreferences prefs = await SharedPreferences.getInstance();
|
||||
// var isLoggedIn = (prefs.getBool('isLoggedIn') == null) ? false : prefs.getBool('isLoggedIn');
|
||||
//
|
||||
var storage = const FlutterSecureStorage();
|
||||
bool isLoggedIn =
|
||||
await (storage.read(key: Constants.tokenAccessKey)) != null;
|
||||
|
||||
//to save the locale in the shared preferences
|
||||
await LocalizationService.saveLocale(const Locale("en", "AE"));
|
||||
|
||||
Reference in New Issue
Block a user