chore: Update eva_icons_flutter dependency to version 3.1.0

This commit is contained in:
jantunesmesias 2024-08-02 15:11:59 -03:00
parent ae698a276d
commit 3556493ce0
5 changed files with 134 additions and 130 deletions

View File

@ -417,6 +417,7 @@ class NotificationHandler {
log('Showing visit request notification dialog'); log('Showing visit request notification dialog');
showDialog( showDialog(
context: context, context: context,
barrierDismissible: true,
builder: (BuildContext context) { builder: (BuildContext context) {
_getIdBasedOnUserType(message); _getIdBasedOnUserType(message);
return Dialog( return Dialog(

View File

@ -145,133 +145,130 @@ class _VisitRequestTemplateComponentWidgetState
return LayoutBuilder( return LayoutBuilder(
builder: (context, constraints) { builder: (context, constraints) {
return Align( return Padding(
alignment: const AlignmentDirectional(0.0, 0.0), padding: const EdgeInsets.symmetric(horizontal: 10.0),
child: Padding( child: Container(
padding: const EdgeInsets.symmetric(horizontal: 10.0), width: constraints.maxWidth,
child: Container( decoration: BoxDecoration(
width: constraints.maxWidth, color: FlutterFlowTheme.of(context).primaryBackground,
decoration: BoxDecoration( borderRadius: const BorderRadius.all(Radius.circular(25.0)),
color: FlutterFlowTheme.of(context).primaryBackground, ),
borderRadius: const BorderRadius.all(Radius.circular(25.0)), child: SingleChildScrollView(
), child: Column(
child: SingleChildScrollView( mainAxisSize: MainAxisSize.min,
child: Column( mainAxisAlignment: MainAxisAlignment.start,
mainAxisSize: MainAxisSize.min, children: [
mainAxisAlignment: MainAxisAlignment.start, const SizedBox(height: 20.0),
children: [ Container(
const SizedBox(height: 20.0), width: 150.0,
Container( height: 150.0,
width: 150.0, clipBehavior: Clip.antiAlias,
height: 150.0, decoration: const BoxDecoration(
clipBehavior: Clip.antiAlias, shape: BoxShape.circle,
decoration: const BoxDecoration(
shape: BoxShape.circle,
),
child: CachedNetworkImage(
fadeInDuration: const Duration(milliseconds: 100),
fadeOutDuration: const Duration(milliseconds: 100),
imageUrl:
'https://freaccess.com.br/freaccess/getImage.php?cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.imageHashMap['key']}&tipo=${widget.imageHashMap['value']}',
fit: BoxFit.cover,
),
), ),
const SizedBox(height: 10.0), child: CachedNetworkImage(
Row( fadeInDuration: const Duration(milliseconds: 100),
children: statusLinkedHashMap.expand((linkedHashMap) { fadeOutDuration: const Duration(milliseconds: 100),
return linkedHashMap.entries imageUrl:
.map((MapEntry<String, Color> item) { 'https://freaccess.com.br/freaccess/getImage.php?cliID=${FFAppState().cliUUID}&atividade=getFoto&Documento=${widget.imageHashMap['key']}&tipo=${widget.imageHashMap['value']}',
return Expanded( fit: BoxFit.cover,
child: Padding( ),
padding: ),
const EdgeInsets.symmetric(horizontal: 24.0), const SizedBox(height: 10.0),
child: TextFormField( Row(
// controller: _model.textControllerStatus, children: statusLinkedHashMap.expand((linkedHashMap) {
// focusNode: _model.textFieldFocusNodeStatus, return linkedHashMap.entries
autofocus: false, .map((MapEntry<String, Color> item) {
canRequestFocus: false, return Expanded(
readOnly: true, child: Padding(
obscureText: false, padding:
decoration: InputDecoration( const EdgeInsets.symmetric(horizontal: 24.0),
isDense: true, child: TextFormField(
enabledBorder: OutlineInputBorder( // controller: _model.textControllerStatus,
borderRadius: BorderRadius.circular(10.0), // focusNode: _model.textFieldFocusNodeStatus,
), autofocus: false,
filled: true, canRequestFocus: false,
fillColor: item.value, readOnly: true,
labelText: item.key, obscureText: false,
labelStyle: FlutterFlowTheme.of(context) decoration: InputDecoration(
.labelMedium isDense: true,
.override( enabledBorder: OutlineInputBorder(
fontFamily: FlutterFlowTheme.of(context) borderRadius: BorderRadius.circular(10.0),
.labelMediumFamily,
color: FlutterFlowTheme.of(context)
.primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.labelMediumFamily),
),
hintStyle: FlutterFlowTheme.of(context)
.labelMedium
.override(
fontFamily: FlutterFlowTheme.of(context)
.labelMediumFamily,
color: FlutterFlowTheme.of(context)
.primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.labelMediumFamily),
),
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
focusedErrorBorder: InputBorder.none,
suffixIcon: Icon(
Icons.info,
color: FlutterFlowTheme.of(context).accent1,
),
), ),
style: FlutterFlowTheme.of(context) filled: true,
.bodyMedium fillColor: item.value,
labelText: item.key,
labelStyle: FlutterFlowTheme.of(context)
.labelMedium
.override( .override(
fontFamily: FlutterFlowTheme.of(context) fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily, .labelMediumFamily,
color: FlutterFlowTheme.of(context) color: FlutterFlowTheme.of(context)
.primaryText, .primaryText,
letterSpacing: 0.0, letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap() useGoogleFonts: GoogleFonts.asMap()
.containsKey( .containsKey(
FlutterFlowTheme.of(context) FlutterFlowTheme.of(context)
.bodyMediumFamily), .labelMediumFamily),
), ),
textAlign: TextAlign.start, hintStyle: FlutterFlowTheme.of(context)
maxLines: null, .labelMedium
keyboardType: TextInputType.name, .override(
validator: _model.textController1Validator fontFamily: FlutterFlowTheme.of(context)
.asValidator(context), .labelMediumFamily,
color: FlutterFlowTheme.of(context)
.primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.labelMediumFamily),
),
focusedBorder: InputBorder.none,
errorBorder: InputBorder.none,
focusedErrorBorder: InputBorder.none,
suffixIcon: Icon(
Icons.info,
color: FlutterFlowTheme.of(context).accent1,
),
), ),
style: FlutterFlowTheme.of(context)
.bodyMedium
.override(
fontFamily: FlutterFlowTheme.of(context)
.bodyMediumFamily,
color: FlutterFlowTheme.of(context)
.primaryText,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap()
.containsKey(
FlutterFlowTheme.of(context)
.bodyMediumFamily),
),
textAlign: TextAlign.start,
maxLines: null,
keyboardType: TextInputType.name,
validator: _model.textController1Validator
.asValidator(context),
), ),
); ),
}).toList(); );
}).toList(), }).toList();
), }).toList(),
const SizedBox(height: 10.0), ),
// ListView.builder( const SizedBox(height: 10.0),
// shrinkWrap: true, // ListView.builder(
// itemCount: labelsLinkedHashMap.length, // shrinkWrap: true,
// physics: const NeverScrollableScrollPhysics(), // itemCount: labelsLinkedHashMap.length,
// itemBuilder: (context, index) { // physics: const NeverScrollableScrollPhysics(),
// String key = labelsLinkedHashMap.keys.elementAt(index); // itemBuilder: (context, index) {
// String value = labelsLinkedHashMap[key]!; // String key = labelsLinkedHashMap.keys.elementAt(index);
// return Text('key: $key, value: $value'); // String value = labelsLinkedHashMap[key]!;
// }, // return Text('key: $key, value: $value');
// ), // },
const SizedBox(height: 20.0), // ),
], const SizedBox(height: 20.0),
), ],
), ),
), ),
), ),

View File

@ -2,6 +2,7 @@
import 'dart:developer'; import 'dart:developer';
import 'package:eva_icons_flutter/eva_icons_flutter.dart';
import 'package:hub/app_state.dart'; import 'package:hub/app_state.dart';
import 'package:hub/backend/api_requests/api_calls.dart'; import 'package:hub/backend/api_requests/api_calls.dart';
import 'package:hub/backend/api_requests/api_manager.dart'; import 'package:hub/backend/api_requests/api_manager.dart';
@ -260,8 +261,10 @@ Widget messageHistoryItem(BuildContext context, dynamic jsonBody) {
children: [ children: [
Icon( Icon(
jsonBody['MSG_DESTINO_TP'] == 'T' jsonBody['MSG_DESTINO_TP'] == 'T'
? Icons.group ? EvaIcons.globe
: Icons.person, : jsonBody['MSG_DESTINO_TP'] == 'P'
? Icons.person
: Icons.home,
color: FlutterFlowTheme.of(context).primary, color: FlutterFlowTheme.of(context).primary,
size: 25, size: 25,
), ),

View File

@ -233,6 +233,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.5" version: "2.0.5"
eva_icons_flutter:
dependency: "direct main"
description:
name: eva_icons_flutter
sha256: "6d48a10b93590ab83eb092bee5adacdeb14f3d83f527a4b9e4092c363d56e2a8"
url: "https://pub.dev"
source: hosted
version: "3.1.0"
fake_async: fake_async:
dependency: transitive dependency: transitive
description: description:

View File

@ -3,7 +3,7 @@ description: A new Flutter project.
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
# pub.dev using `pub publish`. This is preferred for private packages. # pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: "none" # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application. # The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43 # A version number is three numbers separated by dots, like 1.2.43
@ -49,6 +49,7 @@ dependencies:
flutter_plugin_android_lifecycle: 2.0.20 flutter_plugin_android_lifecycle: 2.0.20
share_plus: ^9.0.0 share_plus: ^9.0.0
flutter_secure_storage: 9.2.2 flutter_secure_storage: 9.2.2
eva_icons_flutter: ^3.1.0
flutter_secure_storage_linux: 1.2.1 flutter_secure_storage_linux: 1.2.1
flutter_secure_storage_macos: 3.1.2 flutter_secure_storage_macos: 3.1.2
flutter_secure_storage_platform_interface: 1.1.2 flutter_secure_storage_platform_interface: 1.1.2
@ -99,7 +100,6 @@ dependencies:
video_player_platform_interface: 6.2.2 video_player_platform_interface: 6.2.2
video_player_web: 2.3.1 video_player_web: 2.3.1
# The following adds the Cupertino Icons font to your application. # The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons. # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.0 cupertino_icons: ^1.0.0
@ -123,24 +123,20 @@ dev_dependencies:
flutter_test: flutter_test:
sdk: flutter sdk: flutter
flutter_launcher_icons: flutter_launcher_icons:
android: 'launcher_icon' android: "launcher_icon"
ios: true ios: true
web: web:
generate: true generate: true
image_path: 'assets/images/app_launcher_icon.svg' image_path: "assets/images/app_launcher_icon.svg"
adaptive_icon_background: 'assets/images/adaptive_background_icon.svg' adaptive_icon_background: "assets/images/adaptive_background_icon.svg"
adaptive_icon_foreground: 'assets/images/adaptive_foreground_icon.svg' adaptive_icon_foreground: "assets/images/adaptive_foreground_icon.svg"
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter. # The following section is specific to Flutter.
flutter: flutter:
# The following line ensures that the Material Icons font is # The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in # included with your application, so that you can use the icons in
# the material Icons class. # the material Icons class.
@ -158,7 +154,7 @@ flutter:
- assets/rive_animations/ - assets/rive_animations/
- assets/pdfs/ - assets/pdfs/
fonts: fonts:
- family: 'SF Pro' - family: "SF Pro"
fonts: fonts:
- asset: assets/fonts/SFPRODISPLAYREGULAR.OTF - asset: assets/fonts/SFPRODISPLAYREGULAR.OTF
- asset: assets/fonts/SFPRODISPLAYMEDIUM.OTF - asset: assets/fonts/SFPRODISPLAYMEDIUM.OTF
@ -173,7 +169,6 @@ flutter:
fonts: fonts:
- asset: assets/fonts/menu.ttf - asset: assets/fonts/menu.ttf
# An image asset can refer to one or more resolution-specific "variants", see # An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware. # https://flutter.dev/assets-and-images/#resolution-aware.