flutter_widget_extension_methods 1.0.0 copy "flutter_widget_extension_methods: ^1.0.0" to clipboard
flutter_widget_extension_methods: ^1.0.0 copied to clipboard

SwiftUI-style methods to make widget styling easier and more readable.

Widget Extensions #

Enables you to style widgets with extension methods.

Example #

Widget build() {
    return Text('Extensions!')
        .padding(all: 10)
        .decorated(color: Colors.red)
        .clipRRect(borderRadius: 10);
}

Widget Coverage #

Complete #

  • AbsorbPointer
  • Align
  • AnimatedAlign
  • AnimatedBuilder
  • AnimatedContainer
  • AnimatedDefaultTextStyle
  • AnimatedOpacity
  • AnimatedPhysicalModel
  • AnimatedPositioned
  • AnimatedSize
  • AspectRatio
  • BackdropFilter
  • Badge
  • Baseline
  • Card
  • Center
  • ClipOval
  • ClipPath
  • ClipRRect
  • ClipRect
  • Column
  • ConstrainedBox
  • Container
  • CustomPaint
  • CustomSingleChildLayout
  • DecoratedBox
  • Dismissible
  • Draggable
  • ExcludeSemantics
  • Expanded
  • FadeTransition
  • FittedBox
  • Flex
  • FractionalTranslation
  • FractionallySizedBox
  • GestureDetector
  • Hero
  • IgnorePointer
  • InkWell
  • InteractiveViewer
  • IntrinsicHeight
  • IntrinsicWidth
  • LimitedBox
  • ListenableBuilder
  • LongPressDraggable
  • Material
  • MergeSemantics
  • NotificationListener
  • Offstage
  • Opacity
  • OverflowBox
  • Padding
  • PositionedTransition
  • RawKeyboardListener
  • RefreshIndicator
  • RotatedBox
  • RotationTransition
  • Row
  • ScaleTransition
  • Scrollbar
  • Semantics
  • SingleChildScrollView
  • SizeTransition
  • SizedBox
  • SizedOverflowBox
  • SlideTransition
  • Stack
  • Transform
  • Wrap

Possible but unimplemented #

  • All sliver widgets
  • DecoratedBoxTransition
  • Form
  • MediaQuery
  • Theme

Anything not listed above is not possible or not planned.

1
likes
150
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

SwiftUI-style methods to make widget styling easier and more readable.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

austerity, flutter

More

Packages that depend on flutter_widget_extension_methods