mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
22 lines
559 B
Dart
22 lines
559 B
Dart
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});
|
|
|
|
final Widget title;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return DefaultTextStyle(
|
|
style: context.textTheme.titleLarge!.copyWith(
|
|
fontSize: 22,
|
|
fontWeight: FontWeight.w700,
|
|
color: ColorsManager.blackColor,
|
|
),
|
|
child: title,
|
|
);
|
|
}
|
|
}
|