claude refactorings, flutter best practices, platform dependent changes, general cleanup
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ import 'dart:convert';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
|
||||
import '../../mhslApi.dart';
|
||||
import 'addFeedbackParams.dart';
|
||||
import '../../mhsl_api.dart';
|
||||
import 'add_feedback_params.dart';
|
||||
|
||||
|
||||
class AddFeedback extends MhslApi<void> {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'addFeedbackParams.g.dart';
|
||||
part 'add_feedback_params.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class AddFeedbackParams {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'addFeedbackParams.dart';
|
||||
part of 'add_feedback_params.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'updateUserIndexParams.g.dart';
|
||||
part 'update_user_index_params.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class UpdateUserIndexParams {
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'updateUserIndexParams.dart';
|
||||
part of 'update_user_index_params.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
+5
-4
@@ -1,4 +1,5 @@
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:developer';
|
||||
|
||||
@@ -7,8 +8,8 @@ import 'package:http/http.dart' as http;
|
||||
import 'package:package_info_plus/package_info_plus.dart';
|
||||
|
||||
import '../../../../../model/account_data.dart';
|
||||
import '../../../mhslApi.dart';
|
||||
import 'updateUserIndexParams.dart';
|
||||
import '../../../mhsl_api.dart';
|
||||
import 'update_user_index_params.dart';
|
||||
|
||||
class UpdateUserIndex extends MhslApi<void> {
|
||||
UpdateUserIndexParams params;
|
||||
@@ -25,7 +26,7 @@ class UpdateUserIndex extends MhslApi<void> {
|
||||
}
|
||||
|
||||
static Future<void> index() async {
|
||||
UpdateUserIndex(
|
||||
unawaited(UpdateUserIndex(
|
||||
UpdateUserIndexParams(
|
||||
username: AccountData().getUsername(),
|
||||
user: AccountData().getUserSecret(),
|
||||
@@ -33,6 +34,6 @@ class UpdateUserIndex extends MhslApi<void> {
|
||||
appVersion: int.parse((await PackageInfo.fromPlatform()).buildNumber),
|
||||
deviceInfo: jsonEncode((await DeviceInfoPlugin().deviceInfo).data).toString(),
|
||||
),
|
||||
).run();
|
||||
).run());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user