Trocar o Label de “Moram Comigo" para "Moradores“

Troca o Label da Visualização de “Pessoa na Propriedade" para “Moradores"

Trocar o Label de “Meus Veiculos" para “Veiculos"

Remover o icone de “I" do card de Veiculo

Trocar o Label de “Minha Encomendas" para “Encomendas"

Trocar a Label de "Meus Pets“ para “Pets"

Traduzir o Label de Visitas em Aberto para Ingles

Qtd. de Pets esta diferente na tela de consulta de pets par de cadastro

Ações de Editar/Excluir no modal de pets não está aparecendo.

consulta de pets esta com 2 headers

Deixar o menu de sonbre a propriedade como pnultima opção
This commit is contained in:
J. A. Messias 2024-11-08 10:09:36 -03:00
parent de21dd4fd5
commit a45a746f4d
7 changed files with 21 additions and 20 deletions

View File

@ -109,16 +109,8 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
});
/// ABOUT THE PROPERTY
if (options.contains(MenuOption.AboutProperty))
addMenuEntry(Icons.home, 'About Property', 'Sobre a Propriedade', () async {
if (await StorageHelper().get(SQLiteStorageKey.whatsapp.value, Storage.SQLiteStorage) == 'true')
await open(context, '/aboutProperty');
else
DialogUnavailable.unavailableFeature(context);
safeSetState;
});
if (options.contains(MenuOption.PetsOnTheProperty))
addMenuEntry(Icons.pets, 'My Pets', 'Meus Pets', () async {
addMenuEntry(Icons.pets, 'Pets', 'Pets', () async {
if (await StorageHelper().get(SQLiteStorageKey.pets.value, Storage.SQLiteStorage) == 'true')
await open(context, '/petsOnThePropertyPage');
else
@ -126,12 +118,12 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
safeSetState;
});
if (options.contains(MenuOption.ResidentsOnTheProperty))
addMenuEntry(Icons.groups, 'Live With Me', 'Moram Comigo', () async {
addMenuEntry(Icons.groups, 'Residents', 'Moradores', () async {
await open(context, '/peopleOnThePropertyPage');
safeSetState;
});
if (options.contains(MenuOption.VehiclesOnTheProperty))
addMenuEntry(Symbols.directions_car, 'My Vehicles', 'Meus Veículos', () async {
addMenuEntry(Symbols.directions_car, 'Vehicles', 'Veículos', () async {
await open(context, '/vehiclesOnThePropertyPage');
safeSetState;
});
@ -189,6 +181,14 @@ class MenuComponentModel extends FlutterFlowModel<MenuComponentWidget> {
});
/// ABOUT THE SYSTEM
if (options.contains(MenuOption.AboutProperty))
addMenuEntry(Icons.home, 'About Property', 'Sobre a Propriedade', () async {
if (await StorageHelper().get(SQLiteStorageKey.whatsapp.value, Storage.SQLiteStorage) == 'true')
await open(context, '/aboutProperty');
else
DialogUnavailable.unavailableFeature(context);
safeSetState;
});
if (options.contains(MenuOption.SettingsOnTheApp))
addMenuEntry(Icons.settings, 'System Settings', 'Opções do Sistema', () async {
await open(context, '/preferencesSettings');

View File

@ -167,7 +167,7 @@ class _CardItemTemplateComponentWidgetState extends State<CardItemTemplateCompon
.addToStart(const SizedBox(height: 5)),
),
),
_generateImage(),
if(widget.imagePath != null) _generateImage(),
].addToEnd(const SizedBox(width: 10)).addToStart(const SizedBox(width: 10)),
);
} else {

View File

@ -108,7 +108,7 @@ GoRouter createRouter(AppStateNotifier appStateNotifier) {
FFRoute(
name: 'petsOnThePropertyPage',
path: '/petsOnThePropertyPage',
builder: (context, params) => Scaffold(body: const PetsHistoryScreen())),
builder: (context, params) => Scaffold(body: const PetsHistoryScreen(isApp: true))),
FFRoute(
name: 'vehiclesOnThePropertyPage',
path: '/vehiclesOnThePropertyPage',

View File

@ -120,7 +120,7 @@ class _PeopleOnThePropertyPageState extends State<PeopleOnThePropertyPage> with
return AppBar(
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false,
title: Text(FFLocalizations.of(context).getVariableText(ptText: 'Moram Comigo', enText: 'People on the property'),
title: Text(FFLocalizations.of(context).getVariableText(ptText: 'Moradores', enText: 'Residents'),
style: FlutterFlowTheme.of(context).headlineMedium.override(
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,

View File

@ -14,7 +14,8 @@ import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/log_util.dart';
class PetsHistoryScreen extends StatefulWidget {
const PetsHistoryScreen({super.key, this.model});
const PetsHistoryScreen({super.key, this.model, required this.isApp});
final bool isApp;
final PetsPageModel? model;
@override _PetsHistoryScreenState createState() => _PetsHistoryScreenState();
@ -58,7 +59,7 @@ class _PetsHistoryScreenState extends State<PetsHistoryScreen> with TickerProvid
@override
Widget build(BuildContext context) => Scaffold(
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
appBar: _appBar(context),
appBar: widget.isApp ? _appBar(context) : null,
body: Column(
mainAxisSize: MainAxisSize.max,
mainAxisAlignment: MainAxisAlignment.start,
@ -125,7 +126,7 @@ class _PetsHistoryScreenState extends State<PetsHistoryScreen> with TickerProvid
return AppBar(
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false,
title: Text(FFLocalizations.of(context).getVariableText(enText: 'My Pets', ptText: 'Meus Pets'),
title: Text(FFLocalizations.of(context).getVariableText(enText: 'Pets', ptText: 'Pets'),
style: FlutterFlowTheme.of(context).headlineMedium.override(
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,

View File

@ -94,7 +94,7 @@ class _PetsPageWidgetState extends State<PetsPageWidget> with SingleTickerProvid
labelTab2: FFLocalizations.of(context).getVariableText(ptText: 'Consultar', enText: 'History'),
controller: _model.tabBarController,
widget1: _model.isEditing ? _buildEditForm(context) : _buildRegisterForm(context),
widget2: PetsHistoryScreen(model: _model),
widget2: PetsHistoryScreen(model: _model, isApp: false),
onEditingChanged: onEditingChanged,
);
}

View File

@ -116,7 +116,7 @@ class _VehicleOnThePropertyState extends State<VehicleOnTheProperty> with Ticker
return AppBar(
backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false,
title: Text(FFLocalizations.of(context).getVariableText(enText: 'My Vehicles', ptText: 'Meus Veículos'),
title: Text(FFLocalizations.of(context).getVariableText(enText: 'Vehicles', ptText: 'Veículos'),
style: FlutterFlowTheme.of(context).headlineMedium.override(
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
@ -206,7 +206,7 @@ class _VehicleOnThePropertyState extends State<VehicleOnTheProperty> with Ticker
Widget _item(BuildContext context, dynamic uItem) {
return CardItemTemplateComponentWidget(
imagePath: '',
imagePath: null,
labelsHashMap: {
'${FFLocalizations.of(context).getVariableText(ptText: "Placa", enText: "License Plate")}:':
uItem['licensePlate'] ?? '',