feat: remove calendar, increase fontSize in comments, settings, blog posts and plans

This commit is contained in:
BLoC
2025-03-10 15:46:09 +03:00
parent 3dea50b4c2
commit 4cae752f8d
10 changed files with 20 additions and 19 deletions

View File

@@ -65,7 +65,7 @@ class AppRouter {
routes: [
GoRoute(
path: '/auth-screen',
name: 'authScreen',
name: 'authScreen',
builder: (context, state) => const AuthScreen(),
routes: [
GoRoute(

View File

@@ -167,7 +167,7 @@ Future<void> init() async {
sl.registerLazySingleton(
() => Dio(
BaseOptions(
baseUrl: baseUrl,
baseUrl: baseUrl,
headers: {
'accept': 'application/json',
'content-type': 'application/json',

View File

@@ -1,12 +1,11 @@
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
abstract class TokenStorage {
static Future<bool> haveTokenInStorage() async {
try {
if (await FlutterSecureStorage().read(key: 'token') == null) {
return false;
} else {
} else {
return true;
}
} catch (e) {
@@ -17,7 +16,7 @@ abstract class TokenStorage {
static Future<String?> getTokenFromStorage() async => await FlutterSecureStorage().read(key: 'token');
static saveTokenInStorage(String token) async {
await FlutterSecureStorage().write(key: 'token', value: token);
await FlutterSecureStorage().write(key: 'token', value: token);
}
static Future<void> removeTokenInStorage() async => (await FlutterSecureStorage().delete(key: 'token'));