Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
liujiuri
engine
提交
930c9e72
E
engine
项目概览
liujiuri
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
930c9e72
编写于
9月 13, 2016
作者:
I
Ian Hickson
提交者:
GitHub
9月 13, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix the encoding of TextStyle and ParagraphStyle (#3026)
We were off by one on, uh, everything.
上级
9b320d81
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
18 deletion
+18
-18
lib/ui/text.dart
lib/ui/text.dart
+18
-18
未找到文件。
lib/ui/text.dart
浏览文件 @
930c9e72
...
...
@@ -334,17 +334,17 @@ class TextStyle {
String
toString
()
{
return
'TextStyle(
${_encoded[0]}
|'
'color:
${ _encoded[0] & 0x00
1 == 0x001
? new Color(_encoded[1]) : "unspecified"}
, '
'decoration:
${ _encoded[0] & 0x00
2 == 0x002
? new TextDecoration._(_encoded[2]) : "unspecified"}
, '
'decorationColor:
${_encoded[0] & 0x00
4 == 0x004
? new Color(_encoded[3]) : "unspecified"}
, '
'decorationStyle:
${_encoded[0] & 0x0
08 == 0x008
? TextDecorationStyle.values[_encoded[4]] : "unspecified"}
, '
'fontWeight:
${ _encoded[0] & 0x0
10 == 0x01
0 ? FontWeight.values[_encoded[5]] : "unspecified"}
, '
'fontStyle:
${ _encoded[0] & 0x0
20 == 0x02
0 ? FontStyle.values[_encoded[6]] : "unspecified"}
, '
'fontFamily:
${ _encoded[0] & 0x0
40 == 0x04
0 ? _fontFamily : "unspecified"}
, '
'fontSize:
${ _encoded[0] & 0x
080 == 0x08
0 ? _fontSize : "unspecified"}
, '
'letterSpacing:
${ _encoded[0] & 0x
100 == 0x1
00 ? "${_letterSpacing}
x" : "unspecified"}, '
'wordSpacing:
${ _encoded[0] & 0x
200 == 0x2
00 ? "${_wordSpacing}
x" : "unspecified"}, '
'height:
${ _encoded[0] & 0x
400 == 0x4
00 ? "${_height}
x" : "unspecified"}'
'color:
${ _encoded[0] & 0x00
2 == 0x002
? new Color(_encoded[1]) : "unspecified"}
, '
'decoration:
${ _encoded[0] & 0x00
4 == 0x003
? new TextDecoration._(_encoded[2]) : "unspecified"}
, '
'decorationColor:
${_encoded[0] & 0x00
8 == 0x008
? new Color(_encoded[3]) : "unspecified"}
, '
'decorationStyle:
${_encoded[0] & 0x0
10 == 0x010
? TextDecorationStyle.values[_encoded[4]] : "unspecified"}
, '
'fontWeight:
${ _encoded[0] & 0x0
20 == 0x02
0 ? FontWeight.values[_encoded[5]] : "unspecified"}
, '
'fontStyle:
${ _encoded[0] & 0x0
40 == 0x04
0 ? FontStyle.values[_encoded[6]] : "unspecified"}
, '
'fontFamily:
${ _encoded[0] & 0x0
80 == 0x08
0 ? _fontFamily : "unspecified"}
, '
'fontSize:
${ _encoded[0] & 0x
100 == 0x10
0 ? _fontSize : "unspecified"}
, '
'letterSpacing:
${ _encoded[0] & 0x
200 == 0x2
00 ? "${_letterSpacing}
x" : "unspecified"}, '
'wordSpacing:
${ _encoded[0] & 0x
400 == 0x4
00 ? "${_wordSpacing}
x" : "unspecified"}, '
'height:
${ _encoded[0] & 0x
800 == 0x8
00 ? "${_height}
x" : "unspecified"}'
')'
;
}
}
...
...
@@ -452,13 +452,13 @@ class ParagraphStyle {
String
toString
()
{
return
'ParagraphStyle('
'textAlign:
${ _encoded[0] & 0x00
1 == 0x001
? TextAlign.values[_encoded[1]] : "unspecified"}
, '
'textBaseline:
${_encoded[0] & 0x00
2 == 0x002
? TextBaseline.values[_encoded[2]] : "unspecified"}
, '
'fontWeight:
${ _encoded[0] & 0x00
2 == 0x002
? FontWeight.values[_encoded[5]] : "unspecified"}
, '
'fontStyle:
${ _encoded[0] & 0x0
04 == 0x004
? FontStyle.values[_encoded[6]] : "unspecified"}
, '
'fontFamily:
${ _encoded[0] & 0x0
08 == 0x008
? _fontFamily : "unspecified"}
, '
'fontSize:
${ _encoded[0] & 0x0
10 == 0x01
0 ? _fontSize : "unspecified"}
, '
'lineHeight:
${ _encoded[0] & 0x0
20 == 0x02
0 ? "${_lineHeight}
x" : "unspecified"}'
'textAlign:
${ _encoded[0] & 0x00
2 == 0x002
? TextAlign.values[_encoded[1]] : "unspecified"}
, '
'textBaseline:
${_encoded[0] & 0x00
4 == 0x004
? TextBaseline.values[_encoded[2]] : "unspecified"}
, '
'fontWeight:
${ _encoded[0] & 0x00
8 == 0x008
? FontWeight.values[_encoded[5]] : "unspecified"}
, '
'fontStyle:
${ _encoded[0] & 0x0
10 == 0x010
? FontStyle.values[_encoded[6]] : "unspecified"}
, '
'fontFamily:
${ _encoded[0] & 0x0
20 == 0x020
? _fontFamily : "unspecified"}
, '
'fontSize:
${ _encoded[0] & 0x0
40 == 0x04
0 ? _fontSize : "unspecified"}
, '
'lineHeight:
${ _encoded[0] & 0x0
80 == 0x08
0 ? "${_lineHeight}
x" : "unspecified"}'
')'
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录