profile static method

TImage profile({
  1. String? url,
  2. String? name,
  3. String? role,
  4. double size = 42,
  5. double padding = 5,
  6. 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 padding = 5,
  bool forceCache = false,
}) {
  return TImage.circle(
    url: url,
    placeholder: 'package:te_widgets/assets/icons/profile.png',
    title: name,
    subTitle: role,
    size: size,
    padding: padding,
    disabled: true,
    forceCache: forceCache,
  );
}