xiooloo / flutter-star Goto Github PK
View Code? Open in Web Editor NEW//5星 Widget _ratings() { return new Container( padding: new EdgeInsets.all(20.0), margin: const EdgeInsets.all(20.0), decoration: BoxDecoration( border: Border.all(width: 2.0, color: Colors.green), ), child: new Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ new Row( mainAxisSize: MainAxisSize.min, children: <Widget>[ new Icon(Icons.star, color: Colors.black), new Icon(Icons.star, color: Colors.black), new Icon(Icons.star, color: Colors.black), new Icon(Icons.star, color: Colors.black), new Icon(Icons.star, color: Colors.black), ], ), new Text('170 Reviews', style: new TextStyle( color: Colors.black, fontWeight: FontWeight.w800, fontFamily: 'Roboto', letterSpacing: 0.5, fontSize: 20.0, )) ]));