import 'package:birzha/constants.dart'; import 'package:birzha/core/adaptix/adaptix.dart'; import 'package:flutter/material.dart'; class CategoryNameWidget extends StatelessWidget { final String categoryName; final TextStyle? textStyle; const CategoryNameWidget({ Key? key, required this.categoryName, this.textStyle, }) : super(key: key); @override Widget build(BuildContext context) { return Row( children: [ Container( width: 4.adaptedPx(), height: 29.adaptedPx(), color: Theme.of(context).accentColor, ), SizedBox(width: 10.adaptedPx()), Text( categoryName, style: textStyle ?? Theme.of(context).primaryTextTheme.headline2!.copyWith( fontWeight: FontWeight.bold, fontSize: AppConstants.h1FontSize, ), ), ], ); } }