Skip to content

un flutter widget qui se transforme on Row ou column

License

Notifications You must be signed in to change notification settings

smirltech/row_column

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

un flutter widget qui se transforme on Row ou column

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published