diff --git a/lib/backend/notifications/notification_service.dart b/lib/backend/notifications/notification_service.dart index f99e8f99..42fb5320 100644 --- a/lib/backend/notifications/notification_service.dart +++ b/lib/backend/notifications/notification_service.dart @@ -307,28 +307,20 @@ class NotificationService { break; default: - log('default'); break; } - log("onActionReceivedMethod"); // showAlertDialog(AppState().context!, 'Test', 'Test', () async {}); } static Future onNotificationCreatedMethod( - ReceivedNotification receivedNotification) async { - log('onNotificationCreatedMethod'); - } + ReceivedNotification receivedNotification) async {} static Future onNotificationDisplayedMethod( - ReceivedNotification receivedNotification) async { - log('onNotificationDisplayedMethod'); - } + ReceivedNotification receivedNotification) async {} static Future onDismissActionReceivedMethod( - ReceivedAction receivedAction) async { - log('onDismissActionReceivedMethod'); - } + ReceivedAction receivedAction) async {} static Future show({ required final String title, diff --git a/lib/components/atomic_components/menu_button_item/menu_button_item_widget.dart b/lib/components/atomic_components/menu_button_item/menu_button_item_widget.dart index 8ba3f74f..0b551ee8 100644 --- a/lib/components/atomic_components/menu_button_item/menu_button_item_widget.dart +++ b/lib/components/atomic_components/menu_button_item/menu_button_item_widget.dart @@ -106,6 +106,8 @@ class _MenuButtonWidgetState extends State { child: Text( widget.title ?? '', overflow: TextOverflow.ellipsis, + maxLines: 2, // Add this line + softWrap: false, // Add this line style: FlutterFlowTheme.of(context).titleLarge.override( fontFamily: 'Nunito', color: FlutterFlowTheme.of(context).primaryText, diff --git a/lib/components/organism_components/menu_component/menu_component_model.dart b/lib/components/organism_components/menu_component/menu_component_model.dart index 1dd63013..9b95a8e8 100644 --- a/lib/components/organism_components/menu_component/menu_component_model.dart +++ b/lib/components/organism_components/menu_component/menu_component_model.dart @@ -1,5 +1,3 @@ -import 'dart:developer'; - import 'package:flutter/material.dart'; import 'package:hub/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_model.dart'; import 'package:hub/flutter_flow/nav/nav.dart'; @@ -44,7 +42,6 @@ class MenuComponentModel extends FlutterFlowModel { Future scheduleVisitOptAction(BuildContext context) async { final isWpp = AppState().whatsapp; final isProvisional = AppState().provisional; - log("isWpp ${isWpp ? 1 : 0}"); final routesListStr = [ 'scheduleCompleteVisitPage', diff --git a/lib/pages/home_page/home_page_widget.dart b/lib/pages/home_page/home_page_widget.dart index 15880855..83ae2bde 100644 --- a/lib/pages/home_page/home_page_widget.dart +++ b/lib/pages/home_page/home_page_widget.dart @@ -364,56 +364,58 @@ class _HomePageWidgetState extends State { width: double.infinity, decoration: const BoxDecoration(), child: Row( - mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.start, - children: [ - Container( - width: 50.0, - height: 50.0, - clipBehavior: Clip.antiAlias, - decoration: const BoxDecoration( - shape: BoxShape.circle, - ), - child: CachedNetworkImage( - imageUrl: valueOrDefault( - 'https://freaccess.com.br/freaccess/Images/Clients/${AppState().cliUUID}.png', - 'assets/images/error_image.svg'), - width: 80.0, - height: 80.0, - fit: BoxFit.cover, - alignment: const Alignment(0.0, 0.0), - placeholder: (context, url) => - Image.asset( - 'assets/images/error_image.svg'), - errorListener: (_) => Image.asset( - 'assets/images/error_image.svg'), - errorWidget: (_, __, ___) => Image.asset( - 'assets/images/error_image.svg'), - ), - ), - Container( - width: 150.0, - child: Text( - valueOrDefault( - convertToUppercase(AppState().local), - 'NOME DO LOCAL', + mainAxisSize: MainAxisSize.max, + mainAxisAlignment: MainAxisAlignment.start, + children: [ + Container( + width: 50.0, + height: 50.0, + clipBehavior: Clip.antiAlias, + decoration: const BoxDecoration( + shape: BoxShape.circle, + ), + child: CachedNetworkImage( + imageUrl: valueOrDefault( + 'https://freaccess.com.br/freaccess/Images/Clients/${AppState().cliUUID}.png', + 'assets/images/error_image.svg'), + width: 80.0, + height: 80.0, + fit: BoxFit.cover, + alignment: const Alignment(0.0, 0.0), + placeholder: (context, url) => + Image.asset( + 'assets/images/error_image.svg'), + errorListener: (_) => Image.asset( + 'assets/images/error_image.svg'), + errorWidget: (_, __, ___) => Image.asset( + 'assets/images/error_image.svg'), ), - style: FlutterFlowTheme.of(context) - .bodyLarge - .override( - fontFamily: 'Nunito Sans', - color: FlutterFlowTheme.of(context) - .primaryText, - fontSize: 14.0, - letterSpacing: 0.0, - fontWeight: FontWeight.normal, - useGoogleFonts: GoogleFonts.asMap() - .containsKey('Nunito Sans'), - ), ), - ), - ].divide(const SizedBox(width: 20.0)), - ), + Container( + width: 150.0, + child: Text( + valueOrDefault( + convertToUppercase(AppState().local), + 'NOME DO LOCAL', + ), + style: FlutterFlowTheme.of(context) + .bodyLarge + .override( + fontFamily: 'Nunito Sans', + color: + FlutterFlowTheme.of(context) + .primaryText, + fontSize: 14.0, + letterSpacing: 0.0, + fontWeight: FontWeight.normal, + useGoogleFonts: + GoogleFonts.asMap() + .containsKey( + 'Nunito Sans'), + ), + ), + ), + ]), ), ), ]