flutex 1.1.1

Flutter Android iOS web

Flutter widget extensions for functional creating UI.

Flutter widget extensions for functional creating UI. #

pub package

Getting Started #

Add this to your package's pubspec.yaml file:

dependencies:
  flutex: ^1.1.0

Then add import to your dart file (right now VSCode and Android studio cannot auto import files for dart extensions):

import 'package:flutex/flutex.dart';

Available extensions #

Extension functionPurpose
.padding()Wrap widget with Padding
.expanded()Wrap widget with Expanded
.flexible()Wrap widget with Flexible
.opacity()Wrap widget with Opacity
.align()Wrap widget with Align
.center()Wrap widget with Center
.top()Wrap widget with Align(alignment: Alignment.topCenter)
.bottom()Wrap widget with Align(alignment: Alignment.bottomCenter)
.left()Wrap widget with Align(alignment: Alignment.centerLeft)
.right()Wrap widget with Align(alignment: Alignment.centerRight)
.positioned()Wrap widget with Positioned
.rotatedBox()Wrap widget with RotatedBox
.sizedBox()Wrap widget with SizedBox
.constrainedBox()Wrap widget with ConstrainedBox
.expand()Wrap widget with ConstrainedBox(constraints: BoxConstraints.expand())
.visibility()Wrap widget with Visibility
.safeArea()Wrap widget with SafeArea
.onTap()Wrap widget with GestureDetector
.inkWell()Wrap widget with InkWell
.materialInkWell()Wrap widget with Material includes InkWell
.rotate()Wrap widget with Transform.rotate
.scale()Wrap widget with Transform.scale
.translate()Wrap widget with Transform.translate
.sliverListChild()Wrap widget with SliverList includes SliverChildListDelegate

Example #

Check lib/example/lib/main.dart

License #

MIT licensed

10
likes
90
pub points
48%
popularity

Flutter widget extensions for functional creating UI.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

vzhukov1996@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutex