This commit is contained in:
jantunesmesias 2024-08-22 16:00:06 -03:00
parent f0f3883589
commit f4c20c26a3
4 changed files with 55 additions and 62 deletions

View File

@ -307,28 +307,20 @@ class NotificationService {
break; break;
default: default:
log('default');
break; break;
} }
log("onActionReceivedMethod");
// showAlertDialog(AppState().context!, 'Test', 'Test', () async {}); // showAlertDialog(AppState().context!, 'Test', 'Test', () async {});
} }
static Future<void> onNotificationCreatedMethod( static Future<void> onNotificationCreatedMethod(
ReceivedNotification receivedNotification) async { ReceivedNotification receivedNotification) async {}
log('onNotificationCreatedMethod');
}
static Future<void> onNotificationDisplayedMethod( static Future<void> onNotificationDisplayedMethod(
ReceivedNotification receivedNotification) async { ReceivedNotification receivedNotification) async {}
log('onNotificationDisplayedMethod');
}
static Future<void> onDismissActionReceivedMethod( static Future<void> onDismissActionReceivedMethod(
ReceivedAction receivedAction) async { ReceivedAction receivedAction) async {}
log('onDismissActionReceivedMethod');
}
static Future<void> show({ static Future<void> show({
required final String title, required final String title,

View File

@ -106,6 +106,8 @@ class _MenuButtonWidgetState extends State<MenuButtonWidget> {
child: Text( child: Text(
widget.title ?? '', widget.title ?? '',
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
maxLines: 2, // Add this line
softWrap: false, // Add this line
style: FlutterFlowTheme.of(context).titleLarge.override( style: FlutterFlowTheme.of(context).titleLarge.override(
fontFamily: 'Nunito', fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,

View File

@ -1,5 +1,3 @@
import 'dart:developer';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hub/components/organism_components/menu_staggered_view_component/menu_staggered_view_component_model.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'; import 'package:hub/flutter_flow/nav/nav.dart';
@ -44,7 +42,6 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
Future scheduleVisitOptAction(BuildContext context) async { Future scheduleVisitOptAction(BuildContext context) async {
final isWpp = AppState().whatsapp; final isWpp = AppState().whatsapp;
final isProvisional = AppState().provisional; final isProvisional = AppState().provisional;
log("isWpp ${isWpp ? 1 : 0}");
final routesListStr = <String>[ final routesListStr = <String>[
'scheduleCompleteVisitPage', 'scheduleCompleteVisitPage',

View File

@ -364,56 +364,58 @@ class _HomePageWidgetState extends State<HomePageWidget> {
width: double.infinity, width: double.infinity,
decoration: const BoxDecoration(), decoration: const BoxDecoration(),
child: Row( child: Row(
mainAxisSize: MainAxisSize.max, mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Container( Container(
width: 50.0, width: 50.0,
height: 50.0, height: 50.0,
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
decoration: const BoxDecoration( decoration: const BoxDecoration(
shape: BoxShape.circle, shape: BoxShape.circle,
), ),
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: valueOrDefault( imageUrl: valueOrDefault(
'https://freaccess.com.br/freaccess/Images/Clients/${AppState().cliUUID}.png', 'https://freaccess.com.br/freaccess/Images/Clients/${AppState().cliUUID}.png',
'assets/images/error_image.svg'), 'assets/images/error_image.svg'),
width: 80.0, width: 80.0,
height: 80.0, height: 80.0,
fit: BoxFit.cover, fit: BoxFit.cover,
alignment: const Alignment(0.0, 0.0), alignment: const Alignment(0.0, 0.0),
placeholder: (context, url) => placeholder: (context, url) =>
Image.asset( Image.asset(
'assets/images/error_image.svg'), 'assets/images/error_image.svg'),
errorListener: (_) => Image.asset( errorListener: (_) => Image.asset(
'assets/images/error_image.svg'), 'assets/images/error_image.svg'),
errorWidget: (_, __, ___) => Image.asset( errorWidget: (_, __, ___) => Image.asset(
'assets/images/error_image.svg'), 'assets/images/error_image.svg'),
),
),
Container(
width: 150.0,
child: Text(
valueOrDefault<String>(
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'),
),
), ),
), Container(
].divide(const SizedBox(width: 20.0)), width: 150.0,
), child: Text(
valueOrDefault<String>(
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'),
),
),
),
]),
), ),
), ),
] ]