From 2c1ca87b3b2eef98101b983d19166888351d7a58 Mon Sep 17 00:00:00 2001 From: jantunesmesias Date: Mon, 26 Aug 2024 16:24:25 -0300 Subject: [PATCH] WIP --- .../card_item_template_component_widget.dart | 9 +- lib/pages/home_page/home_page_widget.dart | 84 +++++++++---------- 2 files changed, 42 insertions(+), 51 deletions(-) diff --git a/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart b/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart index 349fb22b..b6a3bfd0 100644 --- a/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart +++ b/lib/components/templates_components/card_item_template_component/card_item_template_component_widget.dart @@ -215,14 +215,7 @@ class _CardItemTemplateComponentWidgetState shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(8.0), ), - child: Container( - width: double.infinity, - decoration: BoxDecoration( - color: FlutterFlowTheme.of(context).warning, - ), - padding: const EdgeInsets.all(8), - child: _buildContent(), - ), + child: _buildContent(), ), ), ); diff --git a/lib/pages/home_page/home_page_widget.dart b/lib/pages/home_page/home_page_widget.dart index c2405bcc..6c1e13e6 100644 --- a/lib/pages/home_page/home_page_widget.dart +++ b/lib/pages/home_page/home_page_widget.dart @@ -165,52 +165,50 @@ class _HomePageWidgetState extends State { decoration: const BoxDecoration( color: Color(0xFF1AAB5F), ), - child: Align( - alignment: AlignmentDirectional.center, - child: Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - Padding( - padding: const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0), - child: IconButton( - icon: const Icon( - Icons.menu_rounded, - color: Colors.white, - size: 28.0, - ), - onPressed: () async { - scaffoldKey.currentState!.openEndDrawer(); - }, + child: Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Padding( + padding: const EdgeInsetsDirectional.fromSTEB(0.0, 0.0, 0.0, 0.0), + child: IconButton( + icon: const Icon( + Icons.menu_rounded, + color: Colors.white, + size: 28.0, ), + onPressed: () async { + scaffoldKey.currentState!.openEndDrawer(); + }, ), - Row( - children: [ - ClipRRect( - borderRadius: BorderRadius.circular(8.0), - child: Image.asset( - 'assets/images/logo.png', - width: 50.0, - height: 200.0, - fit: BoxFit.none, - ), + ), + Row( + mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Image.asset( + 'assets/images/logo.png', + width: 50.0, + height: 200.0, + fit: BoxFit.none, ), - 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), - ), - ), - ], - ), - const SizedBox(), - ], - ), + ), + 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), + ), + ), + ], + ), + const SizedBox(), + ], ), ); }