define(['dart_sdk', 'packages/flutter/src/widgets/widget_span.dart', 'packages/flutter/src/material/icon_button.dart', 'packages/flutter/src/widgets/implicit_animations.dart', 'packages/flutter/src/rendering/layer.dart', 'packages/flutter/src/material/constants.dart', 'packages/flutter/src/painting/box_decoration.dart', 'packages/flutter/src/painting/decoration_image.dart', 'packages/flutter/src/painting/box_fit.dart', 'packages/flutter/src/painting/box_border.dart', 'packages/flutter/src/widgets/icon_theme.dart', 'packages/flutter/src/painting/_network_image_web.dart'], (function load__packages__flutter__src__material__circle_avatar_dart(dart_sdk, packages__flutter__src__widgets__widget_span$46dart, packages__flutter__src__material__icon_button$46dart, packages__flutter__src__widgets__implicit_animations$46dart, packages__flutter__src__rendering__layer$46dart, packages__flutter__src__material__constants$46dart, packages__flutter__src__painting__box_decoration$46dart, packages__flutter__src__painting__decoration_image$46dart, packages__flutter__src__painting__box_fit$46dart, packages__flutter__src__painting__box_border$46dart, packages__flutter__src__widgets__icon_theme$46dart, packages__flutter__src__painting___network_image_web$46dart) { 'use strict'; const core = dart_sdk.core; const ui = dart_sdk.ui; const _internal = dart_sdk._internal; const dart = dart_sdk.dart; const dartx = dart_sdk.dartx; const debug = packages__flutter__src__widgets__widget_span$46dart.src__widgets__debug; const basic = packages__flutter__src__widgets__widget_span$46dart.src__widgets__basic; const media_query = packages__flutter__src__widgets__widget_span$46dart.src__widgets__media_query; const text = packages__flutter__src__widgets__widget_span$46dart.src__widgets__text; const widget_inspector = packages__flutter__src__widgets__widget_span$46dart.src__widgets__widget_inspector; const framework = packages__flutter__src__widgets__widget_span$46dart.src__widgets__framework; const theme$ = packages__flutter__src__material__icon_button$46dart.src__material__theme; const theme_data = packages__flutter__src__material__icon_button$46dart.src__material__theme_data; const implicit_animations = packages__flutter__src__widgets__implicit_animations$46dart.src__widgets__implicit_animations; const box = packages__flutter__src__rendering__layer$46dart.src__rendering__box; const constants = packages__flutter__src__material__constants$46dart.src__material__constants; const box_decoration = packages__flutter__src__painting__box_decoration$46dart.src__painting__box_decoration; const decoration_image = packages__flutter__src__painting__decoration_image$46dart.src__painting__decoration_image; const box_fit = packages__flutter__src__painting__box_fit$46dart.src__painting__box_fit; const box_border = packages__flutter__src__painting__box_border$46dart.src__painting__box_border; const icon_theme = packages__flutter__src__widgets__icon_theme$46dart.src__widgets__icon_theme; const image_provider = packages__flutter__src__painting___network_image_web$46dart.src__painting__image_provider; var circle_avatar = Object.create(dart.library); dart._checkModuleNullSafetyMode(false); var T = { _LocationL: () => (T._LocationL = dart.constFn(dart.legacy(widget_inspector._Location)))() }; var T$Eval = Object.assign({ _: () => T$Eval }, T); var S = { _: () => S }; var S$Eval = Object.assign({ _: () => S$Eval }, S); const CT = Object.create({ _: () => (C, CT) }); dart.defineLazy(CT, { get C0() { return C[0] = dart.const({ __proto__: ui.Brightness.prototype, [_name]: "Brightness.dark", index: 0 }); }, get C1() { return C[1] = dart.const({ __proto__: ui.Brightness.prototype, [_name]: "Brightness.light", index: 1 }); }, get C4() { return C[4] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "style", [_Location_column]: 21, [_Location_line]: 259, [_Location_file]: null }); }, get C5() { return C[5] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 21, [_Location_line]: 260, [_Location_file]: null }); }, get C3() { return C[3] = dart.constList([C[4] || CT.C4, C[5] || CT.C5], T._LocationL()); }, get C2() { return C[2] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[3] || CT.C3, [_Location_name]: null, [_Location_column]: 26, [_Location_line]: 258, [_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart" }); }, get C8() { return C[8] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "data", [_Location_column]: 19, [_Location_line]: 257, [_Location_file]: null }); }, get C9() { return C[9] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 19, [_Location_line]: 258, [_Location_file]: null }); }, get C7() { return C[7] = dart.constList([C[8] || CT.C8, C[9] || CT.C9], T._LocationL()); }, get C6() { return C[6] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[7] || CT.C7, [_Location_name]: null, [_Location_column]: 24, [_Location_line]: 256, [_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart" }); }, get C12() { return C[12] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "data", [_Location_column]: 17, [_Location_line]: 255, [_Location_file]: null }); }, get C13() { return C[13] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 17, [_Location_line]: 256, [_Location_file]: null }); }, get C11() { return C[11] = dart.constList([C[12] || CT.C12, C[13] || CT.C13], T._LocationL()); }, get C10() { return C[10] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[11] || CT.C11, [_Location_name]: null, [_Location_column]: 22, [_Location_line]: 252, [_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart" }); }, get C16() { return C[16] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 15, [_Location_line]: 252, [_Location_file]: null }); }, get C15() { return C[15] = dart.constList([C[16] || CT.C16], T._LocationL()); }, get C14() { return C[14] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[15] || CT.C15, [_Location_name]: null, [_Location_column]: 13, [_Location_line]: 251, [_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart" }); }, get C19() { return C[19] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "constraints", [_Location_column]: 7, [_Location_line]: 221, [_Location_file]: null }); }, get C20() { return C[20] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "duration", [_Location_column]: 7, [_Location_line]: 227, [_Location_file]: null }); }, get C21() { return C[21] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "decoration", [_Location_column]: 7, [_Location_line]: 228, [_Location_file]: null }); }, get C22() { return C[22] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "foregroundDecoration", [_Location_column]: 7, [_Location_line]: 239, [_Location_file]: null }); }, get C23() { return C[23] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: null, [_Location_name]: "child", [_Location_column]: 7, [_Location_line]: 249, [_Location_file]: null }); }, get C18() { return C[18] = dart.constList([C[19] || CT.C19, C[20] || CT.C20, C[21] || CT.C21, C[22] || CT.C22, C[23] || CT.C23], T._LocationL()); }, get C17() { return C[17] = dart.const({ __proto__: widget_inspector._Location.prototype, [_Location_parameterLocations]: C[18] || CT.C18, [_Location_name]: null, [_Location_column]: 12, [_Location_line]: 220, [_Location_file]: "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart" }); } }, false); var C = Array(24).fill(void 0); var I = [ "file:///C:/Users/Luca/Documents/flutter/flutter_windows_1.22.5-stable/flutter/packages/flutter/lib/src/material/circle_avatar.dart", "package:flutter/src/material/circle_avatar.dart" ]; var child$ = dart.privateName(circle_avatar, "CircleAvatar.child"); var backgroundColor$ = dart.privateName(circle_avatar, "CircleAvatar.backgroundColor"); var foregroundColor$ = dart.privateName(circle_avatar, "CircleAvatar.foregroundColor"); var backgroundImage$ = dart.privateName(circle_avatar, "CircleAvatar.backgroundImage"); var foregroundImage$ = dart.privateName(circle_avatar, "CircleAvatar.foregroundImage"); var onBackgroundImageError$ = dart.privateName(circle_avatar, "CircleAvatar.onBackgroundImageError"); var onForegroundImageError$ = dart.privateName(circle_avatar, "CircleAvatar.onForegroundImageError"); var radius$ = dart.privateName(circle_avatar, "CircleAvatar.radius"); var minRadius$ = dart.privateName(circle_avatar, "CircleAvatar.minRadius"); var maxRadius$ = dart.privateName(circle_avatar, "CircleAvatar.maxRadius"); var _minDiameter = dart.privateName(circle_avatar, "_minDiameter"); var _maxDiameter = dart.privateName(circle_avatar, "_maxDiameter"); var _name = dart.privateName(ui, "_name"); var _Location_parameterLocations = dart.privateName(widget_inspector, "_Location.parameterLocations"); var _Location_name = dart.privateName(widget_inspector, "_Location.name"); var _Location_column = dart.privateName(widget_inspector, "_Location.column"); var _Location_line = dart.privateName(widget_inspector, "_Location.line"); var _Location_file = dart.privateName(widget_inspector, "_Location.file"); circle_avatar.CircleAvatar = class CircleAvatar extends framework.StatelessWidget { get child() { return this[child$]; } set child(value) { super.child = value; } get backgroundColor() { return this[backgroundColor$]; } set backgroundColor(value) { super.backgroundColor = value; } get foregroundColor() { return this[foregroundColor$]; } set foregroundColor(value) { super.foregroundColor = value; } get backgroundImage() { return this[backgroundImage$]; } set backgroundImage(value) { super.backgroundImage = value; } get foregroundImage() { return this[foregroundImage$]; } set foregroundImage(value) { super.foregroundImage = value; } get onBackgroundImageError() { return this[onBackgroundImageError$]; } set onBackgroundImageError(value) { super.onBackgroundImageError = value; } get onForegroundImageError() { return this[onForegroundImageError$]; } set onForegroundImageError(value) { super.onForegroundImageError = value; } get radius() { return this[radius$]; } set radius(value) { super.radius = value; } get minRadius() { return this[minRadius$]; } set minRadius(value) { super.minRadius = value; } get maxRadius() { return this[maxRadius$]; } set maxRadius(value) { super.maxRadius = value; } get [_minDiameter]() { let t0, t0$; if (this.radius == null && this.minRadius == null && this.maxRadius == null) { return 20 * 2.0; } return 2.0 * dart.notNull((t0$ = (t0 = this.radius, t0 == null ? this.minRadius : t0), t0$ == null ? 0 : t0$)); } get [_maxDiameter]() { let t0, t0$; if (this.radius == null && this.minRadius == null && this.maxRadius == null) { return 20 * 2.0; } return 2.0 * dart.notNull((t0$ = (t0 = this.radius, t0 == null ? this.maxRadius : t0), t0$ == null ? 1 / 0 : t0$)); } build(context) { if (context == null) dart.nullFailed(I[0], 194, 29, "context"); if (!dart.test(debug.debugCheckHasMediaQuery(context))) dart.assertFailed(null, I[0], 195, 12, "debugCheckHasMediaQuery(context)"); let theme = theme$.Theme.of(context); let textStyle = dart.nullCheck(theme.primaryTextTheme.subtitle1).copyWith({color: this.foregroundColor}); let effectiveBackgroundColor = this.backgroundColor; if (effectiveBackgroundColor == null) { switch (theme_data.ThemeData.estimateBrightnessForColor(dart.nullCheck(textStyle.color))) { case C[0] || CT.C0: { effectiveBackgroundColor = theme.primaryColorLight; break; } case C[1] || CT.C1: { effectiveBackgroundColor = theme.primaryColorDark; break; } default: { dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type.")); } } } else if (this.foregroundColor == null) { switch (theme_data.ThemeData.estimateBrightnessForColor(dart.nullCheck(this.backgroundColor))) { case C[0] || CT.C0: { textStyle = textStyle.copyWith({color: theme.primaryColorLight}); break; } case C[1] || CT.C1: { textStyle = textStyle.copyWith({color: theme.primaryColorDark}); break; } default: { dart.throw(new _internal.ReachabilityError.new("`null` encountered as case in a switch expression with a non-nullable enum type.")); } } } let minDiameter = this[_minDiameter]; let maxDiameter = this[_maxDiameter]; return new implicit_animations.AnimatedContainer.new({constraints: new box.BoxConstraints.new({minHeight: minDiameter, minWidth: minDiameter, maxWidth: maxDiameter, maxHeight: maxDiameter}), duration: constants.kThemeChangeDuration, decoration: new box_decoration.BoxDecoration.new({color: effectiveBackgroundColor, image: this.backgroundImage != null ? new decoration_image.DecorationImage.new({image: dart.nullCheck(this.backgroundImage), onError: this.onBackgroundImageError, fit: box_fit.BoxFit.cover}) : null, shape: box_border.BoxShape.circle}), foregroundDecoration: this.foregroundImage != null ? new box_decoration.BoxDecoration.new({image: new decoration_image.DecorationImage.new({image: dart.nullCheck(this.foregroundImage), onError: this.onForegroundImageError, fit: box_fit.BoxFit.cover}), shape: box_border.BoxShape.circle}) : null, child: this.child == null ? null : new basic.Center.new({child: new media_query.MediaQuery.new({data: media_query.MediaQuery.of(context).copyWith({textScaleFactor: 1.0}), child: new icon_theme.IconTheme.new({data: theme.iconTheme.copyWith({color: textStyle.color}), child: new text.DefaultTextStyle.new({style: textStyle, child: dart.nullCheck(this.child), $creationLocationd_0dea112b090073317d4: C[2] || CT.C2}), $creationLocationd_0dea112b090073317d4: C[6] || CT.C6}), $creationLocationd_0dea112b090073317d4: C[10] || CT.C10}), $creationLocationd_0dea112b090073317d4: C[14] || CT.C14}), $creationLocationd_0dea112b090073317d4: C[17] || CT.C17}); } }; (circle_avatar.CircleAvatar.new = function(opts) { let key = opts && 'key' in opts ? opts.key : null; let child = opts && 'child' in opts ? opts.child : null; let backgroundColor = opts && 'backgroundColor' in opts ? opts.backgroundColor : null; let backgroundImage = opts && 'backgroundImage' in opts ? opts.backgroundImage : null; let foregroundImage = opts && 'foregroundImage' in opts ? opts.foregroundImage : null; let onBackgroundImageError = opts && 'onBackgroundImageError' in opts ? opts.onBackgroundImageError : null; let onForegroundImageError = opts && 'onForegroundImageError' in opts ? opts.onForegroundImageError : null; let foregroundColor = opts && 'foregroundColor' in opts ? opts.foregroundColor : null; let radius = opts && 'radius' in opts ? opts.radius : null; let minRadius = opts && 'minRadius' in opts ? opts.minRadius : null; let maxRadius = opts && 'maxRadius' in opts ? opts.maxRadius : null; let $36creationLocationd_0dea112b090073317d4 = opts && '$creationLocationd_0dea112b090073317d4' in opts ? opts.$creationLocationd_0dea112b090073317d4 : null; this[child$] = child; this[backgroundColor$] = backgroundColor; this[backgroundImage$] = backgroundImage; this[foregroundImage$] = foregroundImage; this[onBackgroundImageError$] = onBackgroundImageError; this[onForegroundImageError$] = onForegroundImageError; this[foregroundColor$] = foregroundColor; this[radius$] = radius; this[minRadius$] = minRadius; this[maxRadius$] = maxRadius; if (!(radius == null || minRadius == null && maxRadius == null)) dart.assertFailed(null, I[0], 75, 15, "radius == null || (minRadius == null && maxRadius == null)"); if (!(backgroundImage != null || onBackgroundImageError == null)) dart.assertFailed(null, I[0], 76, 15, "backgroundImage != null || onBackgroundImageError == null"); if (!(foregroundImage != null || onForegroundImageError == null)) dart.assertFailed(null, I[0], 77, 15, "foregroundImage != null || onForegroundImageError== null"); circle_avatar.CircleAvatar.__proto__.new.call(this, {key: key, $creationLocationd_0dea112b090073317d4: $36creationLocationd_0dea112b090073317d4}); ; }).prototype = circle_avatar.CircleAvatar.prototype; dart.addTypeTests(circle_avatar.CircleAvatar); dart.addTypeCaches(circle_avatar.CircleAvatar); dart.setMethodSignature(circle_avatar.CircleAvatar, () => ({ __proto__: dart.getMethods(circle_avatar.CircleAvatar.__proto__), build: dart.fnType(framework.Widget, [framework.BuildContext]) })); dart.setGetterSignature(circle_avatar.CircleAvatar, () => ({ __proto__: dart.getGetters(circle_avatar.CircleAvatar.__proto__), [_minDiameter]: core.double, [_maxDiameter]: core.double })); dart.setLibraryUri(circle_avatar.CircleAvatar, I[1]); dart.setFieldSignature(circle_avatar.CircleAvatar, () => ({ __proto__: dart.getFields(circle_avatar.CircleAvatar.__proto__), child: dart.finalFieldType(dart.nullable(framework.Widget)), backgroundColor: dart.finalFieldType(dart.nullable(ui.Color)), foregroundColor: dart.finalFieldType(dart.nullable(ui.Color)), backgroundImage: dart.finalFieldType(dart.nullable(image_provider.ImageProvider$(core.Object))), foregroundImage: dart.finalFieldType(dart.nullable(image_provider.ImageProvider$(core.Object))), onBackgroundImageError: dart.finalFieldType(dart.nullable(dart.fnType(dart.void, [core.Object, dart.nullable(core.StackTrace)]))), onForegroundImageError: dart.finalFieldType(dart.nullable(dart.fnType(dart.void, [core.Object, dart.nullable(core.StackTrace)]))), radius: dart.finalFieldType(dart.nullable(core.double)), minRadius: dart.finalFieldType(dart.nullable(core.double)), maxRadius: dart.finalFieldType(dart.nullable(core.double)) })); dart.defineLazy(circle_avatar.CircleAvatar, { /*circle_avatar.CircleAvatar._defaultRadius*/get _defaultRadius() { return 20; }, /*circle_avatar.CircleAvatar._defaultMinRadius*/get _defaultMinRadius() { return 0; }, /*circle_avatar.CircleAvatar._defaultMaxRadius*/get _defaultMaxRadius() { return 1 / 0; } }, false); dart.trackLibraries("packages/flutter/src/material/circle_avatar.dart", { "package:flutter/src/material/circle_avatar.dart": circle_avatar }, { }, '{"version":3,"sourceRoot":"","sources":["circle_avatar.dart"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmFgB;;;;;;IAQD;;;;;;IASA;;;;;;IAQQ;;;;;;IAKA;;;;;;IAIK;;;;;;IAIA;;;;;;IAcZ;;;;;;IAgBA;;;;;;IAgBA;;;;;;;;AAYZ,UAAI,AAAO,uBAAW,AAAU,0BAAW,AAAU;AACnD,cAAsB,MAAE;;AAE1B,YAAO,AAAI,qBAAuB,OAAb,kBAAP,aAAU,sBAAH;IACvB;;;AAGE,UAAI,AAAO,uBAAW,AAAU,0BAAW,AAAU;AACnD,cAAsB,MAAE;;AAE1B,YAAO,AAAI,qBAAuB,OAAb,kBAAP,aAAU,sBAAH;IACvB;;UAG0B;AACxB,qBAAO,8BAAwB,OAAO;AACtB,kBAAc,gBAAG,OAAO;AAC9B,sBAA4C,AAAE,eAAlC,AAAM,AAAiB,KAAlB,8CAA6C;AACjE,qCAA2B;AAClC,UAAI,AAAyB,wBAAD;AAC1B,gBAAkB,gDAA0C,eAAf,AAAU,SAAD;;;AAEA,YAAlD,2BAA2B,AAAM,KAAD;AAChC;;;;AAEiD,YAAjD,2BAA2B,AAAM,KAAD;AAChC;;;;AANJ;;;YAQK,KAAI,AAAgB;AACzB,gBAAkB,gDAA0C,eAAf;;;AAEqB,YAA9D,YAAY,AAAU,SAAD,kBAAiB,AAAM,KAAD;AAC3C;;;;AAE6D,YAA7D,YAAY,AAAU,SAAD,kBAAiB,AAAM,KAAD;AAC3C;;;;AANJ;;;;AASW,wBAAc;AACd,wBAAc;AAC3B,YAAO,6DACQ,uCACA,WAAW,YACZ,WAAW,YACX,WAAW,aACV,WAAW,cAEd,4CACE,6CACH,wBAAwB,SACxB,AAAgB,+BACnB,iDACwB,eAAf,gCACE,kCACG,yBAEd,aACY,oDAEI,AAAgB,+BAChC,6CACS,iDACiB,eAAf,gCACE,kCACG,+BAEE,+BAElB,aACC,AAAM,qBACP,OACA,6BACS,sCAGY,AAAY,0BAAT,OAAO,6BAA4B,cAChD,oCACC,AAAM,AAAU,KAAX,4BAA2B,AAAU,SAAD,iBACxC,sCACE,SAAS,SACJ,eAAL;IAMzB;;;QA1MO;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;IATA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;UACK,AAAO,AAAQ,MAAT,YAAa,AAAU,SAAD,YAAY,AAAU,SAAD;UACjD,AAAgB,AAAQ,eAAT,YAAY,AAAuB,sBAAD;UACjD,AAAgB,AAAQ,eAAT,YAAY,AAAsB,sBAAA;AACxD,8DAAW,GAAG;;EAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6FA,yCAAc;;;MAGd,4CAAiB;;;MAGjB,4CAAiB","file":"../../../../../../../../../../../packages/flutter/src/material/circle_avatar.dart.lib.js"}'); // Exports: return { src__material__circle_avatar: circle_avatar }; })); //# sourceMappingURL=circle_avatar.dart.lib.js.map