Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Latest commit

 

History

History
76 lines (55 loc) · 1.63 KB

index.md

File metadata and controls

76 lines (55 loc) · 1.63 KB
layout title nav_order description permalink
default
Home
1
Superpowers for your flutter widgets.
/

WidgetX

widgetx

Superpowers for your flutter widgets.

Collection of useful extensions on Flutter's Widget Kit.

Installation

In your flutter project add widgetx as a dependency in pubspec.yaml:

dependencies:
  ...
  widgetx: ^0.1.1
    

Example

import 'package:widgetx/widgetx.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: ['apple', 'oranges', 'grapes'].texts().column().container(),
    );
  }
}

Docs

Widget library docs at: https://pub.dev/documentation/widgetx/latest/

Available extensions

Alignment

center(), centerLeft(), centerRight(), topLeft(), ...

Layouts

row(), column(), stack(), container(), center(), padding(), ...

Texts

text(), textCenter(), networkImage(), circleAvatar(), ...

Lists

texts()

Todo

  • Add Docs for each extensions and examples.
  • Add tests to widget extensions.
  • Add more relevant extensions.

Status

This package at the moment is in pre-release and should be avoided for production apps. Feel free to raise issues around concerns, improvements.

Preview

A small preview of initial thought around what this package wants to solve: