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
Shahriyar Aghajani
2023-03-10 12:31:51 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
David PHAM-VAN
2023-05-02 09:06:50 -0300
Commit
7b9b7f67d735b9b070563561003049078270bbec
7b9b7f67
1 parent
cb38b0f3
change text widget in table to widget
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
pdf/lib/src/widgets/table.dart
pdf/lib/src/widgets/table.dart
View file @
7b9b7f6
...
...
@@ -351,7 +351,6 @@ class Table extends Widget with SpanningWidget {
}
else
{
for
(
final
dynamic
cell
in
row
)
{
final
align
=
cellAlignments
[
tableRow
.
length
]
??
cellAlignment
;
final
textAlign
=
_textAlign
(
align
);
tableRow
.
add
(
Container
(
alignment:
align
,
...
...
@@ -360,13 +359,14 @@ class Table extends Widget with SpanningWidget {
decoration:
cellDecoration
==
null
?
null
:
cellDecoration
(
tableRow
.
length
,
cell
,
rowNum
),
child:
Text
(
child:
cell
is
String
?
Text
(
cellFormat
==
null
?
cell
.
toString
()
:
cellFormat
(
tableRow
.
length
,
cell
),
style:
isOdd
?
oddCellStyle
:
cellStyle
,
textAlign:
textAlign
,
),
textAlign:
_textAlign
(
align
))
:
(
cell
is
Widget
?
cell
:
null
),
),
);
}
...
...
Please
register
or
login
to post a comment