Skip to content
Open
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
4 changes: 2 additions & 2 deletions packages/explorer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ dev_dependencies:
flutter_lints: ^2.0.2

scripts:
i18n_to_arb: flutter pub run intl_translation:extract_to_arb --output-dir=locales lib/src/i18n/string_resources.dart
i18n_from_arb: flutter pub run intl_translation:generate_from_arb lib/src/i18n/string_resources.dart locales/*.arb --output-dir=lib/src/i18n/messages
i18n_to_arb: dart run intl_translation:extract_to_arb --output-dir=locales lib/src/i18n/string_resources.dart
i18n_from_arb: dart run intl_translation:generate_from_arb lib/src/i18n/string_resources.dart locales/*.arb --output-dir=lib/src/i18n/messages
5 changes: 3 additions & 2 deletions packages/pdfx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ flutter pub add pdfx

For web run tool for automatically add pdfjs library (CDN) in index.html:
```shell
flutter pub run pdfx:install_web
dart run pdfx:install_web
```

For windows run tool automatically add override for pdfium version property in CMakeLists.txt file:
```
flutter pub run pdfx:install_windows
dart run pdfx:install_windows
```

## Usage example
Expand Down Expand Up @@ -373,3 +373,4 @@ This plugin uses the iOS & MacOs native [CGPDFPage](https://developer.apple.com/

### On Windows
This plugin uses [PDFium](https://pdfium.googlesource.com/pdfium/+/master/README.md)

Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value)
}

/**
* Rebuild: `flutter pub run pigeon --input pigeons/message.dart`
* Rebuild: `dart run pigeon --input pigeons/message.dart`
* After build edit ios/Classes/pigeon/messages.m
* replace `#import <Flutter/Flutter.h>` to
* ````
Expand Down
2 changes: 1 addition & 1 deletion packages/pdfx/ios/Classes/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ NS_ASSUME_NONNULL_BEGIN
///The codec used by PdfxApi.
NSObject<FlutterMessageCodec> *PdfxApiGetCodec(void);

/// Rebuild: `flutter pub run pigeon --input pigeons/message.dart`
/// Rebuild: `dart run pigeon --input pigeons/message.dart`
/// After build edit ios/Classes/pigeon/messages.m
/// replace `#import <Flutter/Flutter.h>` to
/// ````
Expand Down
2 changes: 1 addition & 1 deletion packages/pdfx/lib/src/renderer/io/pigeon.dart
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class _PdfxApiCodec extends StandardMessageCodec {
}
}

/// Rebuild: `flutter pub run pigeon --input pigeons/message.dart`
/// Rebuild: `dart run pigeon --input pigeons/message.dart`
/// After build edit ios/Classes/pigeon/messages.m
/// replace `#import <Flutter/Flutter.h>` to
/// ````
Expand Down
2 changes: 1 addition & 1 deletion packages/pdfx/lib/src/renderer/web/platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PdfxWeb extends PdfxPlatform {
assert(
checkPdfjsLibInstallation(),
'pdf.js not added in web/index.html. '
'Run «flutter pub run pdfx:install_web» or add script manually');
'Run «dart run pdfx:install_web» or add script manually');
_eventChannel.setController(_eventStreamController);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/pdfx/pigeons/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class UnregisterTextureMessage {
int? id;
}

/// Rebuild: `flutter pub run pigeon --input pigeons/message.dart`
/// Rebuild: `dart run pigeon --input pigeons/message.dart`
/// After build edit ios/Classes/pigeon/messages.m
/// replace `#import <Flutter/Flutter.h>` to
/// ````
Expand Down
2 changes: 1 addition & 1 deletion packages/pdfx/scripts/pigeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ BBlue='\033[1;34m'


echo "$BBlue Run pigeon generator$Color_Off"
flutter pub run pigeon --input pigeons/messages.dart
dart run pigeon --input pigeons/messages.dart
echo "$Green Success$Color_Off"


Expand Down