profile static method

TImage profile({
  1. String? url,
  2. String? name,
  3. String? role,
  4. double? size = 42,
  5. double? width,
  6. double? height,
  7. double? aspectRatio,
  8. AlignmentGeometry alignment = Alignment.center,
  9. double padding = 5,
  10. bool forceCache = false,
})

Creates a profile image with default styling.

Uses a circular shape with a profile placeholder.

Implementation

static TImage profile({
  String? url,
  String? name,
  String? role,
  double? size = 42,
  double? width,
  double? height,
  double? aspectRatio,
  AlignmentGeometry alignment = Alignment.center,
  double padding = 5,
  bool forceCache = false,
}) {
  return TImage.circle(
    url: url,
    placeholder: 'package:te_widgets/assets/icons/profile.png',
    title: name,
    subTitle: role,
    size: size,
    width: width,
    height: height,
    aspectRatio: aspectRatio,
    alignment: alignment,
    padding: padding,
    disabled: true,
    forceCache: forceCache,
  );
}