浏览代码

stash changes

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
2e715875
共有 4 个文件被更改,包括 774 次插入370 次删除
  1. 325
      com.unity.uiwidgets/Runtime/material/tooltip.cs
  2. 563
      com.unity.uiwidgets/Runtime/material/typography.cs
  3. 58
      com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs
  4. 198
      com.unity.uiwidgets/Runtime/material/tooltip_theme.cs

325
com.unity.uiwidgets/Runtime/material/tooltip.cs


using System;
using uiwidgets;
using Unity.UIWidgets.animation;
using Unity.UIWidgets.async;
using Unity.UIWidgets.async2;

using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using TextStyle = Unity.UIWidgets.painting.TextStyle;
namespace Unity.UIWidgets.material {
static class TooltipUtils {

public Tooltip(
Key key = null,
string message = null,
float height = 32.0f,
float? height = null,
float verticalOffset = 24.0f,
bool preferBelow = true,
EdgeInsets margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,
Decoration decoration = null,
TextStyle textStyle = null,
TimeSpan? waitDuration = null,
TimeSpan? showDuration = null,
this.padding = padding ?? EdgeInsets.symmetric(horizontal: 16.0f);
this.verticalOffset = verticalOffset;
this.preferBelow = preferBelow;
this.padding = padding ;
this.margin = margin;
this.verticalOffset = verticalOffset ;
this.preferBelow = preferBelow ;
this.excludeFromSemantics = excludeFromSemantics;
this.decoration = decoration;
this.textStyle = textStyle;
this.waitDuration = waitDuration;
this.showDuration = showDuration;
this.child = child;
}

public readonly float height;
public readonly float? height;
public readonly EdgeInsets margin;
public readonly float? verticalOffset;
public readonly float verticalOffset;
public readonly bool? preferBelow;
public readonly bool preferBelow;
public bool? excludeFromSemantics ;
public Decoration decoration ;
public TextStyle textStyle ;
public TimeSpan? waitDuration ;
public TimeSpan? showDuration ;
public override State createState() {
return new _TooltipState();
}

properties.add(new StringProperty("message", message, showName: false));
properties.add(new FloatProperty("vertical offset", verticalOffset));
properties.add(new FlagProperty("position", value: preferBelow, ifTrue: "below", ifFalse: "above",
showName: true));
properties.add( new StringProperty("message", message, showName: false));
properties.add( new FloatProperty("height", height, defaultValue: null));
properties.add( new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: null));
properties.add( new DiagnosticsProperty<EdgeInsetsGeometry>("margin", margin, defaultValue: null));
properties.add( new FloatProperty("vertical offset", verticalOffset, defaultValue: null));
properties.add( new FlagProperty("position", value: preferBelow, ifTrue: "below", ifFalse: "above", showName: true, defaultValue: null));
properties.add( new FlagProperty("semantics", value: excludeFromSemantics, ifTrue: "excluded", showName: true, defaultValue: null));
properties.add( new DiagnosticsProperty<TimeSpan?>("wait duration", waitDuration, defaultValue: null));
properties.add( new DiagnosticsProperty<TimeSpan?>("show duration", showDuration, defaultValue: null));
static float _defaultTooltipHeight = 32.0f;
static float _defaultVerticalOffset = 24.0f;
static bool _defaultPreferBelow = true;
static EdgeInsets _defaultPadding = EdgeInsets.symmetric(horizontal: 16.0f);
static EdgeInsets _defaultMargin = EdgeInsets.all(0.0f);
static TimeSpan _fadeInDuration = new TimeSpan(0,0,0,0, 150);
static TimeSpan _fadeOutDuration =new TimeSpan(0,0,0,0, 75);
static TimeSpan _defaultShowDuration =new TimeSpan(0,0,0,0,1500);
static TimeSpan _defaultWaitDuration =new TimeSpan(0,0,0,0, 0);
static bool _defaultExcludeFromSemantics = false;
float height;
EdgeInsets padding;
EdgeInsets margin;
Decoration decoration;
TextStyle textStyle;
float verticalOffset;
bool preferBelow;
bool excludeFromSemantics;
Timer _timer;
Timer _hideTimer;
Timer _showTimer;
TimeSpan showDuration;
TimeSpan waitDuration;
bool _mouseIsConnected;
bool _longPressActivated = false;
_controller = new AnimationController(duration: TooltipUtils._kFadeDuration, vsync: this);
_mouseIsConnected = RendererBinding.instance.mouseTracker.mouseIsConnected;
_controller = new AnimationController(duration: _fadeInDuration, reverseDuration: _fadeOutDuration, vsync: this);
RendererBinding.instance.mouseTracker.addListener(_handleMouseTrackerChange);
GestureBinding.instance.pointerRouter.addGlobalRoute(_handlePointerEvent);
}
public void _handleMouseTrackerChange() {
if (!mounted) {
return;
}
bool mouseIsConnected = RendererBinding.instance.mouseTracker.mouseIsConnected;
if (mouseIsConnected != _mouseIsConnected) {
setState(()=>{
_mouseIsConnected = mouseIsConnected;
});
}
_hideTooltip(immediately: true);
}
}
void _hideTooltip( bool immediately = false ) {
_showTimer?.cancel();
_showTimer = null;
if (immediately) {
return;
if (_longPressActivated) {
_hideTimer = _hideTimer ?? Timer.create(showDuration, () => {
_controller.reverse();
});
} else {
_controller.reverse();
}
_longPressActivated = false;
void _showTooltip( bool immediately = false ) {
_hideTimer?.cancel();
_hideTimer = null;
if (immediately) {
ensureTooltipVisible();
return;
}
_showTimer = _showTimer ?? Timer.create(waitDuration, () => {
ensureTooltipVisible();
});
}
_showTimer?.cancel();
_showTimer = null;
_timer?.cancel();
_timer = null;
_hideTimer?.cancel();
_hideTimer = null;
RenderBox box = (RenderBox) this.context.findRenderObject();
_createNewEntry();
_controller.forward();
return true;
}
void _createNewEntry() {
RenderBox box = context.findRenderObject() as RenderBox;
Widget overlay = new _TooltipOverlay(
message: widget.message,
height: widget.height,
padding: widget.padding,
animation: new CurvedAnimation(
parent: _controller,
curve: Curves.fastOutSlowIn),
target: target,
verticalOffset: widget.verticalOffset,
preferBelow: widget.preferBelow
Widget overlay = new Directionality(
textDirection: Directionality.of(context),
child: new _TooltipOverlay(
message: widget.message,
height: height,
padding: padding,
margin: margin,
decoration: decoration,
textStyle: textStyle,
animation: new CurvedAnimation(
parent: _controller,
curve: Curves.fastOutSlowIn
),
target: target,
verticalOffset: verticalOffset,
preferBelow: preferBelow
)
Overlay.of(this.context, debugRequiredFor: widget).insert(_entry);
GestureBinding.instance.pointerRouter.addGlobalRoute(_handlePointerEvent);
_controller.forward();
return true;
Overlay.of(context, debugRequiredFor: widget).insert(_entry);
D.assert(_entry != null);
_timer?.cancel();
_timer = null;
_entry.remove();
_hideTimer?.cancel();
_hideTimer = null;
_showTimer?.cancel();
_showTimer = null;
_entry?.remove();
GestureBinding.instance.pointerRouter.removeGlobalRoute(_handlePointerEvent);
D.assert(_entry != null);
if (pEvent is PointerUpEvent || pEvent is PointerCancelEvent) {
_timer = _timer ?? Timer.create(TooltipUtils._kShowDuration,
() => _controller.reverse());
if (_entry == null) {
return;
else if (pEvent is PointerDownEvent) {
_controller.reverse();
if (pEvent is PointerUpEvent || pEvent is PointerCancelEvent) {
_hideTooltip();
} else if (pEvent is PointerDownEvent) {
_hideTooltip(immediately: true);
_controller.reverse();
_hideTooltip(immediately: true);
}
base.deactivate();

GestureBinding.instance.pointerRouter.removeGlobalRoute(_handlePointerEvent);
RendererBinding.instance.mouseTracker.removeListener(_handleMouseTrackerChange);
if (_entry != null) {
_removeEntry();
}

}
void _handleLongPress() {
_longPressActivated = true;
bool tooltipCreated = ensureTooltipVisible();
if (tooltipCreated) {
Feedback.forLongPress(context);

return new GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: _handleLongPress,
child: widget.child
ThemeData theme = Theme.of(context);
TooltipThemeData tooltipTheme = TooltipTheme.of(context);
TextStyle defaultTextStyle;
BoxDecoration defaultDecoration;
if (theme.brightness == Brightness.dark) {
defaultTextStyle = theme.textTheme.bodyText2.copyWith(
color: Colors.black
);
defaultDecoration = new BoxDecoration(
color: Colors.white.withOpacity(0.9f),
borderRadius: BorderRadius.all(Radius.circular(4))
);
} else {
defaultTextStyle = theme.textTheme.bodyText2.copyWith(
color: Colors.white
);
defaultDecoration = new BoxDecoration(
color: Colors.grey[700].withOpacity(0.9f),
borderRadius: BorderRadius.all(Radius.circular(4))
);
}
height = widget.height ?? tooltipTheme.height ?? _defaultTooltipHeight;
padding = widget.padding ?? tooltipTheme.padding ?? _defaultPadding;
margin = widget.margin ?? tooltipTheme.margin ?? _defaultMargin;
verticalOffset = widget.verticalOffset ?? tooltipTheme.verticalOffset ?? _defaultVerticalOffset;
preferBelow = widget.preferBelow ?? tooltipTheme.preferBelow ?? _defaultPreferBelow;
excludeFromSemantics = widget.excludeFromSemantics ?? tooltipTheme.excludeFromSemantics ?? _defaultExcludeFromSemantics;
decoration = widget.decoration ?? tooltipTheme.decoration ?? defaultDecoration;
textStyle = widget.textStyle ?? tooltipTheme.textStyle ?? defaultTextStyle;
waitDuration = widget.waitDuration ?? tooltipTheme.waitDuration ?? _defaultWaitDuration;
showDuration = widget.showDuration ?? tooltipTheme.showDuration ?? _defaultShowDuration;
Widget result = new GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPress: _handleLongPress,
child: widget.child
if (_mouseIsConnected) {
result = new MouseRegion(
onEnter: (PointerEnterEvent _event) => _showTooltip(),
onExit: (PointerExitEvent _event) => _hideTooltip(),
child: result
);
}
return result;
}
}

string message = null,
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
Decoration decoration = null,
TextStyle textStyle = null,
Animation<float> animation = null,
Offset target = null,
float? verticalOffset = null,

this.height = height;
this.padding = padding;
this.margin = margin;
this.decoration = decoration;
this.textStyle = textStyle;
this.animation = animation;
this.target = target;
this.verticalOffset = verticalOffset;

public readonly EdgeInsets padding;
public readonly EdgeInsets margin;
public readonly Decoration decoration;
public readonly TextStyle textStyle;
public readonly Animation<float> animation;
public readonly Offset target;

public override Widget build(BuildContext context) {
ThemeData theme = Theme.of(context);
ThemeData darkTheme = new ThemeData(
brightness: Brightness.dark,
textTheme: theme.brightness == Brightness.dark ? theme.textTheme : theme.primaryTextTheme
);
return Positioned.fill(
child: new IgnorePointer(
child: new CustomSingleChildLayout(

preferBelow: preferBelow),
child: new FadeTransition(
opacity: animation,
child: new Opacity(
opacity: 0.9f,
child: new ConstrainedBox(
constraints: new BoxConstraints(minHeight: height ?? 0.0f),
child: new ConstrainedBox(
constraints: new BoxConstraints(minHeight: height.Value),
child: new DefaultTextStyle(
style: Theme.of(context).textTheme.bodyText2,
decoration: new BoxDecoration(
color: darkTheme.backgroundColor,
borderRadius: BorderRadius.circular(2.0f)),
decoration: decoration,
margin: margin,
child: new Text(message, style: darkTheme.textTheme.body1)
)
)
child: new Text(message, style: textStyle)
)
))
)
)
)
)

563
com.unity.uiwidgets/Runtime/material/typography.cs


using System.Collections.Generic;
using uiwidgets;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.ui;

public class Typography : Diagnosticable {
public Typography(
Typography(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,

black = black ?? blackMountainView;
white = white ?? whiteMountainView;
englishLike = englishLike ?? englishLike2014;
dense = dense ?? dense2014;
tall = tall ?? tall2014;
D.assert(black != null);
D.assert(white != null);
D.assert(englishLike != null);

this.tall = tall;
}
public static Typography create(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,
TextTheme dense = null,
TextTheme tall = null
) {
return material2014(black, white, englishLike, dense, tall);
}
public static Typography material2014(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,
TextTheme dense = null,
TextTheme tall = null
) {
return Typography._withPlatform(
black, white,
englishLike ?? englishLike2014,
dense ?? dense2014,
tall ?? tall2014
);
}
public static Typography material2018(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,
TextTheme dense = null,
TextTheme tall = null
) {
return Typography._withPlatform(
black, white,
englishLike ?? englishLike2018,
dense ?? dense2018,
tall ?? tall2018
);
}
internal static Typography _withPlatform(
TextTheme black = null,
TextTheme white = null,
TextTheme englishLike = null,
TextTheme dense = null,
TextTheme tall = null
) {
D.assert(englishLike != null);
D.assert(dense != null);
D.assert(tall != null);
//force to use Android color
black = black ?? blackMountainView;
white = white ?? whiteMountainView;
return new Typography(
black, white, englishLike, dense, tall);
}
public readonly TextTheme black;
public readonly TextTheme white;

public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
Typography defaultTypography = new Typography();
Typography defaultTypography = Typography.material2014();
properties.add(
new DiagnosticsProperty<TextTheme>("black", black, defaultValue: defaultTypography.black));
properties.add(

}
public static readonly TextTheme blackMountainView = new TextTheme(
display4: new TextStyle(debugLabel: "blackMountainView display4", fontFamily: "Roboto", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display3: new TextStyle(debugLabel: "blackMountainView display3", fontFamily: "Roboto", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display2: new TextStyle(debugLabel: "blackMountainView display2", fontFamily: "Roboto", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display1: new TextStyle(debugLabel: "blackMountainView display1", fontFamily: "Roboto", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
headline: new TextStyle(debugLabel: "blackMountainView headline", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
title: new TextStyle(debugLabel: "blackMountainView title", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
subhead: new TextStyle(debugLabel: "blackMountainView subhead", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
body2: new TextStyle(debugLabel: "blackMountainView body2", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
body1: new TextStyle(debugLabel: "blackMountainView body1", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
caption: new TextStyle(debugLabel: "blackMountainView caption", fontFamily: "Roboto", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
button: new TextStyle(debugLabel: "blackMountainView button", fontFamily: "Roboto", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
subtitle: new TextStyle(debugLabel: "blackMountainView subtitle", fontFamily: "Roboto", inherit: true,
color: Colors.black, decoration: TextDecoration.none),
overline: new TextStyle(debugLabel: "blackMountainView overline", fontFamily: "Roboto", inherit: true,
color: Colors.black, decoration: TextDecoration.none)
headline1 : new TextStyle(debugLabel: "blackMountainView headline1", fontFamily: "Roboto", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "blackMountainView headline2", fontFamily: "Roboto", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "blackMountainView headline3", fontFamily: "Roboto", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "blackMountainView headline4", fontFamily: "Roboto", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "blackMountainView headline5", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "blackMountainView headline6", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "blackMountainView bodyText1", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "blackMountainView bodyText2", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "blackMountainView subtitle1", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "blackMountainView subtitle2", fontFamily: "Roboto", inherit: true, color: Colors.black, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "blackMountainView caption", fontFamily: "Roboto", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "blackMountainView button", fontFamily: "Roboto", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "blackMountainView overline", fontFamily: "Roboto", inherit: true, color: Colors.black, decoration: TextDecoration.none)
display4: new TextStyle(debugLabel: "whiteMountainView display4", fontFamily: "Roboto", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display3: new TextStyle(debugLabel: "whiteMountainView display3", fontFamily: "Roboto", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display2: new TextStyle(debugLabel: "whiteMountainView display2", fontFamily: "Roboto", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display1: new TextStyle(debugLabel: "whiteMountainView display1", fontFamily: "Roboto", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
headline: new TextStyle(debugLabel: "whiteMountainView headline", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
title: new TextStyle(debugLabel: "whiteMountainView title", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
subhead: new TextStyle(debugLabel: "whiteMountainView subhead", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
body2: new TextStyle(debugLabel: "whiteMountainView body2", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
body1: new TextStyle(debugLabel: "whiteMountainView body1", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
caption: new TextStyle(debugLabel: "whiteMountainView caption", fontFamily: "Roboto", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
button: new TextStyle(debugLabel: "whiteMountainView button", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
subtitle: new TextStyle(debugLabel: "whiteMountainView subtitle", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
overline: new TextStyle(debugLabel: "whiteMountainView overline", fontFamily: "Roboto", inherit: true,
color: Colors.white, decoration: TextDecoration.none)
headline1 : new TextStyle(debugLabel: "whiteMountainView headline1", fontFamily: "Roboto", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "whiteMountainView headline2", fontFamily: "Roboto", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "whiteMountainView headline3", fontFamily: "Roboto", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "whiteMountainView headline4", fontFamily: "Roboto", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "whiteMountainView headline5", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "whiteMountainView headline6", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "whiteMountainView bodyText1", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "whiteMountainView bodyText2", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "whiteMountainView subtitle1", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "whiteMountainView subtitle2", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "whiteMountainView caption", fontFamily: "Roboto", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "whiteMountainView button", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "whiteMountainView overline", fontFamily: "Roboto", inherit: true, color: Colors.white, decoration: TextDecoration.none)
public static readonly TextTheme blackCupertino = new TextTheme(
display4: new TextStyle(debugLabel: "blackCupertino display4", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display3: new TextStyle(debugLabel: "blackCupertino display3", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display2: new TextStyle(debugLabel: "blackCupertino display2", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
display1: new TextStyle(debugLabel: "blackCupertino display1", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
headline: new TextStyle(debugLabel: "blackCupertino headline", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
title: new TextStyle(debugLabel: "blackCupertino title", fontFamily: ".SF UI Display", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
subhead: new TextStyle(debugLabel: "blackCupertino subhead", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
body2: new TextStyle(debugLabel: "blackCupertino body2", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
body1: new TextStyle(debugLabel: "blackCupertino body1", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
caption: new TextStyle(debugLabel: "blackCupertino caption", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black54, decoration: TextDecoration.none),
button: new TextStyle(debugLabel: "blackCupertino button", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black87, decoration: TextDecoration.none),
subtitle: new TextStyle(debugLabel: "blackCupertino subtitle", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black, decoration: TextDecoration.none),
overline: new TextStyle(debugLabel: "blackCupertino overline", fontFamily: ".SF UI Text", inherit: true,
color: Colors.black, decoration: TextDecoration.none)
);
public static readonly TextTheme blackRedmond = new TextTheme(
headline1 : new TextStyle(debugLabel: "blackRedmond headline1", fontFamily: "Segoe UI", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "blackRedmond headline2", fontFamily: "Segoe UI", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "blackRedmond headline3", fontFamily: "Segoe UI", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "blackRedmond headline4", fontFamily: "Segoe UI", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "blackRedmond headline5", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "blackRedmond headline6", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "blackRedmond bodyText1", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "blackRedmond bodyText2", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "blackRedmond subtitle1", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "blackRedmond subtitle2", fontFamily: "Segoe UI", inherit: true, color: Colors.black, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "blackRedmond caption", fontFamily: "Segoe UI", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "blackRedmond button", fontFamily: "Segoe UI", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "blackRedmond overline", fontFamily: "Segoe UI", inherit: true, color: Colors.black, decoration: TextDecoration.none)
);
public static readonly TextTheme whiteRedmond = new TextTheme(
headline1 : new TextStyle(debugLabel: "whiteRedmond headline1", fontFamily: "Segoe UI", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "whiteRedmond headline2", fontFamily: "Segoe UI", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "whiteRedmond headline3", fontFamily: "Segoe UI", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "whiteRedmond headline4", fontFamily: "Segoe UI", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "whiteRedmond headline5", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "whiteRedmond headline6", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "whiteRedmond bodyText1", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "whiteRedmond bodyText2", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "whiteRedmond subtitle1", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "whiteRedmond subtitle2", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "whiteRedmond caption", fontFamily: "Segoe UI", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "whiteRedmond button", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "whiteRedmond overline", fontFamily: "Segoe UI", inherit: true, color: Colors.white, decoration: TextDecoration.none)
);
static readonly List<string> _helsinkiFontFallbacks = new List<string>(){"Ubuntu", "Cantarell", "DejaVu Sans", "Liberation Sans", "Arial"};
public static readonly TextTheme blackHelsinki = new TextTheme(
headline1 : new TextStyle(debugLabel: "blackHelsinki headline1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "blackHelsinki headline2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "blackHelsinki headline3", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "blackHelsinki headline4", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "blackHelsinki headline5", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "blackHelsinki headline6", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "blackHelsinki bodyText1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "blackHelsinki bodyText2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "blackHelsinki subtitle1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "blackHelsinki subtitle2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "blackHelsinki caption", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black54, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "blackHelsinki button", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black87, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "blackHelsinki overline", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.black, decoration: TextDecoration.none)
);
public static readonly TextTheme whiteHelsinki = new TextTheme(
headline1 : new TextStyle(debugLabel: "whiteHelsinki headline1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "whiteHelsinki headline2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "whiteHelsinki headline3", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "whiteHelsinki headline4", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "whiteHelsinki headline5", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "whiteHelsinki headline6", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "whiteHelsinki bodyText1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "whiteHelsinki bodyText2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "whiteHelsinki subtitle1", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "whiteHelsinki subtitle2", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "whiteHelsinki caption", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white70, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "whiteHelsinki button", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "whiteHelsinki overline", fontFamily: "Roboto", fontFamilyFallback: _helsinkiFontFallbacks, inherit: true, color: Colors.white, decoration: TextDecoration.none)
);
public static readonly TextTheme blackCupertino = new TextTheme(
headline1 : new TextStyle(debugLabel: "blackCupertino headline1", fontFamily: ".SF UI Display", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "blackCupertino headline2", fontFamily: ".SF UI Display", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "blackCupertino headline3", fontFamily: ".SF UI Display", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "blackCupertino headline4", fontFamily: ".SF UI Display", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "blackCupertino headline5", fontFamily: ".SF UI Display", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "blackCupertino headline6", fontFamily: ".SF UI Display", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "blackCupertino bodyText1", fontFamily: ".SF UI Text", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "blackCupertino bodyText2", fontFamily: ".SF UI Text", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "blackCupertino subtitle1", fontFamily: ".SF UI Text", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "blackCupertino subtitle2", fontFamily: ".SF UI Text", inherit: true, color: Colors.black, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "blackCupertino caption", fontFamily: ".SF UI Text", inherit: true, color: Colors.black54, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "blackCupertino button", fontFamily: ".SF UI Text", inherit: true, color: Colors.black87, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "blackCupertino overline", fontFamily: ".SF UI Text", inherit: true, color: Colors.black, decoration: TextDecoration.none)
);
public static readonly TextTheme whiteCupertino = new TextTheme(
display4: new TextStyle(debugLabel: "whiteCupertino display4", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display3: new TextStyle(debugLabel: "whiteCupertino display3", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display2: new TextStyle(debugLabel: "whiteCupertino display2", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
display1: new TextStyle(debugLabel: "whiteCupertino display1", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
headline: new TextStyle(debugLabel: "whiteCupertino headline", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
title: new TextStyle(debugLabel: "whiteCupertino title", fontFamily: ".SF UI Display", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
subhead: new TextStyle(debugLabel: "whiteCupertino subhead", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
body2: new TextStyle(debugLabel: "whiteCupertino body2", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
body1: new TextStyle(debugLabel: "whiteCupertino body1", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
caption: new TextStyle(debugLabel: "whiteCupertino caption", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white70, decoration: TextDecoration.none),
button: new TextStyle(debugLabel: "whiteCupertino button", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
subtitle: new TextStyle(debugLabel: "whiteCupertino subtitle", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none),
overline: new TextStyle(debugLabel: "whiteCupertino overline", fontFamily: ".SF UI Text", inherit: true,
color: Colors.white, decoration: TextDecoration.none)
);
public static readonly TextTheme whiteCupertino = new TextTheme(
headline1 : new TextStyle(debugLabel: "whiteCupertino headline1", fontFamily: ".SF UI Display", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline2 : new TextStyle(debugLabel: "whiteCupertino headline2", fontFamily: ".SF UI Display", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline3 : new TextStyle(debugLabel: "whiteCupertino headline3", fontFamily: ".SF UI Display", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline4 : new TextStyle(debugLabel: "whiteCupertino headline4", fontFamily: ".SF UI Display", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
headline5 : new TextStyle(debugLabel: "whiteCupertino headline5", fontFamily: ".SF UI Display", inherit: true, color: Colors.white, decoration: TextDecoration.none),
headline6 : new TextStyle(debugLabel: "whiteCupertino headline6", fontFamily: ".SF UI Display", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle1 : new TextStyle(debugLabel: "whiteCupertino subtitle1", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText1 : new TextStyle(debugLabel: "whiteCupertino bodyText1", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none),
bodyText2 : new TextStyle(debugLabel: "whiteCupertino bodyText2", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none),
caption : new TextStyle(debugLabel: "whiteCupertino caption", fontFamily: ".SF UI Text", inherit: true, color: Colors.white70, decoration: TextDecoration.none),
button : new TextStyle(debugLabel: "whiteCupertino button", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none),
subtitle2 : new TextStyle(debugLabel: "whiteCupertino subtitle2", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none),
overline : new TextStyle(debugLabel: "whiteCupertino overline", fontFamily: ".SF UI Text", inherit: true, color: Colors.white, decoration: TextDecoration.none)
);
public static readonly TextTheme englishLike2014 = new TextTheme(
display4: new TextStyle(debugLabel: "englishLike display4 2014", inherit: false, fontSize: 112.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display3: new TextStyle(debugLabel: "englishLike display3 2014", inherit: false, fontSize: 56.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display2: new TextStyle(debugLabel: "englishLike display2 2014", inherit: false, fontSize: 45.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display1: new TextStyle(debugLabel: "englishLike display1 2014", inherit: false, fontSize: 34.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline: new TextStyle(debugLabel: "englishLike headline 2014", inherit: false, fontSize: 24.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
title: new TextStyle(debugLabel: "englishLike title 2014", inherit: false, fontSize: 20.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subhead: new TextStyle(debugLabel: "englishLike subhead 2014", inherit: false, fontSize: 16.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
body2: new TextStyle(debugLabel: "englishLike body2 2014", inherit: false, fontSize: 14.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
body1: new TextStyle(debugLabel: "englishLike body1 2014", inherit: false, fontSize: 14.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
caption: new TextStyle(debugLabel: "englishLike caption 2014", inherit: false, fontSize: 12.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
button: new TextStyle(debugLabel: "englishLike button 2014", inherit: false, fontSize: 14.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle: new TextStyle(debugLabel: "englishLike subtitle 2014", inherit: false, fontSize: 14.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.1f),
overline: new TextStyle(debugLabel: "englishLike overline 2014", inherit: false, fontSize: 10.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 1.5f)
);
public static readonly TextTheme englishLike2018 = new TextTheme(
display4: new TextStyle(debugLabel: "englishLike display4 2018", fontSize: 96.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: -1.5f),
display3: new TextStyle(debugLabel: "englishLike display3 2018", fontSize: 60.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: -0.5f),
display2: new TextStyle(debugLabel: "englishLike display2 2018", fontSize: 48.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.0f),
display1: new TextStyle(debugLabel: "englishLike display1 2018", fontSize: 34.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.25f),
headline: new TextStyle(debugLabel: "englishLike headline 2018", fontSize: 24.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.0f),
title: new TextStyle(debugLabel: "englishLike title 2018", fontSize: 20.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.15f),
subhead: new TextStyle(debugLabel: "englishLike subhead 2018", fontSize: 16.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.15f),
body2: new TextStyle(debugLabel: "englishLike body2 2018", fontSize: 14.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.25f),
body1: new TextStyle(debugLabel: "englishLike body1 2018", fontSize: 16.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.5f),
button: new TextStyle(debugLabel: "englishLike button 2018", fontSize: 14.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.75f),
caption: new TextStyle(debugLabel: "englishLike caption 2018", fontSize: 12.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic, letterSpacing: 0.4f),
subtitle: new TextStyle(debugLabel: "englishLike subtitle 2018", fontSize: 14.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.1f),
overline: new TextStyle(debugLabel: "englishLike overline 2018", fontSize: 10.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 1.5f)
);
public static readonly TextTheme englishLike2014 = new TextTheme(
headline1 : new TextStyle(debugLabel: "englishLike display4 2014", inherit: false, fontSize: 112.0f, fontWeight: FontWeight.w100, textBaseline: TextBaseline.alphabetic),
headline2 : new TextStyle(debugLabel: "englishLike display3 2014", inherit: false, fontSize: 56.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline3 : new TextStyle(debugLabel: "englishLike display2 2014", inherit: false, fontSize: 45.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline4 : new TextStyle(debugLabel: "englishLike display1 2014", inherit: false, fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline5 : new TextStyle(debugLabel: "englishLike headline 2014", inherit: false, fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline6 : new TextStyle(debugLabel: "englishLike title 2014", inherit: false, fontSize: 20.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic),
bodyText1 : new TextStyle(debugLabel: "englishLike body2 2014", inherit: false, fontSize: 14.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic),
bodyText2 : new TextStyle(debugLabel: "englishLike body1 2014", inherit: false, fontSize: 14.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle1 : new TextStyle(debugLabel: "englishLike subhead 2014", inherit: false, fontSize: 16.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle2 : new TextStyle(debugLabel: "englishLike subtitle 2014", inherit: false, fontSize: 14.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.1f),
caption : new TextStyle(debugLabel: "englishLike caption 2014", inherit: false, fontSize: 12.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
button : new TextStyle(debugLabel: "englishLike button 2014", inherit: false, fontSize: 14.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic),
overline : new TextStyle(debugLabel: "englishLike overline 2014", inherit: false, fontSize: 10.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 1.5f)
);
public static readonly TextTheme englishLike2018 = new TextTheme(
headline1 : new TextStyle(debugLabel: "englishLike headline1 2018", fontSize: 96.0f, fontWeight: FontWeight.w300, textBaseline: TextBaseline.alphabetic, letterSpacing: -1.5f),
headline2 : new TextStyle(debugLabel: "englishLike headline2 2018", fontSize: 60.0f, fontWeight: FontWeight.w300, textBaseline: TextBaseline.alphabetic, letterSpacing: -0.5f),
headline3 : new TextStyle(debugLabel: "englishLike headline3 2018", fontSize: 48.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.0f),
headline4 : new TextStyle(debugLabel: "englishLike headline4 2018", fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.25f),
headline5 : new TextStyle(debugLabel: "englishLike headline5 2018", fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.0f),
headline6 : new TextStyle(debugLabel: "englishLike headline6 2018", fontSize: 20.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.15f),
bodyText1 : new TextStyle(debugLabel: "englishLike bodyText1 2018", fontSize: 16.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.5f),
bodyText2 : new TextStyle(debugLabel: "englishLike bodyText2 2018", fontSize: 14.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.25f),
subtitle1 : new TextStyle(debugLabel: "englishLike subtitle1 2018", fontSize: 16.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.15f),
subtitle2 : new TextStyle(debugLabel: "englishLike subtitle2 2018", fontSize: 14.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.1f),
button : new TextStyle(debugLabel: "englishLike button 2018", fontSize: 14.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.75f),
caption : new TextStyle(debugLabel: "englishLike caption 2018", fontSize: 12.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 0.4f),
overline : new TextStyle(debugLabel: "englishLike overline 2018", fontSize: 10.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic, letterSpacing: 1.5f)
);
public static readonly TextTheme dense2014 = new TextTheme(
display4: new TextStyle(debugLabel: "dense display4 2014", inherit: false, fontSize: 112.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
display3: new TextStyle(debugLabel: "dense display3 2014", inherit: false, fontSize: 56.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
display2: new TextStyle(debugLabel: "dense display2 2014", inherit: false, fontSize: 45.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
display1: new TextStyle(debugLabel: "dense display1 2014", inherit: false, fontSize: 34.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline: new TextStyle(debugLabel: "dense headline 2014", inherit: false, fontSize: 24.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
title: new TextStyle(debugLabel: "dense title 2014", inherit: false, fontSize: 21.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subhead: new TextStyle(debugLabel: "dense subhead 2014", inherit: false, fontSize: 17.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
body2: new TextStyle(debugLabel: "dense body2 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
body1: new TextStyle(debugLabel: "dense body1 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
caption: new TextStyle(debugLabel: "dense caption 2014", inherit: false, fontSize: 13.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
button: new TextStyle(debugLabel: "dense button 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subtitle: new TextStyle(debugLabel: "dense subtitle 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
overline: new TextStyle(debugLabel: "dense overline 2014", inherit: false, fontSize: 11.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic)
);
public static readonly TextTheme dense2018 = new TextTheme(
display4: new TextStyle(debugLabel: "dense display4 2018", fontSize: 96.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
display3: new TextStyle(debugLabel: "dense display3 2018", fontSize: 60.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
display2: new TextStyle(debugLabel: "dense display2 2018", fontSize: 48.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
display1: new TextStyle(debugLabel: "dense display1 2018", fontSize: 34.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
headline: new TextStyle(debugLabel: "dense headline 2018", fontSize: 24.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
title: new TextStyle(debugLabel: "dense title 2018", fontSize: 21.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
subhead: new TextStyle(debugLabel: "dense subhead 2018", fontSize: 17.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
body2: new TextStyle(debugLabel: "dense body2 2018", fontSize: 17.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
body1: new TextStyle(debugLabel: "dense body1 2018", fontSize: 15.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
caption: new TextStyle(debugLabel: "dense caption 2018", fontSize: 13.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
button: new TextStyle(debugLabel: "dense button 2018", fontSize: 15.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
subtitle: new TextStyle(debugLabel: "dense subtitle 2018", fontSize: 15.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic),
overline: new TextStyle(debugLabel: "dense overline 2018", fontSize: 11.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.ideographic)
);
public static readonly TextTheme tall2014 = new TextTheme(
display4: new TextStyle(debugLabel: "tall display4 2014", inherit: false, fontSize: 112.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display3: new TextStyle(debugLabel: "tall display3 2014", inherit: false, fontSize: 56.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display2: new TextStyle(debugLabel: "tall display2 2014", inherit: false, fontSize: 45.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
display1: new TextStyle(debugLabel: "tall display1 2014", inherit: false, fontSize: 34.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline: new TextStyle(debugLabel: "tall headline 2014", inherit: false, fontSize: 24.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
title: new TextStyle(debugLabel: "tall title 2014", inherit: false, fontSize: 21.0f,
fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
subhead: new TextStyle(debugLabel: "tall subhead 2014", inherit: false, fontSize: 17.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
body2: new TextStyle(debugLabel: "tall body2 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
body1: new TextStyle(debugLabel: "tall body1 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
caption: new TextStyle(debugLabel: "tall caption 2014", inherit: false, fontSize: 13.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
button: new TextStyle(debugLabel: "tall button 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
subtitle: new TextStyle(debugLabel: "tall subtitle 2014", inherit: false, fontSize: 15.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
overline: new TextStyle(debugLabel: "tall overline 2014", inherit: false, fontSize: 11.0f,
fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic)
);
public static readonly TextTheme tall2018 = new TextTheme(
display4: new TextStyle(debugLabel: "tall display4 2018", fontSize: 96.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
display3: new TextStyle(debugLabel: "tall display3 2018", fontSize: 60.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
display2: new TextStyle(debugLabel: "tall display2 2018", fontSize: 48.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
display1: new TextStyle(debugLabel: "tall display1 2018", fontSize: 34.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
headline: new TextStyle(debugLabel: "tall headline 2018", fontSize: 24.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
title: new TextStyle(debugLabel: "tall title 2018", fontSize: 21.0f, fontWeight: FontWeight.w700,
textBaseline: TextBaseline.alphabetic),
subhead: new TextStyle(debugLabel: "tall subhead 2018", fontSize: 17.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
body2: new TextStyle(debugLabel: "tall body2 2018", fontSize: 17.0f, fontWeight: FontWeight.w700,
textBaseline: TextBaseline.alphabetic),
body1: new TextStyle(debugLabel: "tall body1 2018", fontSize: 15.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
button: new TextStyle(debugLabel: "tall button 2018", fontSize: 15.0f, fontWeight: FontWeight.w700,
textBaseline: TextBaseline.alphabetic),
caption: new TextStyle(debugLabel: "tall caption 2018", fontSize: 13.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
subtitle: new TextStyle(debugLabel: "tall subtitle 2018", fontSize: 15.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic),
overline: new TextStyle(debugLabel: "tall overline 2018", fontSize: 11.0f, fontWeight: FontWeight.w400,
textBaseline: TextBaseline.alphabetic)
);
public static readonly TextTheme dense2014 = new TextTheme(
headline1 : new TextStyle(debugLabel: "dense display4 2014", inherit: false, fontSize: 112.0f, fontWeight: FontWeight.w100, textBaseline: TextBaseline.ideographic),
headline2 : new TextStyle(debugLabel: "dense display3 2014", inherit: false, fontSize: 56.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline3 : new TextStyle(debugLabel: "dense display2 2014", inherit: false, fontSize: 45.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline4 : new TextStyle(debugLabel: "dense display1 2014", inherit: false, fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline5 : new TextStyle(debugLabel: "dense headline 2014", inherit: false, fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline6 : new TextStyle(debugLabel: "dense title 2014", inherit: false, fontSize: 21.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
bodyText1 : new TextStyle(debugLabel: "dense body2 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
bodyText2 : new TextStyle(debugLabel: "dense body1 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subtitle1 : new TextStyle(debugLabel: "dense subhead 2014", inherit: false, fontSize: 17.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subtitle2 : new TextStyle(debugLabel: "dense subtitle 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
caption : new TextStyle(debugLabel: "dense caption 2014", inherit: false, fontSize: 13.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
button : new TextStyle(debugLabel: "dense button 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
overline : new TextStyle(debugLabel: "dense overline 2014", inherit: false, fontSize: 11.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic)
);
public static readonly TextTheme dense2018 = new TextTheme(
headline1 : new TextStyle(debugLabel: "dense headline1 2018", fontSize: 96.0f, fontWeight: FontWeight.w100, textBaseline: TextBaseline.ideographic),
headline2 : new TextStyle(debugLabel: "dense headline2 2018", fontSize: 60.0f, fontWeight: FontWeight.w100, textBaseline: TextBaseline.ideographic),
headline3 : new TextStyle(debugLabel: "dense headline3 2018", fontSize: 48.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline4 : new TextStyle(debugLabel: "dense headline4 2018", fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline5 : new TextStyle(debugLabel: "dense headline5 2018", fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
headline6 : new TextStyle(debugLabel: "dense headline6 2018", fontSize: 21.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
bodyText1 : new TextStyle(debugLabel: "dense bodyText1 2018", fontSize: 17.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
bodyText2 : new TextStyle(debugLabel: "dense bodyText2 2018", fontSize: 15.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subtitle1 : new TextStyle(debugLabel: "dense subtitle1 2018", fontSize: 17.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
subtitle2 : new TextStyle(debugLabel: "dense subtitle2 2018", fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
button : new TextStyle(debugLabel: "dense button 2018", fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.ideographic),
caption : new TextStyle(debugLabel: "dense caption 2018", fontSize: 13.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic),
overline : new TextStyle(debugLabel: "dense overline 2018", fontSize: 11.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.ideographic)
);
public static readonly TextTheme tall2014 = new TextTheme(
headline1 : new TextStyle(debugLabel: "tall display4 2014", inherit: false, fontSize: 112.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline2 : new TextStyle(debugLabel: "tall display3 2014", inherit: false, fontSize: 56.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline3 : new TextStyle(debugLabel: "tall display2 2014", inherit: false, fontSize: 45.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline4 : new TextStyle(debugLabel: "tall display1 2014", inherit: false, fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline5 : new TextStyle(debugLabel: "tall headline 2014", inherit: false, fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline6 : new TextStyle(debugLabel: "tall title 2014", inherit: false, fontSize: 21.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
bodyText1 : new TextStyle(debugLabel: "tall body2 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
bodyText2 : new TextStyle(debugLabel: "tall body1 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle1 : new TextStyle(debugLabel: "tall subhead 2014", inherit: false, fontSize: 17.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle2 : new TextStyle(debugLabel: "tall subtitle 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic),
caption : new TextStyle(debugLabel: "tall caption 2014", inherit: false, fontSize: 13.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
button : new TextStyle(debugLabel: "tall button 2014", inherit: false, fontSize: 15.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
overline : new TextStyle(debugLabel: "tall overline 2014", inherit: false, fontSize: 11.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic)
);
public static readonly TextTheme tall2018 = new TextTheme(
headline1 : new TextStyle(debugLabel: "tall headline1 2018", fontSize: 96.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline2 : new TextStyle(debugLabel: "tall headline2 2018", fontSize: 60.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline3 : new TextStyle(debugLabel: "tall headline3 2018", fontSize: 48.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline4 : new TextStyle(debugLabel: "tall headline4 2018", fontSize: 34.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline5 : new TextStyle(debugLabel: "tall headline5 2018", fontSize: 24.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
headline6 : new TextStyle(debugLabel: "tall headline6 2018", fontSize: 21.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
bodyText1 : new TextStyle(debugLabel: "tall bodyText1 2018", fontSize: 17.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
bodyText2 : new TextStyle(debugLabel: "tall bodyText2 2018", fontSize: 15.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle1 : new TextStyle(debugLabel: "tall subtitle1 2018", fontSize: 17.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
subtitle2 : new TextStyle(debugLabel: "tall subtitle2 2018", fontSize: 15.0f, fontWeight: FontWeight.w500, textBaseline: TextBaseline.alphabetic),
button : new TextStyle(debugLabel: "tall button 2018", fontSize: 15.0f, fontWeight: FontWeight.w700, textBaseline: TextBaseline.alphabetic),
caption : new TextStyle(debugLabel: "tall caption 2018", fontSize: 13.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic),
overline : new TextStyle(debugLabel: "tall overline 2018", fontSize: 11.0f, fontWeight: FontWeight.w400, textBaseline: TextBaseline.alphabetic)
);
}
}

58
com.unity.uiwidgets/Runtime/material/user_accounts_drawer_header.cs


using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using UnityEngine;
using Color = Unity.UIWidgets.ui.Color;
using Transform = Unity.UIWidgets.widgets.Transform;
namespace Unity.UIWidgets.material {

Widget accountName = null,
Widget accountEmail = null,
VoidCallback onTap = null,
bool? isOpen = null
bool? isOpen = null,
Color arrowColor = null
) : base(key: key) {
D.assert(accountName != null);
D.assert(accountEmail != null);

this.isOpen = isOpen;
this.arrowColor = arrowColor;
}
public readonly Widget accountName;

public readonly Color arrowColor;
public override State createState() {
return new _AccountDetailsState();

child: new Padding(
padding: EdgeInsets.symmetric(vertical: 2.0f),
child: new DefaultTextStyle(
style: theme.primaryTextTheme.body2,
style: theme.primaryTextTheme.bodyText1,
overflow: TextOverflow.ellipsis,
child: widget.accountName
)

child: new Padding(
padding: EdgeInsets.symmetric(vertical: 2.0f),
child: new DefaultTextStyle(
style: theme.primaryTextTheme.body1,
style: theme.primaryTextTheme.bodyText2,
overflow: TextOverflow.ellipsis,
child: widget.accountEmail
)

}
if (widget.onTap != null) {
MaterialLocalizations localizations = MaterialLocalizations.of(context);
Widget dropDownIcon = new LayoutId(
id: _AccountDetailsLayout.dropdownIcon,
child: new SizedBox(

degree: _animation.value * Mathf.PI,
child: new Icon(
Icons.arrow_drop_down,
color: Colors.white
color: widget.arrowColor
)
)
)

}
Widget accountDetails = new CustomMultiChildLayout(
layoutDelegate: new _AccountDetailsLayout(),
layoutDelegate: new _AccountDetailsLayout(
Directionality.of(context)),
children: children
);

class _AccountDetailsLayout : MultiChildLayoutDelegate {
public _AccountDetailsLayout() {
public _AccountDetailsLayout(TextDirection textDirection) {
this.textDirection = textDirection;
public readonly TextDirection textDirection;
public override void performLayout(Size size) {
Size iconSize = null;

}
Offset _offsetForIcon(Size size, Size iconSize) {
return new Offset(size.width - iconSize.width, size.height - iconSize.height);
switch (textDirection) {
case TextDirection.ltr:
return new Offset(size.width - iconSize.width, size.height - iconSize.height);
case TextDirection.rtl:
return new Offset(0.0f, size.height - iconSize.height);
}
D.assert(false, () => "Unreachable");
return null;
return new Offset(0.0f, y);
switch (textDirection) {
case TextDirection.ltr:
return new Offset(0.0f, y);
case TextDirection.rtl:
return new Offset(size.width - bottomLineSize.width, y);
}
D.assert(false, () => "Unreachable");
return null;
return new Offset(0.0f, y);
switch (textDirection) {
case TextDirection.ltr:
return new Offset(0.0f, y);
case TextDirection.rtl:
return new Offset(size.width - nameSize.width, y);
}
D.assert(false, () => "Unreachable");
return null;
}
}

List<Widget> otherAccountsPictures = null,
Widget accountName = null,
Widget accountEmail = null,
VoidCallback onDetailsPressed = null
VoidCallback onDetailsPressed = null,
Color arrowColor = null
this.arrowColor = arrowColor ?? Colors.white;
this.currentAccountPicture = currentAccountPicture;
this.otherAccountsPictures = otherAccountsPictures;
this.accountName = accountName;

public readonly Widget accountEmail;
public readonly VoidCallback onDetailsPressed;
public readonly Color arrowColor;
public override State createState() {
return new _UserAccountsDrawerHeaderState();

isOpen: _isOpen,
onTap: widget.onDetailsPressed == null
? (VoidCallback) null
: () => { _handleDetailsPressed(); })
: _handleDetailsPressed,
arrowColor: widget.arrowColor
)
}
)
)

198
com.unity.uiwidgets/Runtime/material/tooltip_theme.cs


using System;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using TextStyle = Unity.UIWidgets.painting.TextStyle;
namespace Unity.UIWidgets.material {
public class TooltipThemeData : Diagnosticable, IEquatable<TooltipThemeData> {
public TooltipThemeData(
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,
Decoration decoration = null,
TextStyle textStyle = null,
TimeSpan? waitDuration = null,
TimeSpan? showDuration = null
) {
this.height = height;
this.padding = padding;
this.margin = margin;
this.verticalOffset = verticalOffset;
this.preferBelow = preferBelow;
this.excludeFromSemantics = excludeFromSemantics;
this.decoration = decoration;
this.textStyle = textStyle;
this.waitDuration = waitDuration;
this.showDuration = showDuration;
}
public readonly float? height;
public readonly EdgeInsets padding;
public readonly EdgeInsets margin;
public readonly float? verticalOffset;
public readonly bool? preferBelow;
public readonly bool? excludeFromSemantics;
public readonly Decoration decoration;
public readonly TextStyle textStyle;
public readonly TimeSpan? waitDuration;
public readonly TimeSpan? showDuration;
public TooltipThemeData copyWith(
float? height = null,
EdgeInsets padding = null,
EdgeInsets margin = null,
float? verticalOffset = null,
bool? preferBelow = null,
bool? excludeFromSemantics = null,
Decoration decoration = null,
TextStyle textStyle = null,
TimeSpan? waitDuration = null,
TimeSpan? showDuration = null) {
return new TooltipThemeData(
height: height ?? this.height,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
verticalOffset: verticalOffset ?? this.verticalOffset,
preferBelow: preferBelow ?? this.preferBelow,
excludeFromSemantics: excludeFromSemantics ?? this.excludeFromSemantics,
decoration: decoration ?? this.decoration,
textStyle: textStyle ?? this.textStyle,
waitDuration: waitDuration ?? this.waitDuration,
showDuration: showDuration ?? this.showDuration
);
}
public static TooltipThemeData lerp(TooltipThemeData a, TooltipThemeData b, float t) {
if (a == null && b == null) {
return null;
}
return new TooltipThemeData(
height: MathUtils.lerpNullableFloat(a?.height, b?.height, t),
padding: EdgeInsets.lerp(a?.padding, b?.padding, t),
margin: EdgeInsets.lerp(a?.margin, b?.margin, t),
verticalOffset: MathUtils.lerpNullableFloat(a?.verticalOffset, b?.verticalOffset, t),
preferBelow: t < 0.5f ? a.preferBelow: b.preferBelow,
excludeFromSemantics: t < 0.5f ? a.excludeFromSemantics : b.excludeFromSemantics,
decoration: Decoration.lerp(a?.decoration, b?.decoration, t),
textStyle: TextStyle.lerp(a?.textStyle, b?.textStyle, t)
);
}
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add( new FloatProperty("height", height, defaultValue: null));
properties.add( new DiagnosticsProperty<EdgeInsetsGeometry>("padding", padding, defaultValue: null));
properties.add( new DiagnosticsProperty<EdgeInsetsGeometry>("margin", margin, defaultValue: null));
properties.add( new FloatProperty("vertical offset", verticalOffset, defaultValue: null));
properties.add( new FlagProperty("position", value: preferBelow, ifTrue: "below", ifFalse: "above", showName: true, defaultValue: null));
properties.add( new FlagProperty("semantics", value: excludeFromSemantics, ifTrue: "excluded", showName: true, defaultValue: null));
properties.add( new DiagnosticsProperty<Decoration>("decoration", decoration, defaultValue: null));
properties.add( new DiagnosticsProperty<TextStyle>("textStyle", textStyle, defaultValue: null));
properties.add( new DiagnosticsProperty<TimeSpan>("wait duration", (TimeSpan)waitDuration, defaultValue: TimeSpan.Zero));
properties.add( new DiagnosticsProperty<TimeSpan>("show duration", (TimeSpan)showDuration, defaultValue: TimeSpan.Zero));
}
public bool Equals(TooltipThemeData other)
{
if (ReferenceEquals(null, other)) {
return false;
}
if (ReferenceEquals(this, other)) {
return true;
}
return height.Equals(other.height)
&& padding.Equals(other.padding)
&& margin.Equals(other.margin)
&& verticalOffset.Equals(other.verticalOffset)
&& preferBelow == other.preferBelow
&& excludeFromSemantics == other.excludeFromSemantics
&& decoration.Equals(other.decoration)
&& textStyle.Equals(other.textStyle)
&& waitDuration.Equals(other.waitDuration)
&& showDuration.Equals(other.showDuration);
}
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) {
return false;
}
if (ReferenceEquals(this, obj)) {
return true;
}
if (obj.GetType() != GetType()) {
return false;
}
return Equals((TooltipThemeData) obj);
}
public static bool operator ==(TooltipThemeData left, TooltipThemeData right) {
return Equals(left, right);
}
public static bool operator !=(TooltipThemeData left, TooltipThemeData right) {
return !Equals(left, right);
}
public override int GetHashCode()
{
unchecked{
var hashCode = height.GetHashCode();
hashCode = (hashCode * 397) ^ (padding != null ? padding.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (margin != null ? margin.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ verticalOffset.GetHashCode();
hashCode = (hashCode * 397) ^ preferBelow.GetHashCode();
hashCode = (hashCode * 397) ^ excludeFromSemantics.GetHashCode();
hashCode = (hashCode * 397) ^ (decoration != null ? decoration.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (textStyle != null ? textStyle.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ waitDuration.GetHashCode();
hashCode = (hashCode * 397) ^ showDuration.GetHashCode();
return hashCode;
}
}
}
public class TooltipTheme : InheritedTheme {
public TooltipTheme(
Key key = null,
TooltipThemeData data = null,
Widget child = null
) : base (key: key, child: child) {
D.assert(data != null);
this.data = data;
}
public readonly TooltipThemeData data;
public static TooltipThemeData of(BuildContext context) {
TooltipTheme tooltipTheme = context.dependOnInheritedWidgetOfExactType<TooltipTheme>();
return tooltipTheme?.data ?? Theme.of(context).tooltipTheme;
}
public override bool updateShouldNotify(InheritedWidget oldWidget) {
D.assert(oldWidget is TooltipTheme);
return data != ((TooltipTheme)oldWidget).data;
}
public override Widget wrap(BuildContext context, Widget child) {
TooltipTheme ancestorTheme = context.findAncestorWidgetOfExactType<TooltipTheme>();
return ReferenceEquals(this, ancestorTheme) ? child : new TooltipTheme(data: data, child: child);
}
}
}
正在加载...
取消
保存