feat: some changes

This commit is contained in:
Daniel Yukio 2025-02-14 15:21:31 -03:00
parent 44ddafcb0c
commit defe7f3401
3 changed files with 19 additions and 14 deletions

View File

@ -48,8 +48,12 @@ class DocumentItem extends StatelessComponent {
BoxConstraints constraints) { BoxConstraints constraints) {
final Color textColor = FlutterFlowTheme.of(context).info; final Color textColor = FlutterFlowTheme.of(context).info;
final double boxHeight = MediaQuery.of(context).size.height * 0.02; final area = (MediaQuery.of(context).size.height +
final double boxWidth = MediaQuery.of(context).size.height * 0.1; MediaQuery.of(context).size.width) /
2;
final double boxHeight = area * 0.033;
final double boxWidth = area * 0.19;
return Tooltip( return Tooltip(
message: text, message: text,
@ -109,7 +113,7 @@ class DocumentItem extends StatelessComponent {
children: [ children: [
// const SizedBox(width: 10), // const SizedBox(width: 10),
Icon(Icons.description, color: document.category.color), Icon(Icons.description, color: document.category.color),
// const SizedBox(width: 10), const SizedBox(width: 10),
Expanded( Expanded(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,

View File

@ -57,7 +57,8 @@ class DocumentPageModel extends FlutterFlowModel<DocumentPage> {
Padding( Padding(
padding: const EdgeInsets.fromLTRB(15, 0, 50, 0), padding: const EdgeInsets.fromLTRB(15, 0, 50, 0),
child: Text( child: Text(
'Últimos Documentos', FFLocalizations.of(context).getVariableText(
enText: 'Recent Documents', ptText: 'Últimos Documentos'),
style: TextStyle( style: TextStyle(
color: FlutterFlowTheme.of(context).primaryText, color: FlutterFlowTheme.of(context).primaryText,
fontSize: LimitedFontSizeUtil.getHeaderFontSize(context), fontSize: LimitedFontSizeUtil.getHeaderFontSize(context),

View File

@ -164,16 +164,6 @@ class MenuEntry implements BaseModule {
route: '/acessHistoryPage', route: '/acessHistoryPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer], types: [MenuEntryType.Home, MenuEntryType.Drawer],
), ),
MenuEntry(
key: 'FRE-HUB-DOCUMENT',
icon: Icons.document_scanner,
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Documentos',
enText: 'Documents',
),
route: '/documentPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry( MenuEntry(
key: 'FRE-HUB-LIBERATIONS', key: 'FRE-HUB-LIBERATIONS',
icon: Icons.how_to_reg_outlined, icon: Icons.how_to_reg_outlined,
@ -204,6 +194,16 @@ class MenuEntry implements BaseModule {
route: '/messageHistoryPage', route: '/messageHistoryPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer], types: [MenuEntryType.Home, MenuEntryType.Drawer],
), ),
MenuEntry(
key: 'FRE-HUB-DOCUMENT',
icon: Icons.description,
name: FFLocalizations.of(navigatorKey.currentContext!).getVariableText(
ptText: 'Documentos',
enText: 'Documents',
),
route: '/documentPage',
types: [MenuEntryType.Home, MenuEntryType.Drawer],
),
MenuEntry( MenuEntry(
key: 'FRE-HUB-ABOUT-PROPERTY', key: 'FRE-HUB-ABOUT-PROPERTY',
icon: Icons.home, icon: Icons.home,