fix visitRequestWiget
This commit is contained in:
parent
0958cee5f4
commit
1a1393853a
File diff suppressed because one or more lines are too long
|
@ -271,7 +271,7 @@ class NotificationHandler {
|
||||||
debugPrint('$key: $value');
|
debugPrint('$key: $value');
|
||||||
});
|
});
|
||||||
|
|
||||||
switch (message['type']) {
|
switch (message['click_action']) {
|
||||||
case 'visit_request':
|
case 'visit_request':
|
||||||
_showVisitRequestDialog(message, context);
|
_showVisitRequestDialog(message, context);
|
||||||
break;
|
break;
|
||||||
|
@ -280,7 +280,6 @@ class NotificationHandler {
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
debugPrint('Notification type not recognized');
|
debugPrint('Notification type not recognized');
|
||||||
_showVisitRequestDialog(message, context);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,10 +291,11 @@ class NotificationHandler {
|
||||||
return Dialog(
|
return Dialog(
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
child: VisitRequestTemplateComponentWidget(
|
child: VisitRequestTemplateComponentWidget(
|
||||||
vteName: message['nomevisita'] ?? 'Unknown',
|
vteName: message['VTE_NOME'] ?? 'Unknown',
|
||||||
vteReason: message['motivo'] ?? 'Unknown',
|
vteReason: message['motivo'] ?? 'Unknown',
|
||||||
vteMsg: message['mensagem'] ?? 'Unknown',
|
vteMsg: message['mensagem'] ?? 'Unknown',
|
||||||
vteDocument: message['documento'] ?? 'Unknown',
|
vteDocument: message['documento'] ?? 'Unknown',
|
||||||
|
vteUUID: message['VTE_ID'] ?? 'Unknown',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -125,168 +125,168 @@ class _VisitRequestTemplateComponentWidgetState
|
||||||
.addToStart(const SizedBox(width: 10.0))
|
.addToStart(const SizedBox(width: 10.0))
|
||||||
.addToEnd(const SizedBox(width: 10.0)),
|
.addToEnd(const SizedBox(width: 10.0)),
|
||||||
),
|
),
|
||||||
Padding(
|
// Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
// padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
// 24.0, 0.0, 24.0, 0.0),
|
||||||
child: TextFormField(
|
// child: TextFormField(
|
||||||
controller: _model.textController1,
|
// controller: _model.textController1,
|
||||||
focusNode: _model.textFieldFocusNode1,
|
// focusNode: _model.textFieldFocusNode1,
|
||||||
autofocus: false,
|
// autofocus: false,
|
||||||
textInputAction: TextInputAction.next,
|
// textInputAction: TextInputAction.next,
|
||||||
readOnly: true,
|
// readOnly: true,
|
||||||
obscureText: false,
|
// obscureText: false,
|
||||||
decoration: InputDecoration(
|
// decoration: InputDecoration(
|
||||||
labelText: FFLocalizations.of(context).getText(
|
// labelText: FFLocalizations.of(context).getText(
|
||||||
'ivfw4j04' /* Nome */,
|
// 'ivfw4j04' /* Nome */,
|
||||||
),
|
// ),
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
// labelStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
// .labelMedium
|
||||||
.override(
|
// .override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily,
|
// FlutterFlowTheme.of(context).labelMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily),
|
// FlutterFlowTheme.of(context).labelMediumFamily),
|
||||||
),
|
// ),
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
// hintStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
// .labelMedium
|
||||||
.override(
|
// .override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily,
|
// FlutterFlowTheme.of(context).labelMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily),
|
// FlutterFlowTheme.of(context).labelMediumFamily),
|
||||||
),
|
// ),
|
||||||
enabledBorder: OutlineInputBorder(
|
// enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
// color: FlutterFlowTheme.of(context).accent1,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
focusedBorder: OutlineInputBorder(
|
// focusedBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).primary,
|
// color: FlutterFlowTheme.of(context).primary,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
errorBorder: OutlineInputBorder(
|
// errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
// color: FlutterFlowTheme.of(context).error,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
// focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
// color: FlutterFlowTheme.of(context).error,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
suffixIcon: Icon(
|
// suffixIcon: Icon(
|
||||||
Icons.person,
|
// Icons.person,
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
// color: FlutterFlowTheme.of(context).accent1,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily,
|
// FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily),
|
// FlutterFlowTheme.of(context).bodyMediumFamily),
|
||||||
),
|
// ),
|
||||||
maxLines: null,
|
// maxLines: null,
|
||||||
keyboardType: TextInputType.name,
|
// keyboardType: TextInputType.name,
|
||||||
validator:
|
// validator:
|
||||||
_model.textController1Validator.asValidator(context),
|
// _model.textController1Validator.asValidator(context),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Padding(
|
// Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
// padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
// 24.0, 0.0, 24.0, 0.0),
|
||||||
child: TextFormField(
|
// child: TextFormField(
|
||||||
controller: _model.textController2,
|
// controller: _model.textController2,
|
||||||
focusNode: _model.textFieldFocusNode2,
|
// focusNode: _model.textFieldFocusNode2,
|
||||||
autofocus: false,
|
// autofocus: false,
|
||||||
textInputAction: TextInputAction.next,
|
// textInputAction: TextInputAction.next,
|
||||||
readOnly: true,
|
// readOnly: true,
|
||||||
obscureText: false,
|
// obscureText: false,
|
||||||
decoration: InputDecoration(
|
// decoration: InputDecoration(
|
||||||
labelText: FFLocalizations.of(context).getText(
|
// labelText: FFLocalizations.of(context).getText(
|
||||||
'ndzkqehm' /* Motivo */,
|
// 'ndzkqehm' /* Motivo */,
|
||||||
),
|
// ),
|
||||||
labelStyle: FlutterFlowTheme.of(context)
|
// labelStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
// .labelMedium
|
||||||
.override(
|
// .override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily,
|
// FlutterFlowTheme.of(context).labelMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily),
|
// FlutterFlowTheme.of(context).labelMediumFamily),
|
||||||
),
|
// ),
|
||||||
hintStyle: FlutterFlowTheme.of(context)
|
// hintStyle: FlutterFlowTheme.of(context)
|
||||||
.labelMedium
|
// .labelMedium
|
||||||
.override(
|
// .override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily,
|
// FlutterFlowTheme.of(context).labelMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily),
|
// FlutterFlowTheme.of(context).labelMediumFamily),
|
||||||
),
|
// ),
|
||||||
enabledBorder: OutlineInputBorder(
|
// enabledBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
// color: FlutterFlowTheme.of(context).accent1,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
focusedBorder: OutlineInputBorder(
|
// focusedBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).primary,
|
// color: FlutterFlowTheme.of(context).primary,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
errorBorder: OutlineInputBorder(
|
// errorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
// color: FlutterFlowTheme.of(context).error,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
focusedErrorBorder: OutlineInputBorder(
|
// focusedErrorBorder: OutlineInputBorder(
|
||||||
borderSide: BorderSide(
|
// borderSide: BorderSide(
|
||||||
color: FlutterFlowTheme.of(context).error,
|
// color: FlutterFlowTheme.of(context).error,
|
||||||
width: 0.5,
|
// width: 0.5,
|
||||||
),
|
// ),
|
||||||
borderRadius: BorderRadius.circular(10.0),
|
// borderRadius: BorderRadius.circular(10.0),
|
||||||
),
|
// ),
|
||||||
suffixIcon: Icon(
|
// suffixIcon: Icon(
|
||||||
Icons.history_edu,
|
// Icons.history_edu,
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
// color: FlutterFlowTheme.of(context).accent1,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
// style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||||
fontFamily:
|
// fontFamily:
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily,
|
// FlutterFlowTheme.of(context).bodyMediumFamily,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
// color: FlutterFlowTheme.of(context).primaryText,
|
||||||
letterSpacing: 0.0,
|
// letterSpacing: 0.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
// useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
FlutterFlowTheme.of(context).bodyMediumFamily),
|
// FlutterFlowTheme.of(context).bodyMediumFamily),
|
||||||
),
|
// ),
|
||||||
maxLines: null,
|
// maxLines: null,
|
||||||
keyboardType: TextInputType.name,
|
// keyboardType: TextInputType.name,
|
||||||
validator:
|
// validator:
|
||||||
_model.textController2Validator.asValidator(context),
|
// _model.textController2Validator.asValidator(context),
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
24.0, 0.0, 24.0, 0.0),
|
24.0, 0.0, 24.0, 0.0),
|
||||||
|
|
Loading…
Reference in New Issue