Skip to content

modulovalue/flutter_apply

Repository files navigation

flutter_apply

extra_pedantic on pub.dev Travis CI Codecov License Pub.dev Github Stars Twitter Follow GitHub Follow

example

dependencies:
  flutter_apply:
    git:
      url: git@github.com:modulovalue/flutter_apply.git
      # take the newest commit id
      ref: 4d043c82b67da2f8b011d030c4b62efd2d47b786
import 'package:flutter/material.dart';
import 'package:flutter_apply/flutter_apply.dart';

class ExampleNew extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return scaffold()
      & bgColor(Colors.blue[100])
        & center()
        & singleChildScrollView() >
          onColumnMin() >>
            padding(all: 5.0) * [
              textAsCaption() >
                const Text("Hello"),

              textProperties(
                size: 20,
                weight: FontWeight.w900,
              ) >
                const Text("This is"),

              textColor(Colors.white) &
              textSize(40.0) &
              textWeight700() >
                const Text("flutter_apply"),

              verticalSpace(50.0),

              const FlutterLogo(),
            ];
  }
}

About

A new way to write and compose Flutter Widgets.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages