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
2022-05-14 07:21:34 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6f6e8636ba21bac37835d43f31a661396bcd484c
6f6e8636
1 parent
06f9e4f6
Fix some Flutter 3 lints
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
demo/lib/app.dart
demo/lib/examples/resume.dart
demo/lib/main.dart
demo/lib/app.dart
View file @
6f6e863
...
...
@@ -164,8 +164,10 @@ class MyAppState extends State<MyApp> with SingleTickerProviderStateMixin {
}
void
_showSources
()
{
ul
.
launch
(
'https://github.com/DavBfr/dart_pdf/blob/master/demo/lib/examples/
${examples[_tab].file}
'
,
ul
.
launchUrl
(
Uri
.
parse
(
'https://github.com/DavBfr/dart_pdf/blob/master/demo/lib/examples/
${examples[_tab].file}
'
,
),
);
}
...
...
demo/lib/examples/resume.dart
View file @
6f6e863
...
...
@@ -273,10 +273,6 @@ class _Percent extends pw.StatelessWidget {
required
this
.
size
,
required
this
.
value
,
required
this
.
title
,
this
.
fontSize
=
1.2
,
this
.
color
=
green
,
this
.
backgroundColor
=
PdfColors
.
grey300
,
this
.
strokeWidth
=
5
,
});
final
double
size
;
...
...
@@ -285,13 +281,13 @@ class _Percent extends pw.StatelessWidget {
final
pw
.
Widget
title
;
final
double
fontSize
;
static
const
fontSize
=
1.2
;
final
PdfColor
color
;
PdfColor
get
color
=>
green
;
final
PdfColor
backgroundColor
;
static
const
backgroundColor
=
PdfColors
.
grey300
;
final
double
strokeWidth
;
static
const
strokeWidth
=
5.0
;
@override
pw
.
Widget
build
(
pw
.
Context
context
)
{
...
...
demo/lib/main.dart
View file @
6f6e863
...
...
@@ -27,8 +27,9 @@ class App extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
const
scrollbarTheme
=
ScrollbarThemeData
(
isAlwaysShown:
true
,
showTrackOnHover:
true
);
final
scrollbarTheme
=
ScrollbarThemeData
(
thumbVisibility:
MaterialStateProperty
.
all
(
true
),
);
return
MaterialApp
(
theme:
ThemeData
.
light
().
copyWith
(
scrollbarTheme:
scrollbarTheme
),
...
...
Please
register
or
login
to post a comment