From 016be1df546931cb731a5a0fdb8696db7b973532 Mon Sep 17 00:00:00 2001 From: jantunesmesias Date: Thu, 8 Aug 2024 16:46:30 -0300 Subject: [PATCH] FIX: registerVisitor and visitHistory --- lib/backend/api_requests/api_calls.dart | 6 ++---- lib/backend/api_requests/api_manager.dart | 8 ++++---- .../details_component/details_component_widget.dart | 7 ++++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/backend/api_requests/api_calls.dart b/lib/backend/api_requests/api_calls.dart index 1630cdd3..cefd8390 100644 --- a/lib/backend/api_requests/api_calls.dart +++ b/lib/backend/api_requests/api_calls.dart @@ -2550,8 +2550,7 @@ String _serializeList(List? list) { try { return json.encode(list, toEncodable: _toEncodable); } catch (_) { - if (kDebugMode) { - } + if (kDebugMode) {} return '[]'; } } @@ -2561,8 +2560,7 @@ String _serializeJson(dynamic jsonVar, [bool isList = false]) { try { return json.encode(jsonVar, toEncodable: _toEncodable); } catch (_) { - if (kDebugMode) { - } + if (kDebugMode) {} return isList ? '[]' : '{}'; } } diff --git a/lib/backend/api_requests/api_manager.dart b/lib/backend/api_requests/api_manager.dart index 53340d4f..14784b1c 100644 --- a/lib/backend/api_requests/api_manager.dart +++ b/lib/backend/api_requests/api_manager.dart @@ -2,6 +2,7 @@ import 'dart:convert'; import 'dart:core'; +import 'dart:developer'; import 'dart:io'; import 'dart:typed_data'; @@ -15,9 +16,6 @@ import '/flutter_flow/uploaded_file.dart'; import 'get_streamed_response.dart'; - - - enum ApiCallType { GET, POST, @@ -413,6 +411,8 @@ class ApiManager { ApiCallOptions? options, http.Client? client, }) async { + log('makeApiCall -> $params.toString()'); + final callOptions = options ?? ApiCallOptions( callName: callName, @@ -515,4 +515,4 @@ class ApiManager { return result; } -} \ No newline at end of file +} diff --git a/lib/components/templates_components/details_component/details_component_widget.dart b/lib/components/templates_components/details_component/details_component_widget.dart index 7ebbd254..4dc13176 100644 --- a/lib/components/templates_components/details_component/details_component_widget.dart +++ b/lib/components/templates_components/details_component/details_component_widget.dart @@ -146,6 +146,7 @@ class _VisitRequestTemplateComponentWidgetState .override( fontFamily: FlutterFlowTheme.of(context) .labelMediumFamily, + fontWeight: FontWeight.bold, color: FlutterFlowTheme.of(context).info, letterSpacing: 0.0, useGoogleFonts: GoogleFonts.asMap() @@ -292,9 +293,9 @@ class _VisitRequestTemplateComponentWidgetState ), ), ] - .divide(const SizedBox(height: 20.0)) - .addToEnd(const SizedBox(height: 20.0)) - .addToStart(const SizedBox(height: 20.0)), + .divide(const Flexible(child: SizedBox(height: 20.0))) + .addToEnd(const Flexible(child: SizedBox(height: 20.0))) + .addToStart(const Flexible(child: SizedBox(height: 20.0))), ), ); },