예제 #1
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <EdgeInsets>("padding", this.padding, defaultValue: null));
     properties.add(new DiagnosticsProperty <Decoration>("bg", this.decoration, defaultValue: null));
 }
예제 #2
0

        
예제 #3
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <LinearGradient>("edgeGradient", this.edgeGradient));
 }
예제 #4
0

        
예제 #5
0

        
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            ThemeData       defaultTheme = ThemeData.fallback();
            SliderThemeData defaultData  = fromPrimaryColors(
                primaryColor: defaultTheme.primaryColor,
                primaryColorDark: defaultTheme.primaryColorDark,
                primaryColorLight: defaultTheme.primaryColorLight,
                valueIndicatorTextStyle: defaultTheme.accentTextTheme.body2
                );

            properties.add(new DiagnosticsProperty <Color>("activeTrackColor", this.activeTrackColor,
                                                           defaultValue: defaultData.activeTrackColor));
            properties.add(new DiagnosticsProperty <Color>("activeTrackColor", this.activeTrackColor,
                                                           defaultValue: defaultData.activeTrackColor));
            properties.add(new DiagnosticsProperty <Color>("inactiveTrackColor", this.inactiveTrackColor,
                                                           defaultValue: defaultData.inactiveTrackColor));
            properties.add(new DiagnosticsProperty <Color>("disabledActiveTrackColor", this.disabledActiveTrackColor,
                                                           defaultValue: defaultData.disabledActiveTrackColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("disabledInactiveTrackColor", this.disabledInactiveTrackColor,
                                                           defaultValue: defaultData.disabledInactiveTrackColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("activeTickMarkColor", this.activeTickMarkColor,
                                                           defaultValue: defaultData.activeTickMarkColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("inactiveTickMarkColor", this.inactiveTickMarkColor,
                                                           defaultValue: defaultData.inactiveTickMarkColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("disabledActiveTickMarkColor",
                                                           this.disabledActiveTickMarkColor, defaultValue: defaultData.disabledActiveTickMarkColor,
                                                           level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("disabledInactiveTickMarkColor",
                                                           this.disabledInactiveTickMarkColor, defaultValue: defaultData.disabledInactiveTickMarkColor,
                                                           level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("thumbColor", this.thumbColor,
                                                           defaultValue: defaultData.thumbColor));
            properties.add(new DiagnosticsProperty <Color>("disabledThumbColor", this.disabledThumbColor,
                                                           defaultValue: defaultData.disabledThumbColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("overlayColor", this.overlayColor,
                                                           defaultValue: defaultData.overlayColor, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <Color>("valueIndicatorColor", this.valueIndicatorColor,
                                                           defaultValue: defaultData.valueIndicatorColor));
            properties.add(new DiagnosticsProperty <SliderTrackShape>("trackShape", this.trackShape,
                                                                      defaultValue: defaultData.trackShape, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <SliderTickMarkShape>("tickMarkShape", this.tickMarkShape,
                                                                         defaultValue: defaultData.tickMarkShape, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <SliderComponentShape>("thumbShape", this.thumbShape,
                                                                          defaultValue: defaultData.thumbShape, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <SliderComponentShape>("overlayShape", this.overlayShape,
                                                                          defaultValue: defaultData.overlayShape, level: DiagnosticLevel.debug));
            properties.add(new DiagnosticsProperty <SliderComponentShape>("valueIndicatorShape",
                                                                          this.valueIndicatorShape, defaultValue: defaultData.valueIndicatorShape, level: DiagnosticLevel.debug));
            properties.add(new EnumProperty <ShowValueIndicator>("showValueIndicator", this.showValueIndicator,
                                                                 defaultValue: defaultData.showValueIndicator));
            properties.add(new DiagnosticsProperty <TextStyle>("valueIndicatorTextStyle", this.valueIndicatorTextStyle,
                                                               defaultValue: defaultData.valueIndicatorTextStyle));
        }
예제 #7
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <MediaQueryData>("data", this.data, showName: false));
 }
예제 #8
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <Offset>("position", this.position));
     properties.add(new DiagnosticsProperty <Offset>("delta", this.delta, defaultValue: Offset.zero,
                                                     level: DiagnosticLevel.debug));
     properties.add(new DiagnosticsProperty <TimeSpan>("timeStamp", this.timeStamp, defaultValue: TimeSpan.Zero,
                                                       level: DiagnosticLevel.debug));
     properties.add(new IntProperty("pointer", this.pointer, level: DiagnosticLevel.debug));
     properties.add(new EnumProperty <PointerDeviceKind>("kind", this.kind, level: DiagnosticLevel.debug));
     properties.add(new IntProperty("device", this.device, defaultValue: 0, level: DiagnosticLevel.debug));
     properties.add(new IntProperty("buttons", this.buttons, defaultValue: 0, level: DiagnosticLevel.debug));
     properties.add(new DiagnosticsProperty <bool>("down", this.down, level: DiagnosticLevel.debug));
     properties.add(
         new FloatProperty("pressure", this.pressure, defaultValue: 1.0, level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("pressureMin", this.pressureMin, defaultValue: 1.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("pressureMax", this.pressureMax, defaultValue: 1.0,
                                      level: DiagnosticLevel.debug));
     properties.add(
         new FloatProperty("distance", this.distance, defaultValue: 0.0, level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("distanceMin", this.distanceMin, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("distanceMax", this.distanceMax, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("size", this.size, defaultValue: 0.0, level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("radiusMajor", this.radiusMajor, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("radiusMinor", this.radiusMinor, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("radiusMin", this.radiusMin, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("radiusMax", this.radiusMax, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("orientation", this.orientation, defaultValue: 0.0,
                                      level: DiagnosticLevel.debug));
     properties.add(new FloatProperty("tilt", this.tilt, defaultValue: 0.0, level: DiagnosticLevel.debug));
     properties.add(new IntProperty("platformData", this.platformData, defaultValue: 0,
                                    level: DiagnosticLevel.debug));
     properties.add(new FlagProperty("obscured", value: this.obscured, ifTrue: "obscured",
                                     level: DiagnosticLevel.debug));
     properties.add(new FlagProperty("synthesized", value: this.synthesized, ifTrue: "synthesized",
                                     level: DiagnosticLevel.debug));
 }
예제 #9
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <Offset>("scrollDelta", this.scrollDelta));
 }
예제 #10
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new EnumProperty <DragStartBehavior>("startBehavior", this.dragStartBehavior));
 }
예제 #11
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <Image>("image", this.image));
     properties.add(new FloatProperty("width", this.width, defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new FloatProperty("height", this.height, defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new FloatProperty("scale", this.scale, defaultValue: 1.0f));
     properties.add(new DiagnosticsProperty <Color>("color", this.color,
                                                    defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new EnumProperty <BlendMode>("colorBlendMode", this.colorBlendMode,
                                                 defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new EnumProperty <BoxFit?>("fit", this.fit, defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new DiagnosticsProperty <Alignment>("alignment", this.alignment,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new EnumProperty <ImageRepeat>("repeat", this.repeat, defaultValue: ImageRepeat.noRepeat));
     properties.add(new DiagnosticsProperty <Rect>("centerSlice", this.centerSlice,
                                                   defaultValue: Diagnostics.kNullDefaultValue));
     properties.add(new DiagnosticsProperty <bool>("invertColors", this.invertColors));
     properties.add(new EnumProperty <FilterMode>("filterMode", this.filterMode));
 }
예제 #12
0

        
예제 #13
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <string>("data", data, defaultValue: null));
     properties.add(new DiagnosticsProperty <FocusNode>("focusNode", focusNode, defaultValue: null));
     properties.add(new DiagnosticsProperty <TextStyle>("style", style, defaultValue: null));
     properties.add(new DiagnosticsProperty <bool>("autofocus", autofocus, defaultValue: false));
     properties.add(new DiagnosticsProperty <bool>("showCursor", showCursor, defaultValue: false));
     properties.add(new IntProperty("minLines", minLines, defaultValue: null));
     properties.add(new IntProperty("maxLines", maxLines, defaultValue: null));
     properties.add(new EnumProperty <TextAlign?>("textAlign", textAlign, defaultValue: null));
     properties.add(new EnumProperty <TextDirection?>("textDirection", textDirection, defaultValue: null));
     properties.add(new FloatProperty("textScaleFactor", textScaleFactor, defaultValue: null));
     properties.add(new FloatProperty("cursorWidth", cursorWidth, defaultValue: 2.0f));
     properties.add(new DiagnosticsProperty <Radius>("cursorRadius", cursorRadius, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("cursorColor", cursorColor, defaultValue: null));
     properties.add(new FlagProperty("selectionEnabled", value: selectionEnabled, defaultValue: true, ifFalse: "selection disabled"));
     properties.add(new DiagnosticsProperty <ScrollPhysics>("scrollPhysics", scrollPhysics, defaultValue: null));
 }
예제 #14
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new FlagProperty("value", value: this.value, ifTrue: "on", ifFalse: "off", showName: true));
     properties.add(new ObjectFlagProperty <ValueChanged <bool> >("onChanged", this.onChanged, ifNull: "disabled"));
 }
예제 #15
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            ThemeData defaultData = fallback();

            properties.add(new EnumProperty <Brightness>("brightness", this.brightness,
                                                         defaultValue: defaultData.brightness));
            properties.add(new DiagnosticsProperty <Color>("primaryColor", this.primaryColor,
                                                           defaultValue: defaultData.primaryColor));
            properties.add(new EnumProperty <Brightness>("primaryColorBrightness", this.primaryColorBrightness,
                                                         defaultValue: defaultData.primaryColorBrightness));
            properties.add(new DiagnosticsProperty <Color>("accentColor", this.accentColor,
                                                           defaultValue: defaultData.accentColor));
            properties.add(new EnumProperty <Brightness>("accentColorBrightness", this.accentColorBrightness,
                                                         defaultValue: defaultData.accentColorBrightness));
            properties.add(new DiagnosticsProperty <Color>("canvasColor", this.canvasColor,
                                                           defaultValue: defaultData.canvasColor));
            properties.add(new DiagnosticsProperty <Color>("scaffoldBackgroundColor", this.scaffoldBackgroundColor,
                                                           defaultValue: defaultData.scaffoldBackgroundColor));
            properties.add(new DiagnosticsProperty <Color>("bottomAppBarColor", this.bottomAppBarColor,
                                                           defaultValue: defaultData.bottomAppBarColor));
            properties.add(new DiagnosticsProperty <Color>("cardColor", this.cardColor,
                                                           defaultValue: defaultData.cardColor));
            properties.add(new DiagnosticsProperty <Color>("dividerColor", this.dividerColor,
                                                           defaultValue: defaultData.dividerColor));
            properties.add(new DiagnosticsProperty <Color>("highlightColor", this.highlightColor,
                                                           defaultValue: defaultData.highlightColor));
            properties.add(new DiagnosticsProperty <Color>("splashColor", this.splashColor,
                                                           defaultValue: defaultData.splashColor));
            properties.add(new DiagnosticsProperty <Color>("selectedRowColor", this.selectedRowColor,
                                                           defaultValue: defaultData.selectedRowColor));
            properties.add(new DiagnosticsProperty <Color>("unselectedWidgetColor", this.unselectedWidgetColor,
                                                           defaultValue: defaultData.unselectedWidgetColor));
            properties.add(new DiagnosticsProperty <Color>("disabledColor", this.disabledColor,
                                                           defaultValue: defaultData.disabledColor));
            properties.add(new DiagnosticsProperty <ButtonThemeData>("buttonTheme", this.buttonTheme));
            properties.add(new DiagnosticsProperty <Color>("buttonColor", this.buttonColor,
                                                           defaultValue: defaultData.buttonColor));
            properties.add(new DiagnosticsProperty <Color>("secondaryHeaderColor", this.secondaryHeaderColor,
                                                           defaultValue: defaultData.secondaryHeaderColor));
            properties.add(new DiagnosticsProperty <Color>("textSelectionColor", this.textSelectionColor,
                                                           defaultValue: defaultData.textSelectionColor));
            properties.add(new DiagnosticsProperty <Color>("cursorColor", this.cursorColor,
                                                           defaultValue: defaultData.cursorColor));
            properties.add(new DiagnosticsProperty <Color>("textSelectionHandleColor", this.textSelectionHandleColor,
                                                           defaultValue: defaultData.textSelectionHandleColor));
            properties.add(new DiagnosticsProperty <Color>("backgroundColor", this.backgroundColor,
                                                           defaultValue: defaultData.backgroundColor));
            properties.add(new DiagnosticsProperty <Color>("dialogBackgroundColor", this.dialogBackgroundColor,
                                                           defaultValue: defaultData.dialogBackgroundColor));
            properties.add(new DiagnosticsProperty <Color>("indicatorColor", this.indicatorColor,
                                                           defaultValue: defaultData.indicatorColor));
            properties.add(new DiagnosticsProperty <Color>("hintColor", this.hintColor,
                                                           defaultValue: defaultData.hintColor));
            properties.add(new DiagnosticsProperty <Color>("errorColor", this.errorColor,
                                                           defaultValue: defaultData.errorColor));
            properties.add(new DiagnosticsProperty <TextTheme>("textTheme", this.textTheme));
            properties.add(new DiagnosticsProperty <TextTheme>("primaryTextTheme", this.primaryTextTheme));
            properties.add(new DiagnosticsProperty <TextTheme>("accentTextTheme", this.accentTextTheme));
            properties.add(new DiagnosticsProperty <Color>("toggleableActiveColor", this.toggleableActiveColor,
                                                           defaultValue: defaultData.toggleableActiveColor));
            properties.add(new DiagnosticsProperty <IconThemeData>("iconTheme", this.iconTheme));
            properties.add(new DiagnosticsProperty <IconThemeData>("primaryIconTheme", this.primaryIconTheme));
            properties.add(new DiagnosticsProperty <IconThemeData>("accentIconTheme", this.accentIconTheme));
            properties.add(
                new DiagnosticsProperty <MaterialTapTargetSize>("materialTapTargetSize", this.materialTapTargetSize));
            properties.add(new DiagnosticsProperty <ColorScheme>("colorScheme", this.colorScheme,
                                                                 defaultValue: defaultData.colorScheme));
            properties.add(new DiagnosticsProperty <Typography>("typography", this.typography,
                                                                defaultValue: defaultData.typography));
        }
예제 #16
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <SliverGeometry>("geometry", geometry));
 }
예제 #17
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new ObjectFlagProperty <VoidCallback>("onPressed", this.onPressed, ifNull: "disabled"));
     properties.add(new DiagnosticsProperty <ButtonTextTheme?>("textTheme", this.textTheme, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("textColor", this.textColor, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("disabledTextColor", this.disabledTextColor,
                                                    defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("color", this.color, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("disabledColor", this.disabledColor, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("highlightColor", this.highlightColor, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("splashColor", this.splashColor, defaultValue: null));
     properties.add(new DiagnosticsProperty <Brightness?>("colorBrightness", this.colorBrightness,
                                                          defaultValue: null));
     properties.add(new DiagnosticsProperty <EdgeInsets>("padding", this.padding, defaultValue: null));
     properties.add(new DiagnosticsProperty <ShapeBorder>("shape", this.shape, defaultValue: null));
     properties.add(new DiagnosticsProperty <MaterialTapTargetSize?>("materialTapTargetSize",
                                                                     this.materialTapTargetSize, defaultValue: null));
 }
예제 #18
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            properties.add(new FloatProperty("scrollExtent", scrollExtent));
            if (paintExtent > 0.0f)
            {
                properties.add(new FloatProperty("paintExtent", paintExtent,
                                                 unit: visible ? null : " but not painting"));
            }
            else if (paintExtent == 0.0f)
            {
                if (visible)
                {
                    properties.add(new FloatProperty("paintExtent", paintExtent,
                                                     unit: visible ? null : " but visible"));
                }

                properties.add(new FlagProperty("visible", value: visible, ifFalse: "hidden"));
            }
            else
            {
                properties.add(new FloatProperty("paintExtent", paintExtent, tooltip: "!"));
            }

            properties.add(new FloatProperty("paintOrigin", paintOrigin,
                                             defaultValue: 0.0f));
            properties.add(new FloatProperty("layoutExtent", layoutExtent,
                                             defaultValue: paintExtent));
            properties.add(new FloatProperty("maxPaintExtent", maxPaintExtent));
            properties.add(new FloatProperty("hitTestExtent", hitTestExtent,
                                             defaultValue: paintExtent));
            properties.add(new DiagnosticsProperty <bool>("hasVisualOverflow", hasVisualOverflow,
                                                          defaultValue: false));
            properties.add(new FloatProperty("scrollOffsetCorrection", scrollOffsetCorrection,
                                             defaultValue: foundation_.kNullDefaultValue));
            properties.add(new FloatProperty("cacheExtent", cacheExtent,
                                             defaultValue: 0.0f));
        }
예제 #19
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            ThemeData     defaultTheme = ThemeData.fallback();
            ChipThemeData defaultData  = fromDefaults(
                secondaryColor: defaultTheme.primaryColor,
                brightness: defaultTheme.brightness,
                labelStyle: defaultTheme.textTheme.body2
                );

            properties.add(new DiagnosticsProperty <Color>("backgroundColor", this.backgroundColor,
                                                           defaultValue: defaultData.backgroundColor));
            properties.add(new DiagnosticsProperty <Color>("deleteIconColor", this.deleteIconColor,
                                                           defaultValue: defaultData.deleteIconColor));
            properties.add(new DiagnosticsProperty <Color>("disabledColor", this.disabledColor,
                                                           defaultValue: defaultData.disabledColor));
            properties.add(new DiagnosticsProperty <Color>("selectedColor", this.selectedColor,
                                                           defaultValue: defaultData.selectedColor));
            properties.add(new DiagnosticsProperty <Color>("secondarySelectedColor", this.secondarySelectedColor,
                                                           defaultValue: defaultData.secondarySelectedColor));
            properties.add(new DiagnosticsProperty <EdgeInsets>("labelPadding", this.labelPadding,
                                                                defaultValue: defaultData.labelPadding));
            properties.add(
                new DiagnosticsProperty <EdgeInsets>("padding", this.padding, defaultValue: defaultData.padding));
            properties.add(new DiagnosticsProperty <ShapeBorder>("shape", this.shape, defaultValue: defaultData.shape));
            properties.add(new DiagnosticsProperty <TextStyle>("labelStyle", this.labelStyle,
                                                               defaultValue: defaultData.labelStyle));
            properties.add(new DiagnosticsProperty <TextStyle>("secondaryLabelStyle", this.secondaryLabelStyle,
                                                               defaultValue: defaultData.secondaryLabelStyle));
            properties.add(new EnumProperty <Brightness?>("brightness", this.brightness,
                                                          defaultValue: defaultData.brightness));
            properties.add(new FloatProperty("elevation", this.elevation, defaultValue: defaultData.elevation));
            properties.add(new FloatProperty("pressElevation", this.pressElevation,
                                             defaultValue: defaultData.pressElevation));
        }
예제 #20
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(
         new DiagnosticsProperty <TextEditingController>("controller", this.controller, defaultValue: null));
     properties.add(new DiagnosticsProperty <FocusNode>("focusNode", this.focusNode, defaultValue: null));
     properties.add(new DiagnosticsProperty <bool?>("enabled", this.enabled, defaultValue: null));
     properties.add(new DiagnosticsProperty <InputDecoration>("decoration", this.decoration, defaultValue: new InputDecoration()));
     properties.add(new DiagnosticsProperty <TextInputType>("keyboardType", this.keyboardType,
                                                            defaultValue: TextInputType.text));
     properties.add(new DiagnosticsProperty <TextStyle>("style", this.style, defaultValue: null));
     properties.add(new DiagnosticsProperty <bool>("autofocus", this.autofocus, defaultValue: false));
     properties.add(new DiagnosticsProperty <bool>("obscureText", this.obscureText, defaultValue: false));
     properties.add(new DiagnosticsProperty <bool>("autocorrect", this.autocorrect, defaultValue: true));
     properties.add(new IntProperty("maxLines", this.maxLines, defaultValue: 1));
     properties.add(new IntProperty("maxLength", this.maxLength, defaultValue: null));
     properties.add(new FlagProperty("maxLengthEnforced", value: this.maxLengthEnforced, defaultValue: true,
                                     ifFalse: "maxLength not enforced"));
     properties.add(new EnumProperty <TextInputAction?>("textInputAction", this.textInputAction, defaultValue: null));
     properties.add(new EnumProperty <TextCapitalization>("textCapitalization", this.textCapitalization, defaultValue: TextCapitalization.none));
     properties.add(new EnumProperty <TextAlign>("textAlign", this.textAlign, defaultValue: TextAlign.left));
     properties.add(new EnumProperty <TextDirection>("textDirection", this.textDirection, defaultValue: null));
     properties.add(new FloatProperty("cursorWidth", this.cursorWidth, defaultValue: 2.0f));
     properties.add(new DiagnosticsProperty <Radius>("cursorRadius", this.cursorRadius, defaultValue: null));
     properties.add(new DiagnosticsProperty <Color>("cursorColor", this.cursorColor, defaultValue: null));
     properties.add(new DiagnosticsProperty <Brightness?>("keyboardAppearance", this.keyboardAppearance, defaultValue: null));
     properties.add(new DiagnosticsProperty <EdgeInsets>("scrollPadding", this.scrollPadding, defaultValue: EdgeInsets.all(20.0f)));
     properties.add(new FlagProperty("selectionEnabled", value: this.selectionEnabled, defaultValue: true, ifFalse: "selection disabled"));
 }
예제 #21
0

        
예제 #22
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <Animation <float> >("opacity", opacity));
     properties.add(new FlagProperty("alwaysIncludeSemantics", value: alwaysIncludeSemantics, ifTrue: "alwaysIncludeSemantics"));
 }
예제 #23
0

        
예제 #24
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new PercentProperty("value", value ?? 0.0f, showName: false,
                                        ifNull: "<indeterminate>"));
 }
예제 #25
0

        
예제 #26
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new FlagProperty("enabled", value: this.enabled, ifFalse: "disabled"));
 }
예제 #27
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);

            List <DiagnosticsNode> styles = new List <DiagnosticsNode>();

            styles.Add(new DiagnosticsProperty <Color>("color", this.color,
                                                       defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new StringProperty("family", this.fontFamily, defaultValue: Diagnostics.kNullDefaultValue,
                                          quoted: false));
            styles.Add(new DiagnosticsProperty <float?>("size", this.fontSize,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
            string weightDescription = "";

            if (this.fontWeight != null)
            {
                weightDescription = this.fontWeight.weightValue.ToString();
            }

            styles.Add(new DiagnosticsProperty <FontWeight>(
                           "weight", this.fontWeight,
                           description: weightDescription,
                           defaultValue: Diagnostics.kNullDefaultValue
                           ));
            styles.Add(new EnumProperty <FontStyle?>("style", this.fontStyle,
                                                     defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new DiagnosticsProperty <float?>("letterSpacing", this.letterSpacing,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new DiagnosticsProperty <float?>("wordSpacing", this.wordSpacing,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new EnumProperty <TextBaseline?>("baseline", this.textBaseline,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new DiagnosticsProperty <float?>("height", this.height,
                                                        defaultValue: Diagnostics.kNullDefaultValue));
            styles.Add(new StringProperty("background", this.background == null ? null : this.background.ToString(),
                                          defaultValue: Diagnostics.kNullDefaultValue, quoted: false));
            if (this.decoration != null)
            {
                List <string> decorationDescription = new List <string>();
                if (this.decorationStyle != null)
                {
                    decorationDescription.Add(this.decorationStyle.ToString());
                }

                styles.Add(new DiagnosticsProperty <Color>("decorationColor", this.decorationColor,
                                                           defaultValue: Diagnostics.kNullDefaultValue,
                                                           level: DiagnosticLevel.fine));
                if (this.decorationColor != null)
                {
                    decorationDescription.Add(this.decorationColor.ToString());
                }

                styles.Add(new DiagnosticsProperty <TextDecoration>("decoration", this.decoration,
                                                                    defaultValue: Diagnostics.kNullDefaultValue,
                                                                    level: DiagnosticLevel.hidden));
                if (this.decoration != null)
                {
                    decorationDescription.Add("$decoration");
                }

                D.assert(decorationDescription.isNotEmpty);
                styles.Add(new MessageProperty("decoration", string.Join(" ", decorationDescription.ToArray())));
            }

            bool styleSpecified = styles.Any((DiagnosticsNode n) => !n.isFiltered(DiagnosticLevel.info));

            properties.add(new DiagnosticsProperty <bool>("inherit", this.inherit,
                                                          level: (!styleSpecified && this.inherit) ? DiagnosticLevel.fine : DiagnosticLevel.info));
            foreach (var style in styles)
            {
                properties.add(style);
            }

            if (!styleSpecified)
            {
                properties.add(new FlagProperty("inherit", value: this.inherit, ifTrue: "<all styles inherited>",
                                                ifFalse: "<no style specified>"));
            }
        }
예제 #28
0
        public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
        {
            base.debugFillProperties(properties);
            TextTheme defaultTheme = new Typography().black;

            properties.add(new DiagnosticsProperty <TextStyle>("display4", this.display4,
                                                               defaultValue: defaultTheme.display4));
            properties.add(new DiagnosticsProperty <TextStyle>("display3", this.display3,
                                                               defaultValue: defaultTheme.display3));
            properties.add(new DiagnosticsProperty <TextStyle>("display2", this.display2,
                                                               defaultValue: defaultTheme.display2));
            properties.add(new DiagnosticsProperty <TextStyle>("display1", this.display1,
                                                               defaultValue: defaultTheme.display1));
            properties.add(new DiagnosticsProperty <TextStyle>("headline", this.headline,
                                                               defaultValue: defaultTheme.headline));
            properties.add(new DiagnosticsProperty <TextStyle>("title", this.title, defaultValue: defaultTheme.title));
            properties.add(
                new DiagnosticsProperty <TextStyle>("subhead", this.subhead, defaultValue: defaultTheme.subhead));
            properties.add(new DiagnosticsProperty <TextStyle>("body2", this.body2, defaultValue: defaultTheme.body2));
            properties.add(new DiagnosticsProperty <TextStyle>("body1", this.body1, defaultValue: defaultTheme.body1));
            properties.add(
                new DiagnosticsProperty <TextStyle>("caption", this.caption, defaultValue: defaultTheme.caption));
            properties.add(
                new DiagnosticsProperty <TextStyle>("button", this.button, defaultValue: defaultTheme.button));
            properties.add(new DiagnosticsProperty <TextStyle>("subtitle)", this.subtitle,
                                                               defaultValue: defaultTheme.subtitle));
            properties.add(new DiagnosticsProperty <TextStyle>("overline", this.overline,
                                                               defaultValue: defaultTheme.overline));
        }
예제 #29
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
 {
     base.debugFillProperties(properties);
     properties.add(new DiagnosticsProperty <object>("tag", this.tag));
 }
예제 #30
0
 public override void debugFillProperties(DiagnosticPropertiesBuilder description)
 {
     base.debugFillProperties(description);
     description.add(new DiagnosticsProperty <ImageStream>("stream", this._imageStream));
     description.add(new DiagnosticsProperty <ImageInfo>("pixels", this._imageInfo));
 }