Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smirltech/row_column

un flutter widget qui se transforme on Row ou column
https://github.com/smirltech/row_column

Last synced: 10 days ago
JSON representation

un flutter widget qui se transforme on Row ou column

Awesome Lists containing this project

README

        

This is a widget that displays a list of items.
Same widget that behaves like a row and like a column.

## Features

We currently have the following features:

- [RowColumn] is a widget that displays multiple items, either horizontally or vertically, manually after specifying the Axis direction.
- [FlexibleRowColumn] is a widget that displays multiple items, either horizontally or vertically automatically after detecting orientation.

## Getting started

Import the package:

```
import 'package:row_column/row_column.dart';
```

To start using this package, add the following to your `pubspec.yaml` file:

```
depensencies:
row_column: ^0.0.1
```

## Usage

To user it just add the widget to the widget tree :

- This `RowColumn` can switch between column and row by specifying the `direction` property.:

```
RowColumn(
mainAxisAlignment: MainAxisAlignment.spaceAround,
direction: Axis.horizontal,
children: [
const Text('Hello'),
const Text('My'),
const Text('Lovely'),
const Text('World'),
],
),
```

- This `FlexibleRowColumn` can detect the orientation of the device and switch betwin column and row automatically:

```
FlexibleRowColumn(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
const Text('Hello'),
const Text('My'),
const Text('Lovely'),
const Text('World'),
],
),
```

## Additional information

Tell users more about the package: where to find more information, how to
contribute to the package, how to file issues, what response they can expect
from the package authors, and more.