Static Nav Drawer in landscape

This commit is contained in:
Sewmina
2022-04-25 15:01:05 +05:30
parent 9f5ef1a7f1
commit 8af736fab1
11 changed files with 507 additions and 366 deletions

View File

@@ -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;}