Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2019-09-20 08:11:11 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
14ce185ffb87beb359c0c0b0453da1e40dde9bde
14ce185f
1 parent
c803e3cf
Add TravisCi configuration file
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
.travis.yml
Makefile
README.md
test/extract_readme.dart
.travis.yml
0 → 100644
View file @
14ce185
language
:
dart
dist
:
bionic
addons
:
apt
:
packages
:
-
lib32stdc++6
install
:
-
git clone https://github.com/flutter/flutter.git -b stable --depth 1 $HOME/flutter
-
export PATH=$HOME/flutter/bin:$PATH
-
flutter doctor
-
flutter --version
script
:
-
make analyze-ci-pdf
-
make analyze-ci-printing
-
make test
-
make test-readme
...
...
Makefile
View file @
14ce185
...
...
@@ -117,6 +117,16 @@ analyze-printing: .pana
analyze
:
analyze-pdf analyze-printing
analyze-ci-pdf
:
.pana
@
find pdf -name pubspec.yaml -exec sed -i -e
's/^dependency_overrides:/_dependency_overrides:/g'
'{}'
';'
@
pub global run pana --no-warning --source path pdf
@
find pdf -name pubspec.yaml -exec sed -i -e
's/^_dependency_overrides:/dependency_overrides:/g'
'{}'
';'
analyze-ci-printing
:
.pana
@
find printing -name pubspec.yaml -exec sed -i -e
's/^dependency_overrides:/_dependency_overrides:/g'
'{}'
';'
@
pub global run pana --no-warning --source path printing
@
find printing -name pubspec.yaml -exec sed -i -e
's/^_dependency_overrides:/dependency_overrides:/g'
'{}'
';'
.dartfix
:
pub global activate dartfix
touch
$@
...
...
README.md
View file @
14ce185
# Pdf for Dart and Flutter
This set of plugin allows Flutter apps to generate and print pdf files to device printer.
This plugin works for iOS and Android.
[

](https://travis-ci.org/DavBfr/dart_pdf)
*
dart pdf:
<https://pub.dartlang.org/packages/pdf>
*
flutter printing:
<https://pub.dartlang.org/packages/printing>
This set of plugin allows Flutter apps to generate and print pdf files to device printer. This plugin works for iOS and Android.
-
dart pdf:
<https://pub.dartlang.org/packages/pdf>
-
flutter printing:
<https://pub.dartlang.org/packages/printing>
[

](https://www.buymeacoffee.com/JORBmbw9h "Buy Me A Coffee")
...
...
test/extract_readme.dart
View file @
14ce185
...
...
@@ -19,6 +19,10 @@ import 'dart:io';
import
'package:markdown/markdown.dart'
as
md
;
Iterable
<
String
>
getCode
(
List
<
md
.
Node
>
nodes
,
[
bool
isCode
=
false
])
sync
*
{
if
(
nodes
==
null
)
{
return
;
}
for
(
md
.
Node
node
in
nodes
)
{
if
(
node
is
md
.
Element
)
{
// print(node.tag);
...
...
Please
register
or
login
to post a comment