180 lines
6.5 KiB
Dart
180 lines
6.5 KiB
Dart
|
|
import 'package:hub/pages/registers/visitor/component.dart';
|
|
|
|
import '/commons/widgets/flutter_flow_icon_button.dart';
|
|
import '/commons/widgets/flutter_flow_theme.dart';
|
|
import '/commons/widgets/flutter_flow_util.dart';
|
|
import '/commons/widgets/flutter_flow_widgets.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'model.dart';
|
|
export 'model.dart';
|
|
|
|
class VisitorNotFoundComponentWidget extends StatefulWidget {
|
|
const VisitorNotFoundComponentWidget({super.key});
|
|
|
|
@override
|
|
State<VisitorNotFoundComponentWidget> createState() =>
|
|
_VisitorNotFoundComponentWidgetState();
|
|
}
|
|
|
|
class _VisitorNotFoundComponentWidgetState
|
|
extends State<VisitorNotFoundComponentWidget> {
|
|
late VisitorNotFoundComponentModel _model;
|
|
|
|
@override
|
|
void setState(VoidCallback callback) {
|
|
super.setState(callback);
|
|
_model.onUpdate();
|
|
}
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_model = createModel(context, () => VisitorNotFoundComponentModel());
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
_model.maybeDispose();
|
|
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Align(
|
|
alignment: const AlignmentDirectional(0.0, 0.0),
|
|
child: Container(
|
|
width: 350.0,
|
|
height: 350.0,
|
|
decoration: BoxDecoration(
|
|
color: FlutterFlowTheme.of(context).primaryBackground,
|
|
borderRadius: const BorderRadius.only(
|
|
bottomLeft: Radius.circular(25.0),
|
|
bottomRight: Radius.circular(25.0),
|
|
topLeft: Radius.circular(25.0),
|
|
topRight: Radius.circular(25.0),
|
|
),
|
|
),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.max,
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
children: [
|
|
Align(
|
|
alignment: const AlignmentDirectional(1.0, -1.0),
|
|
child: Padding(
|
|
padding: const EdgeInsetsDirectional.fromSTEB(0.0, 5.0, 5.0, 0.0),
|
|
child: FlutterFlowIconButton(
|
|
borderRadius: 20.0,
|
|
borderWidth: 1.0,
|
|
buttonSize: 40.0,
|
|
icon: Icon(
|
|
Icons.close,
|
|
color: FlutterFlowTheme.of(context).accent1,
|
|
size: 24.0,
|
|
),
|
|
onPressed: () async {
|
|
Navigator.pop(context);
|
|
},
|
|
),
|
|
),
|
|
),
|
|
Icon(
|
|
Icons.notifications_none,
|
|
color: FlutterFlowTheme.of(context).accent1,
|
|
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: const EdgeInsetsDirectional.fromSTEB(10.0, 4.0, 10.0, 0.0),
|
|
child: Text(
|
|
FFLocalizations.of(context).getText(
|
|
'kt937sp6' /* O documento inserido não corre... */,
|
|
),
|
|
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),
|
|
),
|
|
),
|
|
),
|
|
Expanded(
|
|
child: Align(
|
|
alignment: const AlignmentDirectional(0.0, 1.0),
|
|
child: FFButtonWidget(
|
|
onPressed: () async {
|
|
Navigator.pop(context);
|
|
await showModalBottomSheet(
|
|
isScrollControlled: true,
|
|
backgroundColor: Colors.transparent,
|
|
enableDrag: false,
|
|
context: context,
|
|
builder: (context) {
|
|
return Padding(
|
|
padding: MediaQuery.viewInsetsOf(context),
|
|
child: const RegisiterVistorTemplateComponentWidget(),
|
|
);
|
|
},
|
|
).then((value) => safeSetState(() {}));
|
|
},
|
|
text: FFLocalizations.of(context).getText(
|
|
'y2x4nfcn' /* Adicionar */,
|
|
),
|
|
options: FFButtonOptions(
|
|
width: double.infinity,
|
|
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(
|
|
color: Colors.transparent,
|
|
width: 1.0,
|
|
),
|
|
borderRadius: const BorderRadius.only(
|
|
bottomLeft: Radius.circular(25.0),
|
|
bottomRight: Radius.circular(25.0),
|
|
topLeft: Radius.circular(15.0),
|
|
topRight: Radius.circular(15.0),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|