|
|
|
|
|
|
using UnityEngine.UI; |
|
|
|
using Text = Unity.UIWidgets.widgets.Text; |
|
|
|
using ui_ = Unity.UIWidgets.widgets.ui_; |
|
|
|
using TextStyle = Unity.UIWidgets.painting.TextStyle; |
|
|
|
|
|
|
|
namespace UIWidgetsSample |
|
|
|
{ |
|
|
|
|
|
|
public override Widget build(BuildContext context) |
|
|
|
{ |
|
|
|
return new Container( |
|
|
|
color: Color.white, |
|
|
|
color: Color.fromARGB(255, 255, 0, 0), |
|
|
|
new Text($"count: {count}"), |
|
|
|
new Text($"count: {count}", style: new TextStyle(color: Color.fromARGB(255, 0 ,0 ,255))), |
|
|
|
new CupertinoButton( |
|
|
|
onPressed: () => |
|
|
|
{ |
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
child: new Container( |
|
|
|
color: Color.black, |
|
|
|
color: Color.fromARGB(255,0 , 255, 0), |
|
|
|
width: 100, |
|
|
|
height: 40 |
|
|
|
) |
|
|
|