Search packages, repositories and app categories

GitHub repositorymrxten/flutex

flutex

Flutter widget extensions for functional creating UI.

flutex project cover
Stars
7
Forks
1
Last push (UTC)
Mar 9, 2021
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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 function Purpose
.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
.fill() Wrap widget with Positioned.fill
.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

Example

Check lib/example/lib/main.dart

License

MIT licensed

Vladislav Zhukov GitHub avatar
GitHub author

Vladislav Zhukov ↗

Dreamer

Belgorod, Russia
LanguagesDartKotlinSwiftObjective-C

Packages published by this repository

Dependencies used

Dependency list 2 items

  • flutter{"sdk":"flutter"}
  • flutter_testDevelopment{"sdk":"flutter"}

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗