This commit is contained in:
parent
42c25b73e7
commit
972927b2ac
@ -1,16 +1,13 @@
|
|||||||
import 'dart:convert' show jsonEncode;
|
import 'dart:convert' show jsonEncode;
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:repertory/constants.dart' as constants;
|
|
||||||
import 'package:repertory/helpers.dart'
|
import 'package:repertory/helpers.dart'
|
||||||
show
|
show
|
||||||
AuthenticationFailedException,
|
|
||||||
convertAllToString,
|
convertAllToString,
|
||||||
displayAuthError,
|
displayAuthError,
|
||||||
displayErrorMessage,
|
|
||||||
getBaseUri,
|
getBaseUri,
|
||||||
|
getChanged,
|
||||||
getSettingDescription,
|
getSettingDescription,
|
||||||
getSettingValidators,
|
getSettingValidators,
|
||||||
trimNotEmptyValidator;
|
trimNotEmptyValidator;
|
||||||
@ -104,11 +101,9 @@ class _UISettingsWidgetState extends State<UISettingsWidget> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
if (!DeepCollectionEquality().equals(
|
final settings = getChanged(widget.origSettings, widget.settings);
|
||||||
widget.settings,
|
if (settings.isNotEmpty) {
|
||||||
widget.origSettings,
|
convertAllToString(settings)
|
||||||
)) {
|
|
||||||
convertAllToString(widget.settings)
|
|
||||||
.then((map) async {
|
.then((map) async {
|
||||||
try {
|
try {
|
||||||
final response = await http.put(
|
final response = await http.put(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user