WIP
This commit is contained in:
parent
3a6cbe57bc
commit
1b06219bfa
|
@ -44,138 +44,144 @@ class _VisitorNotFoundComponentWidgetState
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return SingleChildScrollView(
|
||||||
width: MediaQuery.of(context).size.width,
|
child: Container(
|
||||||
height: MediaQuery.of(context).size.height,
|
width: MediaQuery.of(context).size.width,
|
||||||
decoration: BoxDecoration(
|
height: MediaQuery.of(context).size.height,
|
||||||
color: FlutterFlowTheme.of(context).primaryBackground,
|
decoration: BoxDecoration(
|
||||||
borderRadius: const BorderRadius.only(
|
color: FlutterFlowTheme.of(context).primaryBackground,
|
||||||
bottomLeft: Radius.circular(25.0),
|
borderRadius: const BorderRadius.only(
|
||||||
bottomRight: Radius.circular(25.0),
|
bottomLeft: Radius.circular(25.0),
|
||||||
topLeft: Radius.circular(25.0),
|
bottomRight: Radius.circular(25.0),
|
||||||
topRight: Radius.circular(25.0),
|
topLeft: Radius.circular(25.0),
|
||||||
|
topRight: Radius.circular(25.0),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
child: Column(
|
||||||
child: Column(
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
mainAxisAlignment: MainAxisAlignment.start,
|
children: [
|
||||||
children: [
|
Align(
|
||||||
Align(
|
alignment: const AlignmentDirectional(1.0, -1.0),
|
||||||
alignment: const AlignmentDirectional(1.0, -1.0),
|
child: Padding(
|
||||||
child: Padding(
|
padding:
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 5.0, 5.0, 0.0),
|
const EdgeInsetsDirectional.fromSTEB(0.0, 5.0, 5.0, 0.0),
|
||||||
child: FlutterFlowIconButton(
|
child: FlutterFlowIconButton(
|
||||||
borderRadius: 20.0,
|
borderRadius: 20.0,
|
||||||
borderWidth: 1.0,
|
borderWidth: 1.0,
|
||||||
buttonSize: 40.0,
|
buttonSize: 40.0,
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
Icons.close,
|
Icons.close,
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
color: FlutterFlowTheme.of(context).accent1,
|
||||||
size: 24.0,
|
size: 24.0,
|
||||||
|
),
|
||||||
|
onPressed: () async {
|
||||||
|
Navigator.pop(context);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
onPressed: () async {
|
|
||||||
Navigator.pop(context);
|
|
||||||
},
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Icon(
|
||||||
Icon(
|
Icons.notifications_none,
|
||||||
Icons.notifications_none,
|
color: FlutterFlowTheme.of(context).accent1,
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
size: 72.0,
|
||||||
size: 72.0,
|
|
||||||
),
|
|
||||||
Padding(
|
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 16.0, 0.0, 0.0),
|
|
||||||
child: Text(
|
|
||||||
FFLocalizations.of(context).getText(
|
|
||||||
'1p9mykbj' /* Usuário não encontrado */,
|
|
||||||
),
|
|
||||||
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
|
||||||
fontFamily:
|
|
||||||
FlutterFlowTheme.of(context).headlineMediumFamily,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
|
||||||
FlutterFlowTheme.of(context).headlineMediumFamily),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
Padding(
|
||||||
Padding(
|
padding:
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(20.0, 4.0, 20.0, 0.0),
|
const EdgeInsetsDirectional.fromSTEB(0.0, 16.0, 0.0, 0.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
FFLocalizations.of(context).getText(
|
FFLocalizations.of(context).getText(
|
||||||
'kt937sp6' /* O documento inserido não corre... */,
|
'1p9mykbj' /* Usuário não encontrado */,
|
||||||
|
),
|
||||||
|
style: FlutterFlowTheme.of(context).headlineMedium.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(context).headlineMediumFamily,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
|
FlutterFlowTheme.of(context).headlineMediumFamily),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
style: FlutterFlowTheme.of(context).labelMedium.override(
|
|
||||||
fontFamily: FlutterFlowTheme.of(context).labelMediumFamily,
|
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
|
||||||
fontSize: 14.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontStyle: FontStyle.italic,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
|
||||||
FlutterFlowTheme.of(context).labelMediumFamily),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
Padding(
|
||||||
Padding(
|
padding:
|
||||||
padding: const EdgeInsets.symmetric(vertical: 10),
|
const EdgeInsetsDirectional.fromSTEB(20.0, 4.0, 20.0, 0.0),
|
||||||
child: Align(
|
child: Text(
|
||||||
alignment: const AlignmentDirectional(0.0, 1.0),
|
FFLocalizations.of(context).getText(
|
||||||
child: FFButtonWidget(
|
'kt937sp6' /* O documento inserido não corre... */,
|
||||||
onPressed: () async {
|
),
|
||||||
await showModalBottomSheet(
|
style: FlutterFlowTheme.of(context).labelMedium.override(
|
||||||
isScrollControlled: true,
|
fontFamily:
|
||||||
backgroundColor: Colors.transparent,
|
FlutterFlowTheme.of(context).labelMediumFamily,
|
||||||
enableDrag: true,
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
useSafeArea: true,
|
fontSize: 14.0,
|
||||||
isDismissible: true,
|
letterSpacing: 0.0,
|
||||||
context: context,
|
fontStyle: FontStyle.italic,
|
||||||
builder: (context) {
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
return Padding(
|
FlutterFlowTheme.of(context).labelMediumFamily),
|
||||||
padding: MediaQuery.viewInsetsOf(context),
|
),
|
||||||
child: SizedBox(
|
),
|
||||||
width: double.infinity,
|
),
|
||||||
height: MediaQuery.of(context).size.height * 0.9,
|
Padding(
|
||||||
child: RegisiterVistorTemplateComponentWidget(
|
padding: const EdgeInsets.symmetric(vertical: 10),
|
||||||
source: 'VisitorNotFoundComponent',
|
child: Align(
|
||||||
doc: _model.widget?.doc,
|
alignment: const AlignmentDirectional(0.0, 1.0),
|
||||||
|
child: FFButtonWidget(
|
||||||
|
onPressed: () async {
|
||||||
|
await showModalBottomSheet(
|
||||||
|
isScrollControlled: true,
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
enableDrag: true,
|
||||||
|
useSafeArea: true,
|
||||||
|
isDismissible: true,
|
||||||
|
context: context,
|
||||||
|
builder: (context) {
|
||||||
|
return Padding(
|
||||||
|
padding: MediaQuery.viewInsetsOf(context),
|
||||||
|
child: SizedBox(
|
||||||
|
width: double.infinity,
|
||||||
|
height: MediaQuery.of(context).size.height * 0.9,
|
||||||
|
child: RegisiterVistorTemplateComponentWidget(
|
||||||
|
source: 'VisitorNotFoundComponent',
|
||||||
|
doc: _model.widget?.doc,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
).then((value) => Navigator.pop(context, value));
|
||||||
|
},
|
||||||
|
text: FFLocalizations.of(context)
|
||||||
|
.getVariableText(enText: 'Add', ptText: 'Adicionar'),
|
||||||
|
options: FFButtonOptions(
|
||||||
|
height: 30.0,
|
||||||
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
24.0, 0.0, 24.0, 0.0),
|
||||||
|
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
0.0, 0.0, 0.0, 0.0),
|
||||||
|
color: FlutterFlowTheme.of(context).primary,
|
||||||
|
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
|
||||||
|
fontFamily:
|
||||||
|
FlutterFlowTheme.of(context).titleSmallFamily,
|
||||||
|
color: Colors.white,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
||||||
|
FlutterFlowTheme.of(context).titleSmallFamily),
|
||||||
),
|
),
|
||||||
);
|
elevation: 3.0,
|
||||||
},
|
borderSide: const BorderSide(
|
||||||
).then((value) => Navigator.pop(context, value));
|
color: Colors.transparent,
|
||||||
},
|
width: 1.0,
|
||||||
text: FFLocalizations.of(context)
|
),
|
||||||
.getVariableText(enText: 'Add', ptText: 'Adicionar'),
|
borderRadius: const BorderRadius.only(
|
||||||
options: FFButtonOptions(
|
bottomLeft: Radius.circular(25.0),
|
||||||
height: 30.0,
|
bottomRight: Radius.circular(25.0),
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
topLeft: Radius.circular(25.0),
|
||||||
24.0, 0.0, 24.0, 0.0),
|
topRight: Radius.circular(25.0),
|
||||||
iconPadding:
|
),
|
||||||
const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0),
|
|
||||||
color: FlutterFlowTheme.of(context).primary,
|
|
||||||
textStyle: FlutterFlowTheme.of(context).titleSmall.override(
|
|
||||||
fontFamily:
|
|
||||||
FlutterFlowTheme.of(context).titleSmallFamily,
|
|
||||||
color: Colors.white,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap().containsKey(
|
|
||||||
FlutterFlowTheme.of(context).titleSmallFamily),
|
|
||||||
),
|
|
||||||
elevation: 3.0,
|
|
||||||
borderSide: const BorderSide(
|
|
||||||
color: Colors.transparent,
|
|
||||||
width: 1.0,
|
|
||||||
),
|
|
||||||
borderRadius: const BorderRadius.only(
|
|
||||||
bottomLeft: Radius.circular(25.0),
|
|
||||||
bottomRight: Radius.circular(25.0),
|
|
||||||
topLeft: Radius.circular(25.0),
|
|
||||||
topRight: Radius.circular(25.0),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue