row_collection 0.2.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 92

Row Collection #

Package License Stars PayPal Patreon

This Dart package offers developers a streamlined library of Flutter widgets, useful for displaying information in a row-based layout. As the baseline widget, there's the RowItem widget. It offers a multitude of options:

  • Text information: Useful when the associated value can be represented with a simple Text widget.
  • Boolean information: Useful when the associated value with a boolean value, which can be represented with an icon.
  • Interactive information: It allows the associated value, in this case a Text widget, to be clickable by the user.

This library offers ways to separate this and other interface elements, using the already-implemented Separator class:

  • Spacers: This kind of elements helps to separate UI elements, such as RowItem widgets.
  • Dividers: Helpful when you want to emphasize separation between sections.
  • Row layouts: Separate widgets automatically using Separator.spacer items.
  • Empty elements: Useful when you need to use an 'empty' widget, with height & width values equal to 0.

Both kind of widgets (RowItem & Separator) offer ways to be customizable. For instance, you can use the style parameter in the RowItem widgets to select a custom text theme.

Example #

Here is an example of a simple use of this package. If you want to take a deeper look at the example, take a look at the example/ folder provided with the project.

  children: <Widget>[
    RowItem.text('English', 'Hello'),
    RowItem.text('Español', 'Hola'),
    RowItem.text('English', 'Bye'),
    RowItem.text('Español', 'Adiós'),

Here's another way to achieve the same layout, using the Column widget.

  children: <Widget>[
    RowItem.text('English', 'Hello'),
    RowItem.text('Español', 'Hola'),
    RowItem.text('English', 'Bye'),
    RowItem.text('Español', 'Adiós'),

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Built with #

Authors #

License #

This project is licensed under the GNU GPL v3 License - see the file for details.

[0.2.4] - September 1st, 2019

  • Added basic widget testing.

[0.2.3+1] - Jule 27th, 2019

  • Bugs fixed.

[0.2.3] - Jule 23rd, 2019

  • BREAKING CHANGE: In RowLayout, substituted cardList named constructor to cards.
  • BREAKING CHANGE: In constructor, substituted cards parameter to children.
  • Updated RowLayout named constructors' parameters.
  • Updated documentation.

[0.2.2] - June 24th, 2019

  • Updated example project.
  • Fixed text alignment when overflow.

[0.2.1] - May 12th, 2019

  • Changed RowLayouy.cardList space from 6 to 4.
  • Deprecated thickDivider & cardSpacer in Separated.

[0.2.0] - May 9th, 2019

  • BREAKING CHANGE: In RowLayout, substituted card named constructor to cardList.
  • BREAKING CHANGE: Constructor of Separator.smallSpacer doesn't accept parameters now.
  • Added most of Column parameters to RowLayout.
  • Changed RowLayout.body padding from 18 to 16.
  • Changed cardSpacer height from 8 to 6.
  • Updated example project.

[0.1.0] - May 8th, 2019

  • BREAKING CHANGE: Changed Separator.spacer parameters to just space.
  • BREAKING CHANGE: Inside the Separator class, divider method is now thickDivider.
  • BREAKING CHANGE: Inside the Separator class, thinDivider method is now divider.
  • Added the RowLayout widget (see the example project).
  • Updated example project, to include the new features.
  • Small tweaks to RowItem.
  • Updated to Dart 2.2.2.

[0.0.2] - April 28th, 2019

  • Small fixes to documentation

[0.0.1] - April 28th, 2019

  • First release of this package! More features coming soon™


example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  row_collection: ^0.2.4

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:row_collection/row_collection.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.2.2 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies