This file contains 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
ColorTween colors = ColorTween(begin: Colors.red[900], end: Colors.green); | |
Widget renderChoices(BuildContext context) { | |
return Container( | |
child: Row(children: [ | |
Text('0'), | |
Expanded( | |
child: Slider( | |
min: 0, | |
max: 1, |
This file contains 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
toBig = number => { | |
const multiplier = Math.pow(10, countDecimalPlaces(someValue)) | |
// How to make sure there are no decimal points?? I know lets convert to string and back | |
return parseInt((number * multiplier).toFixed(0)) | |
} |
This file contains 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
Calendar c = Calendar.getInstance(); | |
for(int i = 0; i < days; i++){ | |
int daysToAdd = i - (i-1); | |
c.add(Calendar.DAY_OF_YEAR, daysToAdd); | |
} |