fixed warnings
This commit is contained in:
@@ -45,6 +45,7 @@ class AbsenceProvider with ChangeNotifier {
|
||||
(await _database.query.getSettings(_database)).renamedSubjectsEnabled
|
||||
? await _database.userQuery.renamedSubjects(
|
||||
userId:
|
||||
// ignore: use_build_context_synchronously
|
||||
Provider.of<UserProvider>(_context, listen: false).user!.id)
|
||||
: {};
|
||||
Map<String, String> renamedTeachers =
|
||||
|
||||
@@ -43,6 +43,7 @@ class ExamProvider with ChangeNotifier {
|
||||
(await database.query.getSettings(database)).renamedSubjectsEnabled
|
||||
? await database.userQuery.renamedSubjects(
|
||||
userId:
|
||||
// ignore: use_build_context_synchronously
|
||||
Provider.of<UserProvider>(_context, listen: false).user!.id)
|
||||
: {};
|
||||
Map<String, String> renamedTeachers =
|
||||
|
||||
@@ -6,6 +6,7 @@ import 'package:filcnaplo/models/user.dart';
|
||||
import 'package:filcnaplo_kreta_api/client/api.dart';
|
||||
import 'package:filcnaplo_kreta_api/client/client.dart';
|
||||
import 'package:filcnaplo_kreta_api/models/message.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
@@ -149,9 +150,11 @@ class MessageProvider with ChangeNotifier {
|
||||
SendRecipient.fromJson(e, addressable[AddresseeType.directorate]!)));
|
||||
}
|
||||
|
||||
print(addressable);
|
||||
print(recipients);
|
||||
print(recipients.first.json);
|
||||
if (kDebugMode) {
|
||||
print(addressable);
|
||||
print(recipients);
|
||||
print(recipients.first.json);
|
||||
}
|
||||
}
|
||||
|
||||
// send message
|
||||
|
||||
Reference in New Issue
Block a user