Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2afad1cc89 | ||
|
|
94b2fe3cb7 | ||
|
|
8a75642ec9 | ||
|
|
f4b03b0304 | ||
|
|
5281b9f202 | ||
|
|
db58b54754 | ||
|
|
7de3d211bb | ||
|
|
d3e5fc99ea | ||
|
|
17cffc0576 |
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -9,3 +9,7 @@
|
|||||||
[submodule "Kreta API"]
|
[submodule "Kreta API"]
|
||||||
path = filcnaplo_kreta_api
|
path = filcnaplo_kreta_api
|
||||||
url = https://github.com/filc/kreten
|
url = https://github.com/filc/kreten
|
||||||
|
|
||||||
|
[submodule "Premium"]
|
||||||
|
path = filcnaplo_premium
|
||||||
|
url = git@github.com:filc/premium
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#### Nem hivatalos e-napló alkalmazás az eKRÉTA rendszerhez
|
#### Nem hivatalos e-napló alkalmazás az eKRÉTA rendszerhez
|
||||||
|
|
||||||
[](https://github.com/filc/naplo/releases) [](http://filcnaplo.hu/discord) [](https://codemagic.io/apps/612cc79b35b443d1b2c638ec/612cc79b35b443d1b2c638eb/latest_build)
|
[](https://github.com/filc/naplo/releases) [](http://filcnaplo.hu/discord)
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
|||||||
12
changelog.md
12
changelog.md
@@ -1,16 +1,4 @@
|
|||||||
What's new:
|
What's new:
|
||||||
|
|
||||||
- A jelenlegi hét kiválasztása esetén, egyből az aktuális napot választja ki ⏰
|
|
||||||
- A szellemjegyeknél bármilyen értéket megadhatsz 🎲
|
|
||||||
- A házifeladatok mostmár tökéletesen működnek 📚
|
|
||||||
- Mobilnetes firssítésnél figyelmeztetés ⚠️
|
|
||||||
- Hibajavítások 🐛
|
- Hibajavítások 🐛
|
||||||
- **Megérkezett a Filc Premium!** ✨
|
- **Megérkezett a Filc Premium!** ✨
|
||||||
|
|
||||||
Prémium funkciók:
|
|
||||||
|
|
||||||
- Egyedi név 👤
|
|
||||||
- Részletes jegy statisztikák 📈
|
|
||||||
- Testre szabhatóbb színek 🎨
|
|
||||||
- Választható tantárgy ikonok 📚
|
|
||||||
- Heti órarend nézet 📅
|
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ PODS:
|
|||||||
- FMDB (2.7.5):
|
- FMDB (2.7.5):
|
||||||
- FMDB/standard (= 2.7.5)
|
- FMDB/standard (= 2.7.5)
|
||||||
- FMDB/standard (2.7.5)
|
- FMDB/standard (2.7.5)
|
||||||
|
- home_widget (0.0.1):
|
||||||
|
- Flutter
|
||||||
- live_activities (0.0.1):
|
- live_activities (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
- open_file (0.0.1):
|
- open_file (0.0.1):
|
||||||
@@ -62,8 +64,12 @@ PODS:
|
|||||||
- Flutter
|
- Flutter
|
||||||
- FMDB (>= 2.7.5)
|
- FMDB (>= 2.7.5)
|
||||||
- SwiftyGif (5.4.3)
|
- SwiftyGif (5.4.3)
|
||||||
|
- uni_links (0.0.1):
|
||||||
|
- Flutter
|
||||||
- url_launcher_ios (0.0.1):
|
- url_launcher_ios (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
|
- workmanager (0.0.1):
|
||||||
|
- Flutter
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
|
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
|
||||||
@@ -71,6 +77,7 @@ DEPENDENCIES:
|
|||||||
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
- file_picker (from `.symlinks/plugins/file_picker/ios`)
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- flutter_custom_tabs (from `.symlinks/plugins/flutter_custom_tabs/ios`)
|
- flutter_custom_tabs (from `.symlinks/plugins/flutter_custom_tabs/ios`)
|
||||||
|
- home_widget (from `.symlinks/plugins/home_widget/ios`)
|
||||||
- live_activities (from `.symlinks/plugins/live_activities/ios`)
|
- live_activities (from `.symlinks/plugins/live_activities/ios`)
|
||||||
- open_file (from `.symlinks/plugins/open_file/ios`)
|
- open_file (from `.symlinks/plugins/open_file/ios`)
|
||||||
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
|
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
|
||||||
@@ -78,7 +85,9 @@ DEPENDENCIES:
|
|||||||
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
|
- quick_actions_ios (from `.symlinks/plugins/quick_actions_ios/ios`)
|
||||||
- share_plus (from `.symlinks/plugins/share_plus/ios`)
|
- share_plus (from `.symlinks/plugins/share_plus/ios`)
|
||||||
- sqflite (from `.symlinks/plugins/sqflite/ios`)
|
- sqflite (from `.symlinks/plugins/sqflite/ios`)
|
||||||
|
- uni_links (from `.symlinks/plugins/uni_links/ios`)
|
||||||
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
|
||||||
|
- workmanager (from `.symlinks/plugins/workmanager/ios`)
|
||||||
|
|
||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
trunk:
|
trunk:
|
||||||
@@ -99,6 +108,8 @@ EXTERNAL SOURCES:
|
|||||||
:path: Flutter
|
:path: Flutter
|
||||||
flutter_custom_tabs:
|
flutter_custom_tabs:
|
||||||
:path: ".symlinks/plugins/flutter_custom_tabs/ios"
|
:path: ".symlinks/plugins/flutter_custom_tabs/ios"
|
||||||
|
home_widget:
|
||||||
|
:path: ".symlinks/plugins/home_widget/ios"
|
||||||
live_activities:
|
live_activities:
|
||||||
:path: ".symlinks/plugins/live_activities/ios"
|
:path: ".symlinks/plugins/live_activities/ios"
|
||||||
open_file:
|
open_file:
|
||||||
@@ -113,8 +124,12 @@ EXTERNAL SOURCES:
|
|||||||
:path: ".symlinks/plugins/share_plus/ios"
|
:path: ".symlinks/plugins/share_plus/ios"
|
||||||
sqflite:
|
sqflite:
|
||||||
:path: ".symlinks/plugins/sqflite/ios"
|
:path: ".symlinks/plugins/sqflite/ios"
|
||||||
|
uni_links:
|
||||||
|
:path: ".symlinks/plugins/uni_links/ios"
|
||||||
url_launcher_ios:
|
url_launcher_ios:
|
||||||
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
:path: ".symlinks/plugins/url_launcher_ios/ios"
|
||||||
|
workmanager:
|
||||||
|
:path: ".symlinks/plugins/workmanager/ios"
|
||||||
|
|
||||||
CHECKOUT OPTIONS:
|
CHECKOUT OPTIONS:
|
||||||
DKImagePickerController:
|
DKImagePickerController:
|
||||||
@@ -129,6 +144,7 @@ SPEC CHECKSUMS:
|
|||||||
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
||||||
flutter_custom_tabs: 7a10a08686955cb748e5d26e0ae586d30689bf89
|
flutter_custom_tabs: 7a10a08686955cb748e5d26e0ae586d30689bf89
|
||||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
||||||
|
home_widget: 2829415127ee92e876f816cbbe44c0b6601b8a37
|
||||||
live_activities: 9ff56a06a2d43ecd68f56deeed13b18a8304789c
|
live_activities: 9ff56a06a2d43ecd68f56deeed13b18a8304789c
|
||||||
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
|
open_file: 02eb5cb6b21264bd3a696876f5afbfb7ca4f4b7d
|
||||||
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
|
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
|
||||||
@@ -139,7 +155,9 @@ SPEC CHECKSUMS:
|
|||||||
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
|
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
|
||||||
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
|
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
|
||||||
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
|
SwiftyGif: 6c3eafd0ce693cad58bb63d2b2fb9bacb8552780
|
||||||
|
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
|
||||||
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
|
url_launcher_ios: 839c58cdb4279282219f5e248c3321761ff3c4de
|
||||||
|
workmanager: 0afdcf5628bbde6924c21af7836fed07b42e30e6
|
||||||
|
|
||||||
PODFILE CHECKSUM: 862f939bb7e5390bdb8b2534eb81a9457ea9fbdc
|
PODFILE CHECKSUM: 862f939bb7e5390bdb8b2534eb81a9457ea9fbdc
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:filcnaplo/models/settings.dart';
|
||||||
import 'package:filcnaplo/models/user.dart';
|
import 'package:filcnaplo/models/user.dart';
|
||||||
import 'package:filcnaplo_kreta_api/models/student.dart';
|
import 'package:filcnaplo_kreta_api/models/student.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
@@ -18,8 +19,13 @@ class UserProvider with ChangeNotifier {
|
|||||||
String? get nickname => user?.nickname;
|
String? get nickname => user?.nickname;
|
||||||
String? get displayName => user?.displayName;
|
String? get displayName => user?.displayName;
|
||||||
|
|
||||||
|
final SettingsProvider _settings;
|
||||||
|
|
||||||
|
UserProvider({required SettingsProvider settings}) : _settings = settings;
|
||||||
|
|
||||||
void setUser(String userId) {
|
void setUser(String userId) {
|
||||||
_selectedUserId = userId;
|
_selectedUserId = userId;
|
||||||
|
_settings.update(lastAccountId: userId);
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,9 +52,7 @@ class App extends StatelessWidget {
|
|||||||
final UserProvider user;
|
final UserProvider user;
|
||||||
final DatabaseProvider database;
|
final DatabaseProvider database;
|
||||||
|
|
||||||
App({Key? key, required this.database, required this.settings, required this.user}) : super(key: key) {
|
const App({Key? key, required this.database, required this.settings, required this.user}) : super(key: key);
|
||||||
if (user.getUsers().isNotEmpty) user.setUser(user.getUsers().first.id);
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const settingsDB = DatabaseStruct("settings", {
|
|||||||
"vibration_strength": int, "ab_weeks": int, "swap_ab_weeks": int,
|
"vibration_strength": int, "ab_weeks": int, "swap_ab_weeks": int,
|
||||||
"notifications": int, "notifications_bitfield": int, "notification_poll_interval": int, // notifications
|
"notifications": int, "notifications_bitfield": int, "notification_poll_interval": int, // notifications
|
||||||
"x_filc_id": String, "graph_class_avg": int, "presentation_mode": int, "bell_delay": int, "bell_delay_enabled": int,
|
"x_filc_id": String, "graph_class_avg": int, "presentation_mode": int, "bell_delay": int, "bell_delay_enabled": int,
|
||||||
"grade_opening_fun": int, "icon_pack": String, "premium_scopes": String, "premium_token": String,
|
"grade_opening_fun": int, "icon_pack": String, "premium_scopes": String, "premium_token": String, "last_account_id": String,
|
||||||
});
|
});
|
||||||
const usersDB = DatabaseStruct("users", {
|
const usersDB = DatabaseStruct("users", {
|
||||||
"id": String, "name": String, "username": String, "password": String, "institute_code": String, "student": String, "role": int,
|
"id": String, "name": String, "username": String, "password": String, "institute_code": String, "student": String, "role": int,
|
||||||
|
|||||||
@@ -29,12 +29,20 @@ class DatabaseQuery {
|
|||||||
return settings;
|
return settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<UserProvider> getUsers() async {
|
Future<UserProvider> getUsers(SettingsProvider settings) async {
|
||||||
var userProvider = UserProvider();
|
var userProvider = UserProvider(settings: settings);
|
||||||
List<Map> usersMap = await db.query("users");
|
List<Map> usersMap = await db.query("users");
|
||||||
for (var user in usersMap) {
|
for (var user in usersMap) {
|
||||||
userProvider.addUser(User.fromMap(user));
|
userProvider.addUser(User.fromMap(user));
|
||||||
}
|
}
|
||||||
|
if (userProvider.getUsers().map((e) => e.id).contains(settings.lastAccountId)) {
|
||||||
|
userProvider.setUser(settings.lastAccountId);
|
||||||
|
} else {
|
||||||
|
if (usersMap.isNotEmpty) {
|
||||||
|
userProvider.setUser(userProvider.getUsers().first.id);
|
||||||
|
settings.update(lastAccountId: userProvider.id);
|
||||||
|
}
|
||||||
|
}
|
||||||
return userProvider;
|
return userProvider;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +1,21 @@
|
|||||||
// ignore_for_file: no_leading_underscores_for_local_identifiers
|
|
||||||
|
|
||||||
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
import 'package:filcnaplo_kreta_api/models/grade.dart';
|
||||||
|
|
||||||
class AverageHelper {
|
class AverageHelper {
|
||||||
static double averageEvals(List<Grade> grades, {bool finalAvg = false}) {
|
static double averageEvals(List<Grade> grades, {bool finalAvg = false}) {
|
||||||
List<String> ignoreInFinal = ["5,SzorgalomErtek", "4,MagatartasErtek"];
|
double average = 0.0;
|
||||||
if (finalAvg) grades.removeWhere((e) => (e.value.value == 0) || (ignoreInFinal.contains(e.gradeType?.id)));
|
|
||||||
|
List<String> ignoreInFinal = ["5,SzorgalomErtek", "4,MagatartasErtek"];
|
||||||
|
|
||||||
|
if (finalAvg) {
|
||||||
|
grades.removeWhere((e) => (e.value.value == 0) || (ignoreInFinal.contains(e.gradeType?.id)));
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var e in grades) {
|
||||||
|
average += e.value.value * ((finalAvg ? 100 : e.value.weight) / 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
average = average / grades.map((e) => (finalAvg ? 100 : e.value.weight) / 100).fold(0.0, (a, b) => a + b);
|
||||||
|
|
||||||
double average =
|
|
||||||
grades.map((e) => e.value.value * e.value.weight / 100.0).fold(0.0, (double a, double b) => a + b) / weightSum(grades, finalAvg: finalAvg);
|
|
||||||
return average.isNaN ? 0.0 : average;
|
return average.isNaN ? 0.0 : average;
|
||||||
}
|
}
|
||||||
|
|
||||||
static double weightSum(List<Grade> grades, {bool finalAvg = false}) =>
|
|
||||||
grades.map((e) => finalAvg ? 1 : e.value.weight / 100).fold(0, (a, b) => a + b);
|
|
||||||
|
|
||||||
static int howManyNeeded(int grade, List<Grade> base, double goal, {bool filcgrade = true, double avg = 0, double wsum = 0}) {
|
|
||||||
double _avg = filcgrade ? averageEvals(base) : avg;
|
|
||||||
double _wsum = filcgrade ? weightSum(base) : wsum;
|
|
||||||
if (_avg >= goal) return 0;
|
|
||||||
return (_wsum * (_avg - goal) / (goal - grade)).ceil();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class Startup {
|
|||||||
await db.close();
|
await db.close();
|
||||||
await database.init();
|
await database.init();
|
||||||
settings = await database.query.getSettings(database);
|
settings = await database.query.getSettings(database);
|
||||||
user = await database.query.getUsers();
|
user = await database.query.getUsers(settings);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
Color _customHighlightColor;
|
Color _customHighlightColor;
|
||||||
List<String> _premiumScopes;
|
List<String> _premiumScopes;
|
||||||
String _premiumAccessToken;
|
String _premiumAccessToken;
|
||||||
|
String _lastAccountId;
|
||||||
|
|
||||||
SettingsProvider({
|
SettingsProvider({
|
||||||
DatabaseProvider? database,
|
DatabaseProvider? database,
|
||||||
@@ -97,6 +98,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
required Color customHighlightColor,
|
required Color customHighlightColor,
|
||||||
required List<String> premiumScopes,
|
required List<String> premiumScopes,
|
||||||
required String premiumAccessToken,
|
required String premiumAccessToken,
|
||||||
|
required String lastAccountId,
|
||||||
}) : _database = database,
|
}) : _database = database,
|
||||||
_language = language,
|
_language = language,
|
||||||
_startPage = startPage,
|
_startPage = startPage,
|
||||||
@@ -127,7 +129,8 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
_customBackgroundColor = customBackgroundColor,
|
_customBackgroundColor = customBackgroundColor,
|
||||||
_customHighlightColor = customHighlightColor,
|
_customHighlightColor = customHighlightColor,
|
||||||
_premiumScopes = premiumScopes,
|
_premiumScopes = premiumScopes,
|
||||||
_premiumAccessToken = premiumAccessToken;
|
_premiumAccessToken = premiumAccessToken,
|
||||||
|
_lastAccountId = lastAccountId;
|
||||||
|
|
||||||
factory SettingsProvider.fromMap(Map map, {required DatabaseProvider database}) {
|
factory SettingsProvider.fromMap(Map map, {required DatabaseProvider database}) {
|
||||||
Map<String, Object?>? configMap;
|
Map<String, Object?>? configMap;
|
||||||
@@ -176,6 +179,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
customHighlightColor: Color(map["custom_highlight_color"]),
|
customHighlightColor: Color(map["custom_highlight_color"]),
|
||||||
premiumScopes: jsonDecode(map["premium_scopes"]).cast<String>(),
|
premiumScopes: jsonDecode(map["premium_scopes"]).cast<String>(),
|
||||||
premiumAccessToken: map["premium_token"],
|
premiumAccessToken: map["premium_token"],
|
||||||
|
lastAccountId: map["last_account_id"],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -214,6 +218,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
"custom_highlight_color": _customHighlightColor.value,
|
"custom_highlight_color": _customHighlightColor.value,
|
||||||
"premium_scopes": jsonEncode(_premiumScopes),
|
"premium_scopes": jsonEncode(_premiumScopes),
|
||||||
"premium_token": _premiumAccessToken,
|
"premium_token": _premiumAccessToken,
|
||||||
|
"last_account_id": _lastAccountId,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,6 +261,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
customHighlightColor: const Color(0xff222222),
|
customHighlightColor: const Color(0xff222222),
|
||||||
premiumScopes: [],
|
premiumScopes: [],
|
||||||
premiumAccessToken: "",
|
premiumAccessToken: "",
|
||||||
|
lastAccountId: "",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,6 +296,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
Color? get customHighlightColor => _customHighlightColor;
|
Color? get customHighlightColor => _customHighlightColor;
|
||||||
List<String> get premiumScopes => _premiumScopes;
|
List<String> get premiumScopes => _premiumScopes;
|
||||||
String get premiumAccessToken => _premiumAccessToken;
|
String get premiumAccessToken => _premiumAccessToken;
|
||||||
|
String get lastAccountId => _lastAccountId;
|
||||||
|
|
||||||
Future<void> update({
|
Future<void> update({
|
||||||
bool store = true,
|
bool store = true,
|
||||||
@@ -323,6 +330,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
Color? customHighlightColor,
|
Color? customHighlightColor,
|
||||||
List<String>? premiumScopes,
|
List<String>? premiumScopes,
|
||||||
String? premiumAccessToken,
|
String? premiumAccessToken,
|
||||||
|
String? lastAccountId,
|
||||||
}) async {
|
}) async {
|
||||||
if (language != null && language != _language) _language = language;
|
if (language != null && language != _language) _language = language;
|
||||||
if (startPage != null && startPage != _startPage) _startPage = startPage;
|
if (startPage != null && startPage != _startPage) _startPage = startPage;
|
||||||
@@ -356,6 +364,7 @@ class SettingsProvider extends ChangeNotifier {
|
|||||||
if (customHighlightColor != null && customHighlightColor != _customHighlightColor) _customHighlightColor = customHighlightColor;
|
if (customHighlightColor != null && customHighlightColor != _customHighlightColor) _customHighlightColor = customHighlightColor;
|
||||||
if (premiumScopes != null && premiumScopes != _premiumScopes) _premiumScopes = premiumScopes;
|
if (premiumScopes != null && premiumScopes != _premiumScopes) _premiumScopes = premiumScopes;
|
||||||
if (premiumAccessToken != null && premiumAccessToken != _premiumAccessToken) _premiumAccessToken = premiumAccessToken;
|
if (premiumAccessToken != null && premiumAccessToken != _premiumAccessToken) _premiumAccessToken = premiumAccessToken;
|
||||||
|
if (lastAccountId != null && lastAccountId != _lastAccountId) _lastAccountId = lastAccountId;
|
||||||
|
|
||||||
if (store) await _database?.store.storeSettings(this);
|
if (store) await _database?.store.storeSettings(this);
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ extension StringFormatUtils on String {
|
|||||||
htmlString = htmlString.replaceAll(RegExp(r'<p ?>'), "");
|
htmlString = htmlString.replaceAll(RegExp(r'<p ?>'), "");
|
||||||
htmlString = htmlString.replaceAll(RegExp(r'</p ?>'), "\n");
|
htmlString = htmlString.replaceAll(RegExp(r'</p ?>'), "\n");
|
||||||
var document = parse(htmlString);
|
var document = parse(htmlString);
|
||||||
return document.body?.text.trim() ?? "";
|
return document.body?.text.trim() ?? htmlString;
|
||||||
}
|
}
|
||||||
|
|
||||||
String limit(int max) {
|
String limit(int max) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ description: "Nem hivatalos e-napló alkalmazás az e-Kréta rendszerhez"
|
|||||||
homepage: https://filcnaplo.hu
|
homepage: https://filcnaplo.hu
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
|
|
||||||
version: 3.4.0+171
|
version: 3.4.2+173
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.16.0-80.1.beta <3.0.0"
|
sdk: ">=2.16.0-80.1.beta <3.0.0"
|
||||||
|
|||||||
Submodule filcnaplo_mobile_ui updated: 2b4ed2a4d1...19d78b7caa
Submodule filcnaplo_premium updated: 40999bf998...3f23e52748
Reference in New Issue
Block a user