Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override
- Widget build(BuildContext context) {
- return new Expanded(child: new Container(
- //padding: new EdgeInsets.only(top: statusBarHeight),
- //height: 150.0,
- child: new FlatButton(
- onPressed: () {
- Navigator.push(
- context, SlideInFromRight(builder: (context) => widget)
- );
- },
- child: Center(child:
- new Column(children: <Widget>[
- new Expanded(flex: 70, child:
- //new Icon(icon, color: _getColorIcon(), size: 50.0)),
- new Image.asset(icon, width: 50.0)),
- new Expanded(flex: 30, child:
- new Text(title,
- style: _getTextStyle())
- ),
- ],),
- ),
- ),
- decoration: new BoxDecoration(
- border: new Border.all(color: Colors.grey, width: 0.3),
- gradient: new LinearGradient(
- colors: [
- _getColorStart(),
- _getColorEnd()
- ],
- begin: Alignment.topCenter,
- end: Alignment.bottomCenter,
- //stops: [0.0, 1.0],
- tileMode: TileMode.clamp
- ),
- ),
- ),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement