|
|
|
|
|
|
Widget title = null, |
|
|
|
Widget background = null, |
|
|
|
bool? centerTitle = null, |
|
|
|
EdgeInsets titlePadding = null, |
|
|
|
this.titlePadding = titlePadding; |
|
|
|
this.collapseMode = collapseMode; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public readonly bool? centerTitle; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public readonly EdgeInsets titlePadding; |
|
|
|
|
|
|
|
public static Widget createSettings( |
|
|
|
float? toolbarOpacity = null, |
|
|
|
|
|
|
color: titleStyle.color.withOpacity(toolbarOpacity)); |
|
|
|
|
|
|
|
bool effectiveCenterTitle = this._getEffectiveCenterTitle(theme).Value; |
|
|
|
EdgeInsets padding = this.widget.titlePadding ?? |
|
|
|
EdgeInsets.only( |
|
|
|
left: effectiveCenterTitle ? 0.0f : 72.0f, |
|
|
|
bottom: 16.0f |
|
|
|
); |
|
|
|
padding: EdgeInsets.fromLTRB( |
|
|
|
effectiveCenterTitle ? 0.0f : 72.0f, |
|
|
|
0f, |
|
|
|
0f, |
|
|
|
16.0f), |
|
|
|
padding: padding, |
|
|
|
child: new Transform( |
|
|
|
alignment: titleAlignment, |
|
|
|
transform: scaleTransform, |
|
|
|