您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

48 行
1.4 KiB

using System.Runtime.CompilerServices;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.service;
using Unity.UIWidgets.ui;
using Unity.UIWidgets.widgets;
using Brightness = Unity.UIWidgets.ui.Brightness;
namespace Unity.UIWidgets.cupertino {
class CupertinoIconThemeData : IconThemeData {
public CupertinoIconThemeData(
Color color = null,
float? opacity = null,
float? size = null
) : base(color: color, opacity: opacity, size: size) {
}
public new IconThemeData resolve(BuildContext context) {
Color resolvedColor = CupertinoDynamicColor.resolve(color, context);
return resolvedColor == color ? this : copyWith(color: resolvedColor);
}
public new CupertinoIconThemeData copyWith(
Color color = null ,
float? opacity = null,
float? size = null)
{
return new CupertinoIconThemeData(
color: color ?? this.color,
opacity: opacity ?? this.opacity,
size: size ?? this.size
);
}
public override void debugFillProperties(DiagnosticPropertiesBuilder properties) {
base.debugFillProperties(properties);
properties.add(CupertinoDynamicColor.createCupertinoColorProperty("color", color, defaultValue: null));
}
}
}