refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2025-03-20 22:06:22 -05:00
parent 42c25b73e7
commit 972927b2ac

View File

@ -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(