浏览代码

material fix minor

/main
xingwei.zhu 6 年前
当前提交
8720c91a
共有 3 个文件被更改,包括 7 次插入12 次删除
  1. 6
      Runtime/material/ink_ripple.cs
  2. 8
      Runtime/material/ink_splash.cs
  3. 5
      Samples/UIWidgetSample/MaterialSample.cs

6
Runtime/material/ink_ripple.cs


}
}
//todo:xingwei.zhu: remove this condition when drawCircle bug fixed (when radius.value == 0)
if (this._radius.value != 0) {
canvas.drawCircle(center, this._radius.value, paint);
}
canvas.drawCircle(center, this._radius.value, paint);
canvas.restore();
}
}

8
Runtime/material/ink_splash.cs


canvas.clipRect(rect);
}
}
//todo:xingwei.zhu: remove this condition when drawCircle bug fixed (when radius.value == 0)
if (this._radius.value != 0) {
canvas.drawCircle(center, this._radius.value, paint);
}
canvas.drawCircle(center, this._radius.value, paint);
canvas.restore();
}
}

5
Samples/UIWidgetSample/MaterialSample.cs


public override Widget build(BuildContext context) {
return new Material(
child: new Center(
child: new MaterialButton(
child: new FlatButton(
shape: new RoundedRectangleBorder(borderRadius: BorderRadius.all(20.0f)),
color: new Color(0xFF00FF00),
child: new Text("Click Me"),
onPressed: () => { Debug.Log("pressed here"); }
)
)

正在加载...
取消
保存