RandomAvatar function
Widget
RandomAvatar(
- String string, {
- bool trBackground = false,
- Key? key,
- double? width,
- double? height,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- bool matchTextDirection = false,
- bool allowDrawingOutsideViewBox = false,
- WidgetBuilder? placeholderBuilder,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- ColorFilter? colorFilter,
- SvgTheme theme = const SvgTheme(),
Implementation
Widget RandomAvatar(
String string, {
bool trBackground = false,
Key? key,
double? width,
double? height,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
bool matchTextDirection = false,
bool allowDrawingOutsideViewBox = false,
WidgetBuilder? placeholderBuilder,
String? semanticsLabel,
bool excludeFromSemantics = false,
ColorFilter? colorFilter,
SvgTheme theme = const SvgTheme(),
}) {
return SvgPicture.string(
RandomAvatarString(string, trBackground: trBackground),
key: key,
width: width,
height: height,
fit: fit,
alignment: alignment,
matchTextDirection: matchTextDirection,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
colorFilter: colorFilter,
theme: theme,
);
}