body function
Widget
body({
- required String text,
- required BuildContext context,
- Color? color,
- int? maxLines,
- double? width,
- EdgeInsetsGeometry? padding,
Implementation
Widget body({
required String text,
required BuildContext context,
Color? color,
int? maxLines,
double? width,
EdgeInsetsGeometry? padding,
}) =>
Padding(
padding: padding ?? EdgeInsets.zero,
child: SizedBox(
width: width,
child: Text(
text,
style: Theme.of(context).textTheme.bodyText1!.copyWith(
color: color ?? Colors.black,
fontSize: 15,
overflow: TextOverflow.ellipsis,
fontWeight: FontWeight.w400,
),
maxLines: maxLines,
),
),
);