浏览代码

Temp store.

/main
Yuncong Zhang 6 年前
当前提交
ab1a8576
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 3
      Runtime/material/button.cs
  2. 1
      Runtime/material/outline_button.cs
  3. 2
      Samples/UIWidgetsGallery/gallery/home.cs

3
Runtime/material/button.cs


using System;
using Unity.UIWidgets.foundation;
using Unity.UIWidgets.gestures;
using Unity.UIWidgets.painting;
using Unity.UIWidgets.rendering;
using Unity.UIWidgets.ui;

onHighlightChanged: this._handleHighlightChanged,
splashColor: this.widget.splashColor,
highlightColor: this.widget.highlightColor,
onTap: () => {
onTap: this.widget.onPressed == null ? (GestureTapCallback) null : () => {
if (this.widget.onPressed != null) {
this.widget.onPressed();
}

1
Runtime/material/outline_button.cs


child: child
) {
D.assert(highlightElevation == null || highlightElevation >= 0.0f);
D.assert(onPressed != null);
this.highlightedBorderColor = highlightedBorderColor;
this.disabledBorderColor = disabledBorderColor;
this.borderSide = borderSide;

2
Samples/UIWidgetsGallery/gallery/home.cs


frontTitle: new AnimatedSwitcher(
duration: HomeUtils._kFrontLayerSwitchDuration,
child: this._category == null
? new Text("Flutter gallery")
? new Text("UIWidgets gallery")
: new Text(this._category.name)
),
frontHeading: this.widget.testMode ? null : new Container(height: 24.0f),

正在加载...
取消
保存