Add userGender to requests.dart
This commit is contained in:
parent
3ccdb31196
commit
7062e42228
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ import 'package:http/http.dart' as http;
|
|||
import 'package:sentry_flutter/sentry_flutter.dart';
|
||||
|
||||
import 'package:fluffychat/pangea/common/constants/model_keys.dart';
|
||||
import 'package:fluffychat/pangea/learning_settings/gender_enum.dart';
|
||||
import 'package:fluffychat/widgets/matrix.dart';
|
||||
|
||||
class Requests {
|
||||
|
|
@ -23,6 +24,8 @@ class Requests {
|
|||
}) async {
|
||||
body[ModelKey.cefrLevel] = MatrixState
|
||||
.pangeaController.userController.profile.userSettings.cefrLevel.string;
|
||||
body[ModelKey.userGender] = MatrixState
|
||||
.pangeaController.userController.profile.userSettings.gender.string;
|
||||
|
||||
dynamic encoded;
|
||||
encoded = jsonEncode(body);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue