wip labels

This commit is contained in:
J. A. Messias 2024-12-20 16:41:21 -03:00
parent 66302358b9
commit ed33d32930
19 changed files with 75 additions and 162 deletions

View File

@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart'; import 'package:google_fonts/google_fonts.dart';
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart'; import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/shared/utils/style_util.dart';
class AppBarUtil extends StatelessWidget implements PreferredSizeWidget { class AppBarUtil extends StatelessWidget implements PreferredSizeWidget {
final String title; final String title;
@ -36,14 +37,7 @@ class AppBarUtil extends StatelessWidget implements PreferredSizeWidget {
), ),
title: Text( title: Text(
title, title,
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: [ actions: [
if (actionButton != null) actionButton!, if (actionButton != null) actionButton!,

View File

@ -12,6 +12,7 @@ import 'package:hub/flutter_flow/flutter_flow_util.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:rxdart/rxdart.dart'; import 'package:rxdart/rxdart.dart';
@immutable @immutable
@ -110,14 +111,7 @@ class _AccessHistoryState extends State<AccessHistoryScreen> {
Widget _title(BuildContext context, FlutterFlowTheme theme) { Widget _title(BuildContext context, FlutterFlowTheme theme) {
return Text( return Text(
FFLocalizations.of(context).getText('ch8qymga'), FFLocalizations.of(context).getText('ch8qymga'),
style: theme.headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: theme.headlineMediumFamily,
color: theme.primaryText,
fontSize: 16.0,
letterSpacing: 0.0,
useGoogleFonts:
GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
),
); );
} }

View File

@ -14,6 +14,7 @@ import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/snackbar_util.dart'; import 'package:hub/shared/utils/snackbar_util.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:rxdart/rxdart.dart'; import 'package:rxdart/rxdart.dart';
@immutable @immutable
@ -110,14 +111,7 @@ class ProvisionalHistoryState extends State<ProvisionalHistoryPage> {
ptText: 'Consultar Agendas', ptText: 'Consultar Agendas',
enText: 'Provisional History', enText: 'Provisional History',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
); );
} }

View File

@ -7,6 +7,7 @@ import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/flutter_flow_util.dart'; import 'package:hub/flutter_flow/flutter_flow_util.dart';
import 'package:hub/flutter_flow/internationalization.dart'; import 'package:hub/flutter_flow/internationalization.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:package_info_plus/package_info_plus.dart'; import 'package:package_info_plus/package_info_plus.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
@ -87,14 +88,7 @@ class _AboutSystemPageState extends State<AboutSystemPage> {
ptText: 'Sobre o Sistema', ptText: 'Sobre o Sistema',
enText: 'About the System', enText: 'About the System',
), ),
style: theme.headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: theme.headlineMediumFamily,
color: theme.primaryText,
fontSize: 16.0,
letterSpacing: 0.0,
useGoogleFonts:
GoogleFonts.asMap().containsKey(theme.headlineMediumFamily),
),
); );
} }

View File

@ -4,6 +4,7 @@ import 'package:hub/components/templates_components/provisional_schedule_templat
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart'; import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/nav/nav.dart'; import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/shared/utils/style_util.dart';
import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_util.dart';
@ -54,14 +55,7 @@ class _DeliveryScheduleState extends State<DeliverySchedule> {
enText: 'Delivery Schedule', enText: 'Delivery Schedule',
ptText: 'Agendar Entregas', ptText: 'Agendar Entregas',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -13,6 +13,7 @@ import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/snackbar_util.dart'; import 'package:hub/shared/utils/snackbar_util.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:hub/shared/utils/validator_util.dart'; import 'package:hub/shared/utils/validator_util.dart';
class LiberationHistoryWidget extends StatefulWidget { class LiberationHistoryWidget extends StatefulWidget {
@ -120,14 +121,7 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'784f83pc' /* Histórico de Liberação */, '784f83pc' /* Histórico de Liberação */,
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -9,6 +9,7 @@ import 'package:hub/pages/message_history_page/message_history_page_model.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
class MessageHistoryPageWidget extends StatefulWidget { class MessageHistoryPageWidget extends StatefulWidget {
const MessageHistoryPageWidget({super.key}); const MessageHistoryPageWidget({super.key});
@ -164,14 +165,7 @@ class _MessageHistoryPageWidgetState extends State<MessageHistoryPageWidget>
enText: 'Message History', enText: 'Message History',
ptText: 'Consultar Mensagens', ptText: 'Consultar Mensagens',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: LimitedFontSizeUtil.getHeaderFontSize(context),
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -14,6 +14,7 @@ import 'package:hub/flutter_flow/flutter_flow_util.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:hub/shared/utils/validator_util.dart'; import 'package:hub/shared/utils/validator_util.dart';
import 'package:rxdart/rxdart.dart'; import 'package:rxdart/rxdart.dart';
@ -233,16 +234,10 @@ class _PackageOrderPage extends State<PackageOrderPage> {
backgroundColor: FlutterFlowTheme.of(context).primaryBackground, backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
title: Text( title: Text(
FFLocalizations.of(context) FFLocalizations.of(context)
.getVariableText(enText: 'Orders', ptText: 'Encomendas'), .getVariableText(enText: 'Orders', ptText: 'Encomendas'),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito', ),
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
)),
leading: _backButton(context, FlutterFlowTheme.of(context)), leading: _backButton(context, FlutterFlowTheme.of(context)),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,

View File

@ -8,6 +8,7 @@ import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/flutter_flow_util.dart'; import 'package:hub/flutter_flow/flutter_flow_util.dart';
import 'package:hub/flutter_flow/nav/nav.dart'; import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/pages/people_on_the_property_page/people_on_the_property_page_model.dart'; import 'package:hub/pages/people_on_the_property_page/people_on_the_property_page_model.dart';
import 'package:hub/shared/utils/style_util.dart';
import '../../shared/utils/log_util.dart'; import '../../shared/utils/log_util.dart';
@ -64,14 +65,7 @@ class _PeopleOnThePropertyPageState extends State<PeopleOnThePropertyPage> {
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'nsu13r5d' /* Pessoas na Propriedade */, 'nsu13r5d' /* Pessoas na Propriedade */,
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -13,6 +13,7 @@ import 'package:hub/pages/pets_page/pets_page_model.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
class PetsHistoryScreen extends StatefulWidget { class PetsHistoryScreen extends StatefulWidget {
const PetsHistoryScreen({super.key, this.model, required this.isApp}); const PetsHistoryScreen({super.key, this.model, required this.isApp});
@ -62,18 +63,12 @@ class _PetsHistoryScreenState extends State<PetsHistoryScreen>
backgroundColor: FlutterFlowTheme.of(context).primaryBackground, backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
title: Text( title: Text(
FFLocalizations.of(context).getVariableText( FFLocalizations.of(context).getVariableText(
ptText: 'Pets', ptText: 'Pets',
enText: 'Pets', enText: 'Pets',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito', ),
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
)),
leading: _backButton(context, FlutterFlowTheme.of(context)), leading: _backButton(context, FlutterFlowTheme.of(context)),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,

View File

@ -1,3 +1,6 @@
import 'dart:async';
import 'dart:isolate';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hub/components/templates_components/change_passs_qr_code_pass_key_template_component/change_pass_widget.dart'; import 'package:hub/components/templates_components/change_passs_qr_code_pass_key_template_component/change_pass_widget.dart';
import 'package:hub/features/auth/index.dart'; import 'package:hub/features/auth/index.dart';

View File

@ -7,6 +7,7 @@ import 'package:hub/flutter_flow/flutter_flow_util.dart';
import 'package:hub/flutter_flow/nav/nav.dart'; import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/pages/preferences_settings_page/preferences_settings_model.dart'; import 'package:hub/pages/preferences_settings_page/preferences_settings_model.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:material_symbols_icons/symbols.dart'; import 'package:material_symbols_icons/symbols.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
@ -28,8 +29,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return ChangeNotifierProvider<PreferencesPageModel>( return ChangeNotifierProvider<PreferencesPageModel>(
create: (_) => PreferencesPageModel(), create: (_) => PreferencesPageModel(),
child: Consumer<PreferencesPageModel>( child: Consumer<PreferencesPageModel>(builder: (context, model, child) {
builder: (context, model, child) => GestureDetector( return GestureDetector(
onTap: () => model.unfocusNode.canRequestFocus onTap: () => model.unfocusNode.canRequestFocus
? FocusScope.of(context).requestFocus(model.unfocusNode) ? FocusScope.of(context).requestFocus(model.unfocusNode)
: FocusScope.of(context).unfocus(), : FocusScope.of(context).unfocus(),
@ -58,13 +59,7 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
enText: 'System Settings', enText: 'System Settings',
ptText: 'Opções do Sistema', ptText: 'Opções do Sistema',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,
@ -89,8 +84,8 @@ class _PreferencesPageWidgetState extends State<PreferencesPageWidget> {
], ],
), ),
), ),
), );
), }),
); );
} }

View File

@ -4,6 +4,7 @@ import 'package:hub/components/templates_components/provisional_schedule_templat
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart'; import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/nav/nav.dart'; import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/shared/utils/style_util.dart';
import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_util.dart';
@ -54,14 +55,7 @@ class _ProvisionalScheduleState extends State<ProvisionalSchedule> {
enText: 'Schedule Providers', enText: 'Schedule Providers',
ptText: 'Agendar Prestadores', ptText: 'Agendar Prestadores',
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -21,6 +21,7 @@ import 'package:hub/pages/qr_code_page/qr_code_page_model.dart';
import 'package:hub/shared/utils/biometric_util.dart'; import 'package:hub/shared/utils/biometric_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/style_util.dart';
import 'package:percent_indicator/circular_percent_indicator.dart'; import 'package:percent_indicator/circular_percent_indicator.dart';
import 'package:qr_flutter/qr_flutter.dart'; import 'package:qr_flutter/qr_flutter.dart';
@ -126,15 +127,7 @@ class _QrCodePageWidgetState extends State<QrCodePageWidget>
enText: 'Use this QR Code for access', enText: 'Use this QR Code for access',
), ),
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: FlutterFlowTheme.of(context).bodyMedium.override( style: DesignUtil.appbarStyle(),
fontFamily:
FlutterFlowTheme.of(context).bodyMediumFamily,
fontSize: limitedHeaderTextSize,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).bodyMediumFamily),
),
), ),
), ),
Stack( Stack(
@ -490,15 +483,7 @@ class _QrCodePageWidgetState extends State<QrCodePageWidget>
), ),
title: Text( title: Text(
FFLocalizations.of(context).getText('ku7jqe53'), FFLocalizations.of(context).getText('ku7jqe53'),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: FlutterFlowTheme.of(context).headlineMediumFamily,
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).headlineMediumFamily),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -4,6 +4,7 @@ import 'package:hub/components/templates_components/regisiter_vistor_template_co
import 'package:hub/flutter_flow/flutter_flow_icon_button.dart'; import 'package:hub/flutter_flow/flutter_flow_icon_button.dart';
import 'package:hub/flutter_flow/flutter_flow_theme.dart'; import 'package:hub/flutter_flow/flutter_flow_theme.dart';
import 'package:hub/flutter_flow/nav/nav.dart'; import 'package:hub/flutter_flow/nav/nav.dart';
import 'package:hub/shared/utils/style_util.dart';
import '/flutter_flow/flutter_flow_util.dart'; import '/flutter_flow/flutter_flow_util.dart';
import 'register_visitor_page_model.dart'; import 'register_visitor_page_model.dart';
@ -60,15 +61,7 @@ class _RegisterVisitorPageWidgetState extends State<RegisterVisitorPageWidget> {
FFLocalizations.of(context).getText( FFLocalizations.of(context).getText(
'megskb6s' /* Cadastrar Visitante */, 'megskb6s' /* Cadastrar Visitante */,
), ),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: FlutterFlowTheme.of(context).headlineMediumFamily,
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey(
FlutterFlowTheme.of(context).headlineMediumFamily),
),
), ),
actions: const [], actions: const [],
centerTitle: true, centerTitle: true,

View File

@ -9,6 +9,7 @@ import 'package:hub/pages/residents_on_the_property/residents_on_the_property_mo
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
class ResidentsOnTheProperty extends StatefulWidget { class ResidentsOnTheProperty extends StatefulWidget {
const ResidentsOnTheProperty({super.key}); const ResidentsOnTheProperty({super.key});
@ -136,16 +137,10 @@ class _ResidentsOnThePropertyState extends State<ResidentsOnTheProperty>
backgroundColor: FlutterFlowTheme.of(context).primaryBackground, backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
title: Text( title: Text(
FFLocalizations.of(context) FFLocalizations.of(context)
.getVariableText(ptText: 'Moradores', enText: 'Residents'), .getVariableText(ptText: 'Moradores', enText: 'Residents'),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito', ),
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
)),
leading: _backButton(context, FlutterFlowTheme.of(context)), leading: _backButton(context, FlutterFlowTheme.of(context)),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,

View File

@ -9,6 +9,7 @@ import 'package:hub/pages/vehicles_on_the_property/vehicle_model.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/style_util.dart';
class VehicleOnTheProperty extends StatefulWidget { class VehicleOnTheProperty extends StatefulWidget {
const VehicleOnTheProperty({super.key}); const VehicleOnTheProperty({super.key});
@ -131,16 +132,10 @@ class _VehicleOnThePropertyState extends State<VehicleOnTheProperty>
backgroundColor: FlutterFlowTheme.of(context).primaryBackground, backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
title: Text( title: Text(
FFLocalizations.of(context) FFLocalizations.of(context)
.getVariableText(enText: 'Vehicles', ptText: 'Veículos'), .getVariableText(enText: 'Vehicles', ptText: 'Veículos'),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito', ),
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
)),
leading: _backButton(context, FlutterFlowTheme.of(context)), leading: _backButton(context, FlutterFlowTheme.of(context)),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,

View File

@ -9,6 +9,7 @@ import 'package:hub/pages/visits_on_the_property/model.dart';
import 'package:hub/shared/utils/dialog_util.dart'; import 'package:hub/shared/utils/dialog_util.dart';
import 'package:hub/shared/utils/log_util.dart'; import 'package:hub/shared/utils/log_util.dart';
import 'package:hub/shared/utils/limited_text_size.dart'; import 'package:hub/shared/utils/limited_text_size.dart';
import 'package:hub/shared/utils/style_util.dart';
class VisitsOnTheProperty extends StatefulWidget { class VisitsOnTheProperty extends StatefulWidget {
const VisitsOnTheProperty({super.key}); const VisitsOnTheProperty({super.key});
@ -134,16 +135,10 @@ class _VisitsOnThePropertyState extends State<VisitsOnTheProperty>
backgroundColor: FlutterFlowTheme.of(context).primaryBackground, backgroundColor: FlutterFlowTheme.of(context).primaryBackground,
automaticallyImplyLeading: false, automaticallyImplyLeading: false,
title: Text( title: Text(
FFLocalizations.of(context).getVariableText( FFLocalizations.of(context).getVariableText(
ptText: 'Visitas em aberto', enText: 'Opened visits'), ptText: 'Visitas em aberto', enText: 'Opened visits'),
style: FlutterFlowTheme.of(context).headlineMedium.override( style: DesignUtil.appbarStyle(),
fontFamily: 'Nunito', ),
color: FlutterFlowTheme.of(context).primaryText,
fontSize: 15.0,
letterSpacing: 0.0,
fontWeight: FontWeight.bold,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
)),
leading: _backButton(context, FlutterFlowTheme.of(context)), leading: _backButton(context, FlutterFlowTheme.of(context)),
centerTitle: true, centerTitle: true,
elevation: 0.0, elevation: 0.0,

View File

@ -0,0 +1,16 @@
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:hub/flutter_flow/index.dart';
class DesignUtil {
static appbarStyle() {
FlutterFlowTheme.of(navigatorKey.currentContext!).headlineMedium.override(
fontFamily: 'Nunito',
color: FlutterFlowTheme.of(navigatorKey.currentContext!).primaryText,
fontSize: 15.0,
fontWeight: FontWeight.bold,
letterSpacing: 0.0,
useGoogleFonts: GoogleFonts.asMap().containsKey('Nunito'),
);
}
}