浏览代码

fix the sample a bit to make it works in some degree. need to fix more curpertimo stuff later

/siyaoH-1.17-PlatformMessage
xingweizhu 4 年前
当前提交
0e05dec5
共有 1 个文件被更改,包括 25 次插入47 次删除
  1. 72
      Samples/UIWidgetsSamples_2019_4/Assets/Script/TextTest.cs

72
Samples/UIWidgetsSamples_2019_4/Assets/Script/TextTest.cs


using UIWidgetsGallery.gallery;
using Color = Unity.UIWidgets.ui.Color;
using Random = UnityEngine.Random;
public class UIWidgetsExample : UIWidgetsPanel
public class TextTest : UIWidgetsPanel
class MyApp : StatelessWidget
{
public override Widget build(BuildContext context)

);
// return new CupertinoPageScaffold(
// child: new Center(
// child: new CupertinoButton(
// child: new Text(
// "THIS IS TAB #"
// ),
// onPressed: () =>
// {
// Navigator.of(context).push(
// new CupertinoPageRoute(builder: (contex3) =>
// {
// return
// new CupertinoAlertDemo();
// })
// );
// }
// )
// //new Text("hello world!", style: CupertinoTheme.of(context).textTheme.navTitleTextStyle)
// )
// //backgroundColor: Colors.brown
// );
List<BottomNavigationBarItem> items = new List<BottomNavigationBarItem>();
return new CupertinoPageScaffold(
child: new Center(
child: new CupertinoButton(
child: new Text(
"THIS IS TAB #",
style: new TextStyle(color: Color.fromARGB(255, 255, 0, 0))
),
onPressed: () =>
{
Navigator.of(context).push(
new CupertinoPageRoute(builder: (contex3) =>
{
return
new Container(color: Color.fromARGB(255, 0, 255, 0));
})
);
}
)//,
//new Text("hello world!", style: CupertinoTheme.of(context).textTheme.navTitleTextStyle)
),
backgroundColor: Color.fromARGB(255, 255, 255, 0)
);
/*List<BottomNavigationBarItem> items = new List<BottomNavigationBarItem>();
items.Add(new BottomNavigationBarItem(
icon: new Icon(CupertinoIcons.bell),
title: new Text("views")

middle: (index == 0) ? new Text("views") : new Text("articles")
),
child: new Center(
child: new CupertinoButton(
child: new Text(
"THIS IS TAB #",

//.copyWith(fontSize:32)
),
onPressed: () =>
{
Navigator.of(contex1).push(

}
);
})
);
);*/
public override Widget build(BuildContext context)
{
return new CupertinoPageScaffold(

);
}
}
}
正在加载...
取消
保存