array_view 0.0.1 copy "array_view: ^0.0.1" to clipboard
array_view: ^0.0.1 copied to clipboard

discontinuedreplaced by: spaced_flex

Customizable Flutter row and column widgets that provide additional functionality.

Flutter Array View #

pub github buy me a coffee

Customizable Flutter Row and Column widgets that provide additional functionality.

Usage & features #

ArrayView(...)

Add spacing between children #

This property implicitly adds SizedBox widgets with specified height/width (depending on the direction) between children.

ArrayView.row(
  spacing: 16,
  children: [
    Text('Hello'),
    Text('World!'),
    Text(':)'),
  ],
),

Specify direction based on condition #

ArrayView(
  direction: condition ? Axis.horizontal : Axis.vertical,
  children: [...],
),

Define padding that can be ignored by specific children #

If you use IgnoreArrayPadding as a child of ArrayView, it will not be affected by the padding specified in the ArrayView.

ArrayView.column(
  spacing: 16,
  padding: EdgeInsets.all(16),
  children: [
    Text('Lorem ipsum'),
    // This widget will ignore the padding
    IgnoreArrayPadding(
      child: Image.network(...),
    ),
    Text('dolor sit amet.'),
  ],
),

Suggest a feature #

If you have an idea that might enhance Row and Column widgets, feel free to open an issue at the issue tracker.

2
likes
160
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Customizable Flutter row and column widgets that provide additional functionality.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on array_view