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