Exemplo n.º 1
0
        public PlaceholderSpan(
            TextBaseline baseline          = TextBaseline.alphabetic,
            TextStyle style                = null,
            PlaceholderAlignment alignment = PlaceholderAlignment.bottom

            ) : base(style: style)
        {
            this.baseline  = baseline;
            this.alignment = alignment;
        }
Exemplo n.º 2
0
 public PlaceholderDimensions(
     Size size,
     PlaceholderAlignment alignment,
     TextBaseline?baseline,
     float baselineOffset
     )
 {
     D.assert(size != null);
     this.size           = size;
     this.alignment      = alignment;
     this.baseline       = baseline;
     this.baselineOffset = baselineOffset;
 }
Exemplo n.º 3
0
 public WidgetSpan(
     Widget child,
     TextBaseline?baseline          = null,
     TextStyle style                = null,
     PlaceholderAlignment alignment = PlaceholderAlignment.bottom
     ) : base(
         alignment: alignment,
         baseline: baseline,
         style: style
         )
 {
     D.assert(child != null);
     D.assert(baseline != null || !(
                  (alignment == PlaceholderAlignment.aboveBaseline) ||
                  (alignment == PlaceholderAlignment.belowBaseline) ||
                  (alignment == PlaceholderAlignment.baseline)
                  ));
     this.child = child;
 }