Created
December 28, 2020 18:41
-
-
Save azamsharp/a9a64645020b4a35a7cc206fbb1c1ff3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return Row( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: [ | |
Row( | |
children: stars, | |
), | |
FlatButton( | |
child: Text("Clear", style: TextStyle(color: Colors.blue)), | |
onPressed: () { | |
setState(() { | |
_currentRating = 0; | |
}); | |
this.widget.onRatingSelected(_currentRating); | |
}, | |
) | |
], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment