changed savings goal goal type to int
This commit is contained in:
@@ -12,7 +12,7 @@ class GoalsScreen extends ConsumerStatefulWidget{
|
||||
Subtask(name: "Terminar los deberes", completed: true),
|
||||
Subtask(name: "Recoger la mesa", completed: true),
|
||||
Subtask(name: "Lavarse los dientes", completed: false)
|
||||
]), Task(rewardAmount: 10.05)];
|
||||
]), Task(rewardAmount: 10)];
|
||||
final List<SavingsGoal> savingsGoals;
|
||||
|
||||
@override
|
||||
@@ -407,7 +407,7 @@ class SavingsBlockState extends ConsumerState<SavingsBlock>{
|
||||
spacing: 8,
|
||||
children: [
|
||||
ProgressBar(
|
||||
max: widget.savings[index].goal,
|
||||
max: widget.savings[index].goal+0.0,
|
||||
value: widget.savings[index].saved,
|
||||
height: 64,
|
||||
textSize: 40,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class SavingsGoal{
|
||||
|
||||
final String name;
|
||||
final double goal;
|
||||
final int goal;
|
||||
final double saved;
|
||||
|
||||
const SavingsGoal({
|
||||
|
||||
Reference in New Issue
Block a user