nebula 0.3.0 copy "nebula: ^0.3.0" to clipboard
nebula: ^0.3.0 copied to clipboard

Nebula makes your Flutter development journey easier by providing helper widgets, utilities and abstractions.

example/example.dart

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

class MyExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Column(
        children: [
          /// `FitSize` widget
          FitSize(
            height: 250,
            alignment: Alignment.topRight,
            fit: BoxFit.fitWidth,
            clipBehavior: Clip.none,
            child: Text('This is my FitSize'),
          ),

          /// `Dimension` widget
          Dimension(
            /// You can omit the context, in which case the
            /// widget will use its own context
            context: context,

            builder: (h, w) {
              return Row(
                children: [
                  SizedBox(
                    height: h * 0.3,
                    width: w * 0.3,
                    child: Center(child: Text('A')),
                  ),
                  SizedBox(
                    height: h * 0.3,
                    width: w * 0.5,
                    child: Center(child: Text('B')),
                  ),
                  SizedBox(
                    height: h * 0.3,
                    width: w * 0.2,
                    child: Center(child: Text('C')),
                  ),
                ],
              );
            },
          ),
        ],
      ),
    );
  }
}
1
likes
130
points
43
downloads

Publisher

verified publisheraldrinsartfactory.com

Weekly Downloads

Nebula makes your Flutter development journey easier by providing helper widgets, utilities and abstractions.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on nebula