public FlexibleSpaceBar( Key key = null, Widget title = null, Widget background = null, bool?centerTitle = null, CollapseMode collapseMode = CollapseMode.parallax ) : base(key: key) { this.title = title; this.background = background; this.centerTitle = centerTitle; this.collapseMode = collapseMode; }
public override int GetHashCode() { // Use a different bit for bool fields: bool.GetHashCode() will return 0 (false) or 1 (true). So we would // end up having the same hash code for e.g. two instances where one has only noCache set and the other // only noStore. var result = Visible.GetHashCode(); result = result ^ (Mode.GetHashCode() ^ 1); // power of two for every other field(^1, ^2, ^4, ^8, ^16, ...) result = result ^ (CollapseMode.GetHashCode() ^ 2); return(result); }
public static string GetName(CollapseMode type) { string result = String.Empty; switch (type) { case CollapseMode.Default: result = "default"; break; case CollapseMode.Mini: result = "mini"; break; } return result; }
public static string GetName(CollapseMode type) { string result = String.Empty; switch (type) { case CollapseMode.Default: result = "default"; break; case CollapseMode.Mini: result = "mini"; break; } return(result); }
public FlexibleSpaceBar( Key key = null, Widget title = null, Widget background = null, bool?centerTitle = null, EdgeInsets titlePadding = null, CollapseMode collapseMode = CollapseMode.parallax, List <StretchMode> stretchModes = null ) : base(key: key) { this.title = title; this.background = background; this.centerTitle = centerTitle; this.titlePadding = titlePadding; this.collapseMode = collapseMode; this.stretchModes = stretchModes ?? new List <StretchMode> { StretchMode.zoomBackground }; }
/// <summary> /// By default, collapsible regions are collapsed by clicking the expand/collapse tool button that renders into the region's title bar. Optionally, when collapseMode is set to 'mini' the region's split bar will also display a small collapse button in the center of the bar. In 'mini' mode the region will collapse to a thinner bar than in normal mode. By default collapseMode is undefined, and the only two supported values are undefined and 'mini'. Note that if a collapsible region does not have a title bar, then collapseMode must be set to 'mini' in order for the region to be collapsible by the user as the tool button will not be rendered. /// </summary> public virtual BorderLayoutRegion.Builder CollapseMode(CollapseMode collapseMode) { this.ToComponent().CollapseMode = collapseMode; return(this as BorderLayoutRegion.Builder); }
/// <summary> /// When not a direct child item of a border layout, then the Panel's header remains visible, and the body is collapsed to zero dimensions. If the Panel has no header, then a new header (orientated correctly depending on the collapseDirection) will be inserted to show a the title and a re-expand tool. /// </summary> public virtual TBuilder CollapseMode(CollapseMode collapseMode) { this.ToComponent().CollapseMode = collapseMode; return(this as TBuilder); }