Textstyles.

This commit is contained in:
Faris Armoush
2025-05-04 11:10:22 +03:00
parent e43de3f64c
commit 7242218b2f
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,6 @@
import 'package:flutter/material.dart';
import 'package:syncrow_web/utils/color_manager.dart';
import 'package:syncrow_web/utils/extension/build_context_x.dart';
class ChartTitle extends StatelessWidget {
const ChartTitle({super.key, required this.title});
@ -8,9 +10,10 @@ class ChartTitle extends StatelessWidget {
@override
Widget build(BuildContext context) {
return DefaultTextStyle(
style: TextStyle(
style: context.textTheme.titleLarge!.copyWith(
fontSize: 22,
fontWeight: FontWeight.w700,
color: ColorsManager.blackColor,
),
child: title,
);

View File

@ -41,6 +41,11 @@ class EnergyConsumptionPerDeviceDevicesList extends StatelessWidget {
Text(
'Device ${index + 1}',
textAlign: TextAlign.center,
style: TextStyle(
color: ColorsManager.blackColor,
fontWeight: FontWeight.w400,
fontSize: 14,
),
),
],
),