This commit is contained in:
jantunesmesias 2024-08-27 13:29:27 -03:00
parent 45cbcb9b39
commit d0fc445714
4 changed files with 60 additions and 111 deletions

View File

@ -266,7 +266,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
}, },
title: FFLocalizations.of(context).getVariableText( title: FFLocalizations.of(context).getVariableText(
enText: 'Message\nHistory', enText: 'Message\nHistory',
ptText: 'Consultar\nMessages', ptText: 'Consultar\nMensagens',
), ),
), ),
MenuButtonWidget( MenuButtonWidget(
@ -516,7 +516,7 @@ class _MenuComponentWidgetState extends State<MenuComponentWidget> {
}, },
title: FFLocalizations.of(context).getVariableText( title: FFLocalizations.of(context).getVariableText(
enText: 'Message History', enText: 'Message History',
ptText: 'Consultar Messages', ptText: 'Consultar Mensagens',
), ),
), ),
MenuCardItem( MenuCardItem(

View File

@ -119,7 +119,7 @@ class _CardItemTemplateComponentWidgetState
return Container( return Container(
padding: const EdgeInsets.all(5), padding: const EdgeInsets.all(5),
width: MediaQuery.of(context).size.width * 0.2, width: MediaQuery.of(context).size.width * 0.25,
decoration: BoxDecoration( decoration: BoxDecoration(
color: color, color: color,
borderRadius: BorderRadius.circular(5), borderRadius: BorderRadius.circular(5),

View File

@ -64,7 +64,7 @@ class _DeliveryScheduleState extends State<DeliverySchedule> {
style: FlutterFlowTheme.of(context).headlineMedium.override( style: FlutterFlowTheme.of(context).headlineMedium.override(
fontFamily: 'Nunito', fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
fontSize: 16.0, fontSize: 15.0,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'), useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),

View File

@ -137,122 +137,71 @@ class _HomePageWidgetState extends State<HomePageWidget> {
); );
} }
Row createHeader(BuildContext context) { Widget createHeader(BuildContext context) {
return Row( return Container(
mainAxisSize: MainAxisSize.max, width: MediaQuery.of(context).size.width,
children: [ height: MediaQuery.of(context).size.height * 0.1,
Expanded( decoration: const BoxDecoration(
child: Container( color: Color(0xFF1AAB5F),
width: MediaQuery.of(context).size.width, ),
height: MediaQuery.of(context).size.height * 0.1, child: Row(
decoration: const BoxDecoration( mainAxisSize: MainAxisSize.max,
color: Color(0xFF1AAB5F), mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Padding(
padding: const EdgeInsetsDirectional.fromSTEB(10.0, 0.0, 0.0, 0.0),
child: FlutterFlowIconButton(
borderRadius: 20.0,
borderWidth: 1.0,
buttonSize: 40.0,
fillColor: FlutterFlowTheme.of(context).primary,
icon: const Icon(
Icons.menu_rounded,
color: Colors.white,
size: 28.0,
),
onPressed: () async {
scaffoldKey.currentState!.openDrawer();
},
), ),
),
Expanded(
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Align( Padding(
alignment: const AlignmentDirectional(0.0, 1.0), padding: const EdgeInsetsDirectional.fromSTEB(
child: Container( 60.0, 15.0, 0.0, 0.0),
height: 50.0, child: ClipRRect(
decoration: const BoxDecoration(), borderRadius: BorderRadius.circular(8.0),
child: Align( child: Image.asset(
alignment: const AlignmentDirectional(0.0, 0.0), 'assets/images/logo.png',
child: Row( width: 50.0,
mainAxisSize: MainAxisSize.max, height: 200.0,
children: [ fit: BoxFit.none,
Align(
alignment: const AlignmentDirectional(-1.0, 0.0),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
10.0, 0.0, 0.0, 0.0),
child: FlutterFlowIconButton(
borderRadius: 20.0,
borderWidth: 1.0,
buttonSize: 40.0,
fillColor: FlutterFlowTheme.of(context).primary,
icon: const Icon(
Icons.menu_rounded,
color: Colors.white,
size: 28.0,
),
onPressed: () async {
scaffoldKey.currentState!.openDrawer();
},
),
),
),
Align(
alignment: const AlignmentDirectional(-1.0, 0.0),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
60.0, 15.0, 0.0, 0.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(8.0),
child: Image.asset(
'assets/images/logo.png',
width: 50.0,
height: 200.0,
fit: BoxFit.none,
),
),
),
),
Align(
alignment: const AlignmentDirectional(0.0, 0.0),
child: Padding(
padding: const EdgeInsetsDirectional.fromSTEB(
0.0, 15.0, 0.0, 0.0),
child: Text(
'FRE ACCESS',
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context).info,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.bodyMediumFamily),
),
),
),
),
],
),
), ),
), ),
), ),
// Align( Padding(
// alignment: const AlignmentDirectional(0.0, 1.0), padding:
// child: Container( const EdgeInsetsDirectional.fromSTEB(0.0, 15.0, 0.0, 0.0),
// width: 100.0, child: Text(
// height: 50.0, 'FRE ACCESS',
// decoration: const BoxDecoration(), style: FlutterFlowTheme.of(context).bodyMedium.override(
// child: Align( fontFamily:
// alignment: const AlignmentDirectional(1.0, 1.0), FlutterFlowTheme.of(context).bodyMediumFamily,
// child: FlutterFlowIconButton( color: FlutterFlowTheme.of(context).info,
// borderRadius: 20.0, letterSpacing: 0.0,
// borderWidth: 1.0, useGoogleFonts: GoogleFonts.asMap().containsKey(
// buttonSize: 40.0, FlutterFlowTheme.of(context).bodyMediumFamily),
// icon: Icon( ),
// Icons.notifications_sharp, ),
// color: FlutterFlowTheme.of(context).info, ),
// size: 24.0,
// ),
// onPressed: () {},
// ),
// ),
// ),
// ),
], ],
), ),
), ),
), ],
], ),
); );
} }