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-11-19 18:25:32 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
daa3397e41def80753501baeabc8edf3a07dc443
daa3397e
1 parent
1f03e205
Add Builder widget
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
pdf/lib/widgets/basic.dart
printing/CHANGELOG.md
pdf/lib/widgets/basic.dart
View file @
daa3397
...
...
@@ -647,3 +647,22 @@ class SizedBox extends StatelessWidget {
constraints:
BoxConstraints
.
tightFor
(
width:
width
,
height:
height
));
}
}
typedef
WidgetBuilder
=
Widget
Function
(
Context
context
);
/// A platonic widget that calls a closure to obtain its child widget.
class
Builder
extends
StatelessWidget
{
/// Creates a widget that delegates its build to a callback.
///
/// The [builder] argument must not be null.
Builder
({
@required
this
.
builder
,
})
:
assert
(
builder
!=
null
),
super
();
/// Called to obtain the child widget.
final
WidgetBuilder
builder
;
@override
Widget
build
(
Context
context
)
=>
builder
(
context
);
}
...
...
printing/CHANGELOG.md
View file @
daa3397
...
...
@@ -5,6 +5,7 @@
-
Add Markdown example
-
Update printing example
-
Change the channel name
-
Add Builder widget
## 2.1.8
...
...
Please
register
or
login
to post a comment