Skip to content

Commit

Permalink
chore: update cached_network_image; minor refactor to category feed
Browse files Browse the repository at this point in the history
  • Loading branch information
JideGuru committed Dec 25, 2023
1 parent 9e89132 commit 2b7f064
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 28 deletions.
50 changes: 50 additions & 0 deletions lib/src/common/domain/models/category_feed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ class CategoryFeed {
}
return data;
}

@override
String toString() {
return 'CategoryFeed(version: $version, encoding: $encoding, feed: $feed)';
}
}

class Feed {
Expand Down Expand Up @@ -168,6 +173,11 @@ class Feed {
}
return data;
}

@override
String toString() {
return 'Feed(xmlLang: $xmlLang, xmlns: $xmlns, xmlnsDcterms: $xmlnsDcterms, xmlnsThr: $xmlnsThr, xmlnsApp: $xmlnsApp, xmlnsOpensearch: $xmlnsOpensearch, xmlnsOpds: $xmlnsOpds, xmlnsXsi: $xmlnsXsi, xmlnsOdl: $xmlnsOdl, xmlnsSchema: $xmlnsSchema, id: $id, title: $title, updated: $updated, icon: $icon, author: $author, link: $link, opensearchTotalResults: $opensearchTotalResults, opensearchItemsPerPage: $opensearchItemsPerPage, opensearchStartIndex: $opensearchStartIndex, entry: $entry)';
}
}

class Id {
Expand All @@ -184,6 +194,11 @@ class Id {
data[r'$t'] = t;
return data;
}

@override
String toString() {
return 'Id(t: $t)';
}
}

class Author {
Expand Down Expand Up @@ -218,6 +233,11 @@ class Author {
}
return data;
}

@override
String toString() {
return 'Author(name: $name, uri: $uri, email: $email)';
}
}

class Link {
Expand Down Expand Up @@ -260,6 +280,11 @@ class Link {
data['thr:count'] = thrCount;
return data;
}

@override
String toString() {
return 'Link(rel: $rel, type: $type, href: $href, title: $title, opdsActiveFacet: $opdsActiveFacet, opdsFacetGroup: $opdsFacetGroup, thrCount: $thrCount)';
}
}

class Entry {
Expand Down Expand Up @@ -389,6 +414,11 @@ class Entry {
}
return data;
}

@override
String toString() {
return 'Entry(title: $title, id: $id, author: $author, published: $published, updated: $updated, dctermsLanguage: $dctermsLanguage, dctermsPublisher: $dctermsPublisher, dctermsIssued: $dctermsIssued, summary: $summary, category: $category, link: $link, schemaSeries: $schemaSeries)';
}
}

class Author1 {
Expand Down Expand Up @@ -416,6 +446,11 @@ class Author1 {
}
return data;
}

@override
String toString() {
return 'Author1(name: $name, uri: $uri)';
}
}

class Category {
Expand All @@ -438,6 +473,11 @@ class Category {
data['scheme'] = scheme;
return data;
}

@override
String toString() {
return 'Category(label: $label, term: $term, scheme: $scheme)';
}
}

class Link1 {
Expand All @@ -463,6 +503,11 @@ class Link1 {
data['href'] = href;
return data;
}

@override
String toString() {
return 'Link1(type: $type, rel: $rel, title: $title, href: $href)';
}
}

class SchemaSeries {
Expand All @@ -485,4 +530,9 @@ class SchemaSeries {
data['schema:url'] = schemaUrl;
return data;
}

@override
String toString() {
return 'SchemaSeries(schemaPosition: $schemaPosition, schemaName: $schemaName, schemaUrl: $schemaUrl)';
}
}
38 changes: 11 additions & 27 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -149,26 +149,26 @@ packages:
dependency: "direct main"
description:
name: cached_network_image
sha256: fd3d0dc1d451f9a252b32d95d3f0c3c487bc41a75eba2e6097cb0b9c71491b15
sha256: f98972704692ba679db144261172a8e20feb145636c617af0eb4022132a6797f
url: "https://pub.dev"
source: hosted
version: "3.2.3"
version: "3.3.0"
cached_network_image_platform_interface:
dependency: transitive
description:
name: cached_network_image_platform_interface
sha256: bb2b8403b4ccdc60ef5f25c70dead1f3d32d24b9d6117cfc087f496b178594a7
sha256: "56aa42a7a01e3c9db8456d9f3f999931f1e05535b5a424271e9a38cabf066613"
url: "https://pub.dev"
source: hosted
version: "2.0.0"
version: "3.0.0"
cached_network_image_web:
dependency: transitive
description:
name: cached_network_image_web
sha256: b8eb814ebfcb4dea049680f8c1ffb2df399e4d03bf7a352c775e26fa06e02fa0
sha256: "759b9a9f8f6ccbb66c185df805fac107f05730b1dab9c64626d1008cca532257"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
version: "1.1.0"
characters:
dependency: transitive
description:
Expand Down Expand Up @@ -366,22 +366,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "8.1.3"
flutter_blurhash:
dependency: transitive
description:
name: flutter_blurhash
sha256: "05001537bd3fac7644fa6558b09ec8c0a3f2eba78c0765f88912882b1331a5c6"
url: "https://pub.dev"
source: hosted
version: "0.7.0"
flutter_cache_manager:
dependency: transitive
description:
name: flutter_cache_manager
sha256: "32cd900555219333326a2d0653aaaf8671264c29befa65bbd9856d204a4c9fb3"
sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba"
url: "https://pub.dev"
source: hosted
version: "3.3.0"
version: "3.3.1"
flutter_fimber:
dependency: transitive
description:
Expand Down Expand Up @@ -718,10 +710,10 @@ packages:
dependency: transitive
description:
name: octo_image
sha256: "107f3ed1330006a3bea63615e81cf637433f5135a52466c7caa0e7152bca9143"
sha256: "45b40f99622f11901238e18d48f5f12ea36426d8eced9f4cbf58479c7aa2430d"
url: "https://pub.dev"
source: hosted
version: "1.0.2"
version: "2.0.0"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -786,14 +778,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.6"
pedantic:
dependency: transitive
description:
name: pedantic
sha256: "67fc27ed9639506c856c840ccce7594d0bdcd91bc8d53d6e52359449a1d50602"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
permission_handler:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1377,4 +1361,4 @@ packages:
version: "3.1.1"
sdks:
dart: ">=3.1.0 <4.0.0"
flutter: ">=3.7.0"
flutter: ">=3.10.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ environment:

dependencies:
auto_route: ^7.4.0
cached_network_image: ^3.2.3
cached_network_image: ^3.3.0
cupertino_icons: ^1.0.3
dio: ^5.4.0
flutter:
Expand Down

0 comments on commit 2b7f064

Please sign in to comment.