Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in year button 2019 and 2020 of GSoD #245

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .gradle/7.5.1/checksums/checksums.lock
Binary file not shown.
Binary file not shown.
Empty file.
Binary file removed .gradle/7.5.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file removed .gradle/7.5.1/fileChanges/last-build.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file removed .gradle/7.5.1/fileHashes/fileHashes.lock
Binary file not shown.
Empty file removed .gradle/7.5.1/gc.properties
Empty file.
16 changes: 8 additions & 8 deletions lib/modals/gsod/gsod_modal_old.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:convert';

// This file will modal the projects in Google Summer of docs for year 2019 to 2020
class GsodModalOld {
String organization;
String organizationName;
String organizationUrl;
String technicalWriter;
String mentor;
Expand All @@ -15,7 +15,7 @@ class GsodModalOld {
String originalProjectProposalUrl;
int year;
GsodModalOld({
required this.organization,
required this.organizationName,
required this.organizationUrl,
required this.technicalWriter,
required this.mentor,
Expand All @@ -42,7 +42,7 @@ class GsodModalOld {
int? year,
}) {
return GsodModalOld(
organization: organization ?? this.organization,
organizationName: organization ?? this.organizationName,
organizationUrl: organizationUrl ?? this.organizationUrl,
technicalWriter: technicalWriter ?? this.technicalWriter,
mentor: mentor ?? this.mentor,
Expand All @@ -60,7 +60,7 @@ class GsodModalOld {

Map<String, dynamic> toMap() {
return <String, dynamic>{
'organization': organization,
'organization': organizationName,
'organization_url': organizationUrl,
'technical_writer': technicalWriter,
'mentor': mentor,
Expand All @@ -76,7 +76,7 @@ class GsodModalOld {

factory GsodModalOld.fromMap(Map<String, dynamic> map) {
return GsodModalOld(
organization: map['organization'] ?? "",
organizationName: map['organization'] ?? "",
organizationUrl: map['organization_url'] ?? "",
technicalWriter: map['technical_writer'] ?? "",
mentor: map['mentor'] ?? "",
Expand All @@ -97,14 +97,14 @@ class GsodModalOld {

@override
String toString() {
return 'GsodModalOld(organization: $organization, organizationUrl: $organizationUrl, technicalWriter: $technicalWriter, mentor: $mentor, project: $project, projectUrl: $projectUrl, report: $report, reportUrl: $reportUrl, originalProjectProposal: $originalProjectProposal, originalProjectProposalUrl: $originalProjectProposalUrl, year: $year)';
return 'GsodModalOld(organization: $organizationName, organizationUrl: $organizationUrl, technicalWriter: $technicalWriter, mentor: $mentor, project: $project, projectUrl: $projectUrl, report: $report, reportUrl: $reportUrl, originalProjectProposal: $originalProjectProposal, originalProjectProposalUrl: $originalProjectProposalUrl, year: $year)';
}

@override
bool operator ==(covariant GsodModalOld other) {
if (identical(this, other)) return true;

return other.organization == organization &&
return other.organizationName == organizationName &&
other.organizationUrl == organizationUrl &&
other.technicalWriter == technicalWriter &&
other.mentor == mentor &&
Expand All @@ -119,7 +119,7 @@ class GsodModalOld {

@override
int get hashCode {
return organization.hashCode ^
return organizationName.hashCode ^
organizationUrl.hashCode ^
technicalWriter.hashCode ^
mentor.hashCode ^
Expand Down
Loading
Loading