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;
default:
log('default');
break;
}
log("onActionReceivedMethod");
// showAlertDialog(AppState().context!, 'Test', 'Test', () async {});
}
static Future<void> onNotificationCreatedMethod(
ReceivedNotification receivedNotification) async {
log('onNotificationCreatedMethod');
}
ReceivedNotification receivedNotification) async {}
static Future<void> onNotificationDisplayedMethod(
ReceivedNotification receivedNotification) async {
log('onNotificationDisplayedMethod');
}
ReceivedNotification receivedNotification) async {}
static Future<void> onDismissActionReceivedMethod(
ReceivedAction receivedAction) async {
log('onDismissActionReceivedMethod');
}
ReceivedAction receivedAction) async {}
static Future<void> show({
required final String title,

View File

@ -106,6 +106,8 @@ class _MenuButtonWidgetState extends State<MenuButtonWidget> {
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,

View File

@ -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<MenuComponentWidget> {
Future scheduleVisitOptAction(BuildContext context) async {
final isWpp = AppState().whatsapp;
final isProvisional = AppState().provisional;
log("isWpp ${isWpp ? 1 : 0}");
final routesListStr = <String>[
'scheduleCompleteVisitPage',

View File

@ -364,56 +364,58 @@ class _HomePageWidgetState extends State<HomePageWidget> {
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<String>(
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<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'),
),
),
),
]),
),
),
]