napa_widgets 0.4.0 copy "napa_widgets: ^0.4.0" to clipboard
napa_widgets: ^0.4.0 copied to clipboard

Napa widgets are an inspectable and serializable version of common Flutter widgets.

Napa widgets are an inspectable and serializable version of common Flutter widgets.

Features #

  • Inspect in real time internal properties.
  • JSON compatible serialization/deserialization.

Library status #

Widget name Status Comment
Align Ok
AspectRatio Ok
BackdropFilter Ok
Baseline Ok
Center Ok
ClipOval Ok No CustomClipper implementation.
ClipPath Pending No CustomClipper implementation.
ClipRect Ok No CustomClipper implementation.
ClipRRect Ok No CustomClipper implementation.
ClipRSuperellipse Ok No CustomClipper implementation.
Column Ok
Container Ok
CustomPaint Ok
DecoratedBox Ok
Expanded Ok
FittedBox Ok
Flex Ok
Flexible Ok
Flow Pending
Icon Pending
Image Ok
ImageFiltered Ok
ListView Ok
Opacity Ok
Padding Ok
Positioned Ok
RepaintBoundary Ok
RotatedBox Ok
Row Ok
SizedBox Ok
Stack Ok
Text Ok
Transform Ok
Wrap Ok

Usage #

Compose Napa widgets and transform to regular widgets...

///
/// Basic example
/// 
const napaWidget = NapaPadding(
  padding: EdgeInsetsGeometry.all(8.0),
  child: NapaText('Hello world!!!'),
);

Widget flutterWidget = napaWidget.toWidget();

Scripting example:

const napaWidget = NapaCustomPaint(
  painter: NapaCustomPainter(
    type: .lua,
    script: '''
      -- paint signature
      function paint(canvas, size)
      end
    '''
  )
);

Widget flutterWidget = napaWidget.toWidget();
0
likes
160
points
254
downloads

Publisher

verified publisherleal.systems

Weekly Downloads

Napa widgets are an inspectable and serializable version of common Flutter widgets.

Repository (GitHub)
View/report issues

Topics

#reflection #serialization #ui #scripting

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, inspectable_property, lua_dardo_plus, vector_math

More

Packages that depend on napa_widgets