Change mapping and bug fixes

This commit is contained in:
problematicconsumer
2024-02-15 19:39:35 +03:30
parent bd4c5eed7e
commit 702c59c3bc
21 changed files with 501 additions and 422 deletions

View File

@@ -15,11 +15,9 @@ DioHttpClient httpClient(HttpClientRef ref) {
);
ref.listen(
configOptionNotifierProvider,
(_, next) {
if (next case AsyncData(value: final options)) {
client.setProxyPort(options.mixedPort);
}
configOptionNotifierProvider.selectAsync((data) => data.mixedPort),
(_, next) async {
client.setProxyPort(await next);
},
fireImmediately: true,
);