This commit is contained in:
jantunesmessias 2025-02-13 08:09:28 -03:00
parent 1dc611004a
commit ed66fc86a2
21 changed files with 25 additions and 25 deletions

View File

@ -36,7 +36,7 @@ class AuthenticationTest {
Map<String, String> concat(
String username, String domain, String password) {
return {
'emailTextFormField': '${username}@${domain}.test',
'emailTextFormField': '$username@$domain.test',
'passwordTextFormField': password,
};
}
@ -144,7 +144,7 @@ class AuthenticationTest {
String name, String username, String domain, String password) {
return {
'nameTextFormField': name,
'emailTextFormField': '${username}@${domain}.test',
'emailTextFormField': '$username@$domain.test',
'passwordTextFormField': password,
};
}

View File

@ -33,7 +33,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
@override
Widget build(BuildContext context) {
double limitedInputTextSize = LimitedFontSizeUtil.getInputFontSize(context);
bool _isLoading = false;
bool isLoading = false;
return Builder(
builder: (context) {
@ -72,7 +72,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
child: GestureDetector(
onTap: () async {
setState(() {
_isLoading = true;
isLoading = true;
});
final selectedMedia =
await selectMediaWithSourceBottomSheet(
@ -120,7 +120,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
showUploadMessage(context, message);
} else {
setState(() {
_isLoading = false;
isLoading = false;
});
final message = FFLocalizations.of(context)
.getVariableText(
@ -131,7 +131,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
}
} else {
setState(() {
_isLoading = false;
isLoading = false;
});
}
},
@ -150,7 +150,7 @@ class _MediaUploadButtonUtilState extends State<MediaUploadButtonUtil> {
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.center,
children: [
_isLoading
isLoading
? SizedBox(
width: 30.0,
height: 30.0,

View File

@ -10,7 +10,7 @@ import 'package:hub/shared/utils/limited_text_size.dart';
class DetailsComponentWidget extends StatefulWidget {
const DetailsComponentWidget({
Key? key,
super.key,
required this.labelsHashMap,
required this.statusHashMap,
this.imagePath,
@ -188,7 +188,7 @@ class _DetailsComponentWidgetState extends State<DetailsComponentWidget> {
// return Text('key: $key, value: $value');
return TextFormField(
readOnly: true,
initialValue: '$value',
initialValue: value,
style: FlutterFlowTheme.of(context).bodyMedium.override(
fontFamily:
FlutterFlowTheme.of(context).bodyMediumFamily,

View File

@ -32,7 +32,6 @@ class LiberationHistoryItemDetailsTemplateComponentModel
(await StorageHelper().get(ProfileStorageKey.userUUID.key)) ?? '';
cliUUID =
(await StorageHelper().get(ProfileStorageKey.clientUUID.key)) ?? '';
;
}
@override

View File

@ -140,7 +140,6 @@ class RegisiterVistorTemplateComponentModel
(await StorageHelper().get(ProfileStorageKey.userUUID.key)) ?? '';
cliUUID =
(await StorageHelper().get(ProfileStorageKey.clientUUID.key)) ?? '';
;
}
@override

View File

@ -41,7 +41,6 @@ class ViewVisitDetailModel extends FlutterFlowModel<ViewVisitDetailWidget> {
(await StorageHelper().get(ProfileStorageKey.userUUID.key)) ?? '';
cliUUID =
(await StorageHelper().get(ProfileStorageKey.clientUUID.key)) ?? '';
;
}
@override

View File

@ -43,7 +43,6 @@ class VisitorSearchModalTemplateComponentModel
(await StorageHelper().get(ProfileStorageKey.userUUID.key)) ?? '';
cliUUID =
(await StorageHelper().get(ProfileStorageKey.clientUUID.key)) ?? '';
;
}
@override

View File

@ -8,7 +8,6 @@ import 'package:flutter/foundation.dart';
import 'package:hub/features/documents/index.dart' as doc;
import 'package:hub/features/notification/index.dart';
import 'package:hub/features/storage/index.dart';
import 'package:hub/shared/extensions/index.dart';
import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/validator_util.dart';

View File

@ -60,7 +60,7 @@ interface class Document extends DocumentEntity {
class DocumentItem extends StatelessWidget {
final Document document;
const DocumentItem({Key? key, required this.document}) : super(key: key);
const DocumentItem({super.key, required this.document});
Tooltip _buildTooltip(String text, Color color, BuildContext context,
BoxConstraints constraints) {

View File

@ -12,6 +12,8 @@ import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher.dart';
class AboutSystemPage extends StatefulWidget {
const AboutSystemPage({super.key});
@override
_AboutSystemPageState createState() => _AboutSystemPageState();
}

View File

@ -1,6 +1,5 @@
import 'dart:developer';
import 'package:hub/features/storage/constants/locals_constants.dart';
import 'package:hub/features/storage/index.dart';
import 'package:sqflite/sqflite.dart';

View File

@ -255,7 +255,7 @@ class _LocalProfileComponentWidgetState
),
Tooltip(
message:
valueOrDefault<String>(' ' + state.ownerName, ''),
valueOrDefault<String>(' ${state.ownerName}', ''),
child: Text(
valueOrDefault<String>(
state.ownerName.length > 30

View File

@ -7,9 +7,13 @@ import 'package:material_symbols_icons/symbols.dart';
enum MenuEntryType { Home, Drawer, Property }
class MenuEntry implements BaseModule {
@override
final String key;
@override
final IconData icon;
@override
final String name;
@override
final String route;
final List<MenuEntryType> types;

View File

@ -1,6 +1,5 @@
import 'dart:developer';
import 'package:hub/features/storage/constants/profile_constants.dart';
import 'package:hub/features/storage/index.dart';
import 'package:sqflite/sqflite.dart';

View File

@ -71,7 +71,7 @@ Future<void> _initializeSystemSettings() async {
await crashlyticsInstance.setCrashlyticsCollectionEnabled(true);
// if (crashlyticsInstance.isCrashlyticsCollectionEnabled) {
FlutterError.onError = await crashlyticsInstance.recordFlutterError;
FlutterError.onError = crashlyticsInstance.recordFlutterError;
print('Crashlytics enabled');
// }
}

View File

@ -29,7 +29,7 @@ class _ResidentsOnThePropertyState extends State<ResidentsOnTheProperty>
late final ResidentsOnThePropertyModel model;
late Future<void> _future;
List<dynamic> _wrap = [];
final List<dynamic> _wrap = [];
@override
void initState() {

View File

@ -82,7 +82,7 @@ class VisitsModel extends FlutterFlowModel<VehicleOnTheProperty> {
),
}),
imagePath:
'https://freaccess.com.br/freaccess/getImage.php?devUUID=${devUUID}&cliID=${cliUUID}&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E',
'https://freaccess.com.br/freaccess/getImage.php?devUUID=$devUUID&cliID=$cliUUID&atividade=getFoto&Documento=${item['VDO_DOCUMENTO']}&tipo=E',
statusHashMap: [
Map<String, Color>.from({
if (item['VTA_FIXA'] != null)

View File

@ -15,7 +15,7 @@ extension StringNullableExtensions on String? {
extension StringExtensions on String {
bool toBoolean() {
return this.toLowerCase() == 'true';
return toLowerCase() == 'true';
}
}

View File

@ -6,11 +6,11 @@ class TextUtil extends StatelessWidget {
final TextAlign? textAlign;
const TextUtil({
Key? key,
super.key,
required this.text,
this.style,
this.textAlign,
}) : super(key: key);
});
@override
Widget build(BuildContext context) {

View File

@ -18,7 +18,7 @@ class CategoryCarousel<T> extends StatelessWidget {
height: 120,
child: CarouselView(
itemExtent: 100,
onTap: (index) => filter(categories[index]!),
onTap: (index) => filter(categories[index] as T),
children: categories.map((category) {
category as Category?;
return ColoredBox(

View File

@ -22,6 +22,7 @@ class FREViewerPDF extends StatelessComponent {
final PDFViewerKey search;
const FREViewerPDF({
super.key,
required this.search,
required this.src,
});