You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/old_lib/views/widgets/titles/app_sub_title.dart

27 lines
705 B
Dart

import 'package:flutter/material.dart';
import '../../app_style/sizing.dart';
class ASubTitle extends StatelessWidget {
final String text;
final EdgeInsets? padding;
final Color? color;
final double? font;
const ASubTitle(this.text, {Key? key,this.padding, this.color, this.font}) : super(key: key);
@override
Widget build(BuildContext context) {
return Padding(
padding: padding ?? EdgeInsets.zero,
child: Text(
text,
style: Theme.of(context).textTheme.bodyText1?.copyWith(
// fontWeight: FontWeight.bold,
fontSize: font,
color: color
),
textScaleFactor: AppStyle.getScaleFactor(context),
),
);
}
}