Fix: Adicionado um center para manter a coluna centralizada
This commit is contained in:
parent
74408e55cd
commit
f87641e5f4
|
@ -26,84 +26,139 @@ class _ReceptionPageWidgetState extends State<ReceptionPageWidget> {
|
||||||
body: Consumer<ReceptionPageModel>(
|
body: Consumer<ReceptionPageModel>(
|
||||||
builder: (context, ReceptionPageModel model, child) {
|
builder: (context, ReceptionPageModel model, child) {
|
||||||
return SafeArea(
|
return SafeArea(
|
||||||
child: SingleChildScrollView(
|
child: Center(
|
||||||
child: Column(
|
child: SingleChildScrollView(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
mainAxisSize: MainAxisSize.max,
|
||||||
Padding(
|
children: [
|
||||||
padding: const EdgeInsets.fromLTRB(50, 0, 50, 15.0),
|
Padding(
|
||||||
child: Text(
|
padding: const EdgeInsets.fromLTRB(45, 0, 45, 15.0),
|
||||||
FFLocalizations.of(context).getVariableText(
|
child: Text(
|
||||||
ptText:
|
FFLocalizations.of(context).getVariableText(
|
||||||
'Falta pouco para você\nutilizar o FRE Access Hub...',
|
ptText:
|
||||||
enText:
|
'Falta pouco para você utilizar o FRE Access Hub...',
|
||||||
'You are close to using the FRE Access Hub...'),
|
enText:
|
||||||
textAlign: TextAlign.center,
|
'You are close to using the FRE Access Hub...'),
|
||||||
style:
|
textAlign: TextAlign.center,
|
||||||
FlutterFlowTheme.of(context).displayLarge.override(
|
style: FlutterFlowTheme.of(context)
|
||||||
fontFamily: 'Plus Jakarta Sans',
|
.displayLarge
|
||||||
color: FlutterFlowTheme.of(context).accent1,
|
.override(
|
||||||
fontSize: 20.0,
|
fontFamily: 'Plus Jakarta Sans',
|
||||||
letterSpacing: 0.0,
|
color: FlutterFlowTheme.of(context).accent1,
|
||||||
fontWeight: FontWeight.w700,
|
fontSize: 20.0,
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
letterSpacing: 0.0,
|
||||||
.containsKey('Plus Jakarta Sans'),
|
fontWeight: FontWeight.w700,
|
||||||
),
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
|
.containsKey('Plus Jakarta Sans'),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
const AtomImageSvgTheme(
|
||||||
const AtomImageSvgTheme(
|
filename: 'reception', width: 180, height: 180),
|
||||||
filename: 'reception', width: 180, height: 180),
|
Padding(
|
||||||
Padding(
|
padding: const EdgeInsets.fromLTRB(70, 30, 70.0, 60),
|
||||||
padding: const EdgeInsets.fromLTRB(70, 30, 70.0, 60),
|
child: Text(
|
||||||
child: Text(
|
FFLocalizations.of(context).getVariableText(
|
||||||
FFLocalizations.of(context).getVariableText(
|
ptText:
|
||||||
ptText:
|
'Envie seu identificador para seu condomínio para vincularem sua conta aos nossos sistemas.',
|
||||||
'Envie seu identificador para seu condomínio para vincularem sua conta aos nossos sistemas.',
|
enText:
|
||||||
enText:
|
'Send your identifier to your condominium to link your account to our systems.'),
|
||||||
'Send your identifier to your condominium to link your account to our systems.'),
|
textAlign: TextAlign.center,
|
||||||
textAlign: TextAlign.center,
|
style: FlutterFlowTheme.of(context)
|
||||||
style: FlutterFlowTheme.of(context)
|
.displaySmall
|
||||||
.displaySmall
|
.override(
|
||||||
.override(
|
fontFamily: 'Nunito Sans',
|
||||||
fontFamily: 'Nunito Sans',
|
color: FlutterFlowTheme.of(context).primaryText,
|
||||||
color: FlutterFlowTheme.of(context).primaryText,
|
fontSize: 14.0,
|
||||||
fontSize: 14.0,
|
letterSpacing: 0.0,
|
||||||
letterSpacing: 0.0,
|
fontWeight: FontWeight.w600,
|
||||||
fontWeight: FontWeight.w600,
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
.containsKey('Plus Jakarta Sans'),
|
||||||
.containsKey('Plus Jakarta Sans'),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
Column(
|
||||||
Column(
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisSize: MainAxisSize.max,
|
children: [
|
||||||
children: [
|
Padding(
|
||||||
Padding(
|
padding: const EdgeInsets.fromLTRB(60, 0, 60, 10),
|
||||||
padding: const EdgeInsets.fromLTRB(60, 0, 60, 10),
|
child: Tooltip(
|
||||||
child: Tooltip(
|
message: FFLocalizations.of(context).getVariableText(
|
||||||
message: FFLocalizations.of(context).getVariableText(
|
ptText:
|
||||||
ptText:
|
'Seu identificador é utilizado para efetuar\no vinculo do seu APP com o condominio.',
|
||||||
'Seu identificador é utilizado para efetuar\no vinculo do seu APP com o condominio.',
|
|
||||||
enText: 'My Identifier'),
|
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
|
||||||
.labelSmall
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Nunito Sans',
|
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.secondaryText,
|
|
||||||
fontSize: 10.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
|
||||||
.containsKey('Plus Jakarta Sans'),
|
|
||||||
),
|
|
||||||
child: FFButtonWidget(
|
|
||||||
onPressed: () => model.getIdenfifier(context),
|
|
||||||
text: FFLocalizations.of(context).getVariableText(
|
|
||||||
ptText: 'Meu Identificador',
|
|
||||||
enText: 'My Identifier'),
|
enText: 'My Identifier'),
|
||||||
|
textStyle: FlutterFlowTheme.of(context)
|
||||||
|
.labelSmall
|
||||||
|
.override(
|
||||||
|
fontFamily: 'Nunito Sans',
|
||||||
|
color: FlutterFlowTheme.of(context)
|
||||||
|
.secondaryText,
|
||||||
|
fontSize: 10.0,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
|
.containsKey('Plus Jakarta Sans'),
|
||||||
|
),
|
||||||
|
child: FFButtonWidget(
|
||||||
|
onPressed: () => model.getIdenfifier(context),
|
||||||
|
text: FFLocalizations.of(context)
|
||||||
|
.getVariableText(
|
||||||
|
ptText: 'Meu Identificador',
|
||||||
|
enText: 'My Identifier'),
|
||||||
|
options: FFButtonOptions(
|
||||||
|
width: double.infinity,
|
||||||
|
height: 44.0,
|
||||||
|
padding: const EdgeInsetsDirectional.fromSTEB(
|
||||||
|
0.0, 0.0, 0.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: 'Nunito Sans',
|
||||||
|
color: FlutterFlowTheme.of(context)
|
||||||
|
.primaryBackground,
|
||||||
|
fontSize: 14.0,
|
||||||
|
letterSpacing: 0.0,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
useGoogleFonts: GoogleFonts.asMap()
|
||||||
|
.containsKey('Plus Jakarta Sans'),
|
||||||
|
),
|
||||||
|
elevation: 3.0,
|
||||||
|
borderSide: const BorderSide(
|
||||||
|
color: Colors.transparent,
|
||||||
|
width: 1.0,
|
||||||
|
),
|
||||||
|
borderRadius: BorderRadius.circular(12.0),
|
||||||
|
),
|
||||||
|
showLoadingIndicator: false,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Padding(
|
||||||
|
padding: const EdgeInsets.fromLTRB(60, 0, 60, 0),
|
||||||
|
child: FFButtonWidget(
|
||||||
|
onPressed: () async {
|
||||||
|
AppState().deleteAll();
|
||||||
|
setState(() {});
|
||||||
|
|
||||||
|
context.goNamed(
|
||||||
|
'welcomePage',
|
||||||
|
extra: <String, dynamic>{
|
||||||
|
kTransitionInfoKey: const TransitionInfo(
|
||||||
|
hasTransition: true,
|
||||||
|
transitionType: PageTransitionType.scale,
|
||||||
|
alignment: Alignment.bottomCenter,
|
||||||
|
),
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
text: FFLocalizations.of(context).getVariableText(
|
||||||
|
ptText: 'Sair da Conta', enText: 'Logout'),
|
||||||
options: FFButtonOptions(
|
options: FFButtonOptions(
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
height: 44.0,
|
height: 44.0,
|
||||||
|
@ -112,7 +167,8 @@ class _ReceptionPageWidgetState extends State<ReceptionPageWidget> {
|
||||||
iconPadding:
|
iconPadding:
|
||||||
const EdgeInsetsDirectional.fromSTEB(
|
const EdgeInsetsDirectional.fromSTEB(
|
||||||
0.0, 0.0, 0.0, 0.0),
|
0.0, 0.0, 0.0, 0.0),
|
||||||
color: FlutterFlowTheme.of(context).primary,
|
color:
|
||||||
|
FlutterFlowTheme.of(context).customColor1,
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
textStyle: FlutterFlowTheme.of(context)
|
||||||
.titleSmall
|
.titleSmall
|
||||||
.override(
|
.override(
|
||||||
|
@ -135,60 +191,10 @@ class _ReceptionPageWidgetState extends State<ReceptionPageWidget> {
|
||||||
showLoadingIndicator: false,
|
showLoadingIndicator: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
Padding(
|
),
|
||||||
padding: const EdgeInsets.fromLTRB(60, 0, 60, 0),
|
],
|
||||||
child: FFButtonWidget(
|
),
|
||||||
onPressed: () async {
|
|
||||||
AppState().deleteAll();
|
|
||||||
setState(() {});
|
|
||||||
|
|
||||||
context.goNamed(
|
|
||||||
'welcomePage',
|
|
||||||
extra: <String, dynamic>{
|
|
||||||
kTransitionInfoKey: const TransitionInfo(
|
|
||||||
hasTransition: true,
|
|
||||||
transitionType: PageTransitionType.scale,
|
|
||||||
alignment: Alignment.bottomCenter,
|
|
||||||
),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
text: FFLocalizations.of(context).getVariableText(
|
|
||||||
ptText: 'Sair da Conta', enText: 'Logout'),
|
|
||||||
options: FFButtonOptions(
|
|
||||||
width: double.infinity,
|
|
||||||
height: 44.0,
|
|
||||||
padding: const EdgeInsetsDirectional.fromSTEB(
|
|
||||||
0.0, 0.0, 0.0, 0.0),
|
|
||||||
iconPadding: const EdgeInsetsDirectional.fromSTEB(
|
|
||||||
0.0, 0.0, 0.0, 0.0),
|
|
||||||
color: FlutterFlowTheme.of(context).customColor1,
|
|
||||||
textStyle: FlutterFlowTheme.of(context)
|
|
||||||
.titleSmall
|
|
||||||
.override(
|
|
||||||
fontFamily: 'Nunito Sans',
|
|
||||||
color: FlutterFlowTheme.of(context)
|
|
||||||
.primaryBackground,
|
|
||||||
fontSize: 14.0,
|
|
||||||
letterSpacing: 0.0,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
useGoogleFonts: GoogleFonts.asMap()
|
|
||||||
.containsKey('Plus Jakarta Sans'),
|
|
||||||
),
|
|
||||||
elevation: 3.0,
|
|
||||||
borderSide: const BorderSide(
|
|
||||||
color: Colors.transparent,
|
|
||||||
width: 1.0,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(12.0),
|
|
||||||
),
|
|
||||||
showLoadingIndicator: false,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue