浏览代码

some more fixes

/zgh-devtools
xingweizhu 4 年前
当前提交
4549792b
共有 6 个文件被更改,包括 20 次插入7 次删除
  1. 8
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs
  2. 2
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/buttons_demo.cs
  3. 8
      Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs
  4. 1
      com.unity.uiwidgets/Runtime/material/outline_button.cs
  5. 2
      com.unity.uiwidgets/Runtime/material/raised_button.cs
  6. 6
      com.unity.uiwidgets/Runtime/rendering/sliver.cs

8
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/bottom_app_bar_demo.cs


new Expanded(
child: new GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => { this.onChanged(this.value); },
onTap: () =>
{
this.onChanged(this.value);
},
child: new Text(this.value.title,
style: theme.textTheme.subtitle1
)

width: 2.0f
)
),
child: new Text(
namedColor.name
child: new Container(
)
);
}).ToList()

2
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/buttons_demo.cs


// https://en.wikipedia.org/wiki/Free_Four
string dropdown1Value = "Free";
string dropdown2Value = "";
string dropdown2Value = null;
string dropdown3Value = "Four";
Widget buildDropdownButton() {

8
Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/demos.cs


routeName: BottomNavigationDemo.routeName,
documentationUrl: "https://docs.flutter.io/flutter/material/BottomNavigationBar-class.html",
buildRoute: (BuildContext context) => new BottomNavigationDemo()
),
new GalleryDemo(
title: "Buttons",
subtitle: "Flat, raised, dropdown, and more",
icon: GalleryIcons.generic_buttons,
category: GalleryDemoCategory._kMaterialComponents,
routeName: ButtonsDemo.routeName,
buildRoute: (BuildContext context) => new ButtonsDemo()
)
};

1
com.unity.uiwidgets/Runtime/material/outline_button.cs


clipBehavior: clipBehavior,
focusNode: focusNode,
autofocus: autofocus,
icon: icon,
label: label
);
}

2
com.unity.uiwidgets/Runtime/material/raised_button.cs


D.assert(icon != null);
D.assert(label != null);
clipBehavior = clipBehavior ?? Clip.none;
return new _RaisedButtonWithIcon(
key: key,
onPressed: onPressed,

6
com.unity.uiwidgets/Runtime/rendering/sliver.cs


public virtual float? childMainAxisPosition(RenderObject child) {
D.assert(() => { throw new UIWidgetsError(GetType() + " does not implement childPosition."); });
return null;
return 0.0f;
return null;
return 0.0f;
return null;
return 0.0f;
}
public override void applyPaintTransform(RenderObject child, Matrix4 transform) {

正在加载...
取消
保存