refactor: Replace hardcoded monospace font with AppTypography constant

- Updated multiple instances of the 'monospace' font family to use AppTypography.monospaceFontFamily for consistency across the application.
- This change enhances maintainability and ensures a unified typography approach throughout the app.
This commit is contained in:
cogwheel0
2025-10-21 00:09:12 +05:30
parent a0a0d43116
commit d00cbe36cf
6 changed files with 10 additions and 10 deletions

View File

@@ -385,7 +385,7 @@ class _AssistantMessageWidgetState extends ConsumerState<AssistantMessageWidget>
style: TextStyle(
fontSize: AppTypography.bodySmall,
color: theme.textSecondary,
fontFamily: 'monospace',
fontFamily: AppTypography.monospaceFontFamily,
height: 1.35,
),
),
@@ -407,7 +407,7 @@ class _AssistantMessageWidgetState extends ConsumerState<AssistantMessageWidget>
style: TextStyle(
fontSize: AppTypography.bodySmall,
color: theme.textSecondary,
fontFamily: 'monospace',
fontFamily: AppTypography.monospaceFontFamily,
height: 1.35,
),
),
@@ -1207,7 +1207,7 @@ class _AssistantMessageWidgetState extends ConsumerState<AssistantMessageWidget>
style: TextStyle(
fontSize: AppTypography.bodySmall,
color: theme.textSecondary,
fontFamily: 'monospace',
fontFamily: AppTypography.monospaceFontFamily,
height: 1.4,
),
),
@@ -1994,7 +1994,7 @@ class CodeExecutionListView extends StatelessWidget {
child: SelectableText(
execution.code!,
style: const TextStyle(
fontFamily: 'monospace',
fontFamily: AppTypography.monospaceFontFamily,
height: 1.4,
),
),