FIX: registerVisitor and visitHistory

This commit is contained in:
jantunesmesias 2024-08-08 16:46:30 -03:00
parent 1e997a6de6
commit 016be1df54
3 changed files with 10 additions and 11 deletions

View File

@ -2550,8 +2550,7 @@ String _serializeList(List? list) {
try { try {
return json.encode(list, toEncodable: _toEncodable); return json.encode(list, toEncodable: _toEncodable);
} catch (_) { } catch (_) {
if (kDebugMode) { if (kDebugMode) {}
}
return '[]'; return '[]';
} }
} }
@ -2561,8 +2560,7 @@ String _serializeJson(dynamic jsonVar, [bool isList = false]) {
try { try {
return json.encode(jsonVar, toEncodable: _toEncodable); return json.encode(jsonVar, toEncodable: _toEncodable);
} catch (_) { } catch (_) {
if (kDebugMode) { if (kDebugMode) {}
}
return isList ? '[]' : '{}'; return isList ? '[]' : '{}';
} }
} }

View File

@ -2,6 +2,7 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:core'; import 'dart:core';
import 'dart:developer';
import 'dart:io'; import 'dart:io';
import 'dart:typed_data'; import 'dart:typed_data';
@ -15,9 +16,6 @@ import '/flutter_flow/uploaded_file.dart';
import 'get_streamed_response.dart'; import 'get_streamed_response.dart';
enum ApiCallType { enum ApiCallType {
GET, GET,
POST, POST,
@ -413,6 +411,8 @@ class ApiManager {
ApiCallOptions? options, ApiCallOptions? options,
http.Client? client, http.Client? client,
}) async { }) async {
log('makeApiCall -> $params.toString()');
final callOptions = options ?? final callOptions = options ??
ApiCallOptions( ApiCallOptions(
callName: callName, callName: callName,

View File

@ -146,6 +146,7 @@ class _VisitRequestTemplateComponentWidgetState
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily, .labelMediumFamily,
fontWeight: FontWeight.bold,
color: FlutterFlowTheme.of(context).info, color: FlutterFlowTheme.of(context).info,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap()
@ -292,9 +293,9 @@ class _VisitRequestTemplateComponentWidgetState
), ),
), ),
] ]
.divide(const SizedBox(height: 20.0)) .divide(const Flexible(child: SizedBox(height: 20.0)))
.addToEnd(const SizedBox(height: 20.0)) .addToEnd(const Flexible(child: SizedBox(height: 20.0)))
.addToStart(const SizedBox(height: 20.0)), .addToStart(const Flexible(child: SizedBox(height: 20.0))),
), ),
); );
}, },