|
|
|
|
|
|
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( |
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |