nflex 0.0.2 copy "nflex: ^0.0.2" to clipboard
nflex: ^0.0.2 copied to clipboard

A Flex implementation similar to FlutterFlex, aimed to be simpler, faster, and fixing some limitations.

example/lib/main.dart

import 'package:flutter/widgets.dart';
import 'package:nflex/nflex.dart';

class Example extends StatelessWidget {
  const Example({super.key});

  @override
  Widget build(BuildContext context) {
    return NFlex(
      padding: const EdgeInsets.all(10.0),
      direction: Axis.horizontal,
      children: [
        Container(
          color: const Color.fromRGBO(255, 0, 0, 1),
          constraints: const BoxConstraints.tightFor(width: 100, height: 100),
        ),
        Container(
          color: const Color.fromARGB(255, 200, 255, 0),
          constraints: const BoxConstraints.tightFor(width: 80, height: 80),
        ),
      ],
    );
  }
}
1
likes
150
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A Flex implementation similar to FlutterFlex, aimed to be simpler, faster, and fixing some limitations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on nflex