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-11-08 06:45:08 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b110c8b970e68478a177e13aec5845de958a8e1a
b110c8b9
1 parent
c497623d
Add Inseparable Widget
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
pdf/CHANGELOG.md
pdf/lib/src/widgets/widget.dart
pdf/CHANGELOG.md
View file @
b110c8b
...
...
@@ -4,6 +4,7 @@
-
Improve TTF Writer compatibility
-
Apply THE BIDIRECTIONAL ALGORITHM using dart_bidi
[
Milad akarie
]
-
Add Inseparable Widget
## 3.8.4
...
...
pdf/lib/src/widgets/widget.dart
View file @
b110c8b
...
...
@@ -414,3 +414,23 @@ class DelayedWidget extends SingleChildWidget {
super
.
paint
(
context
);
}
}
class
Inseparable
extends
SingleChildWidget
{
Inseparable
({
required
Widget
child
,
bool
canSpan
=
false
})
:
_canSpan
=
canSpan
,
super
(
child:
child
);
final
bool
_canSpan
;
@override
bool
get
canSpan
=>
_canSpan
&&
super
.
canSpan
;
@override
bool
get
hasMoreWidgets
=>
_canSpan
&&
super
.
hasMoreWidgets
;
@override
void
paint
(
Context
context
)
{
super
.
paint
(
context
);
paintChild
(
context
);
}
}
...
...
Please
register
or
login
to post a comment