Static Nav Drawer in landscape
This commit is contained in:
@@ -61,6 +61,12 @@ class _ProjectDetailsState extends State<ProjectDetails> {
|
||||
if (withinRange) {
|
||||
|
||||
if (lastDay != element.startTime.day) {
|
||||
if(element.startTime.day - lastDay > 1 && lastDay!=-1){
|
||||
for(int i =1; i < element.startTime.day - lastDay; i++){
|
||||
timeProgressionData.add(ProjectChartData(justDate(element.startTime.subtract(Duration(days: i))), totalTimeSpent));
|
||||
timeSpentData.add(ProjectChartData(justDate(element.startTime.subtract(Duration(days: i))), 0));
|
||||
}
|
||||
}
|
||||
if (totalTimeSpent > 0) {
|
||||
timeProgressionData.add(ProjectChartData(justDate(element.startTime), totalTimeSpent));
|
||||
}
|
||||
@@ -82,7 +88,7 @@ class _ProjectDetailsState extends State<ProjectDetails> {
|
||||
int stepsCompleted = 1;
|
||||
stepsProgressionData=[];
|
||||
|
||||
stepsProgressionData.add(ProjectChartData(timeProgressionData[0]!.day,0));
|
||||
if(stepsProgressionData.isNotEmpty)stepsProgressionData.add(ProjectChartData(timeProgressionData[0].day,0));
|
||||
|
||||
for(int i =0; i < steps.length; i++){
|
||||
if(steps[i].finishedDate==null){continue;}
|
||||
|
||||
Reference in New Issue
Block a user