fix: Switch to pdfrx pdf rendering library

This commit is contained in:
Anton Stubenbord
2024-01-07 17:46:33 +01:00
parent 27c4f7c937
commit 30f1e64cd4
13 changed files with 330 additions and 289 deletions

View File

@@ -1,7 +1,6 @@
name: mock_server
description: A new Flutter package project.
version: 0.0.1
homepage:
environment:
sdk: '>=3.0.0 <4.0.0'
@@ -13,12 +12,12 @@ dependencies:
logging: ^1.1.1
flutter:
sdk: flutter
http: ^0.13.5
http: ^1.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter_lints: ^2.0.3
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

View File

@@ -69,13 +69,13 @@ class RelativeDateRangeQuery extends DateRangeQuery {
DateTime get dateTime {
switch (unit) {
case DateRangeUnit.day:
return Jiffy().subtract(days: offset).dateTime;
return Jiffy.now().subtract(days: offset).dateTime;
case DateRangeUnit.week:
return Jiffy().subtract(weeks: offset).dateTime;
return Jiffy.now().subtract(weeks: offset).dateTime;
case DateRangeUnit.month:
return Jiffy().subtract(months: offset).dateTime;
return Jiffy.now().subtract(months: offset).dateTime;
case DateRangeUnit.year:
return Jiffy().subtract(years: offset).dateTime;
return Jiffy.now().subtract(years: offset).dateTime;
}
}

View File

@@ -16,10 +16,10 @@ dependencies:
equatable: ^2.0.5
http: ^1.0.0
json_annotation: ^4.8.1
intl: ^0.18.1
intl: ^0.19.0
dio: ^5.0.0
collection: ^1.17.0
jiffy: ^5.0.0
jiffy: ^6.2.2
freezed_annotation: ^2.4.1
hive: ^2.2.3
mockito: ^5.4.4