speed_up_flutter 0.6.7 copy "speed_up_flutter: ^0.6.7" to clipboard
speed_up_flutter: ^0.6.7 copied to clipboard

outdated

This package will speed up your developing.

speed_up_flutter #

This package will speed up your developing.

Usage #

Number extensions #

20.h; // Add vertical spacing
20.w; // Add horizontal spacing

Section #

A section is a thematic grouping of content, typically with a heading

Section(
  [
    Text('Name Andrew'),
    10.h,
    Text('Age 18'),
  ],
  heading: Text('User info'),
)

FirstLastItemInList #

ListView.separated(
  // scrollDirection: Axis.horizontal,
  itemBuilder: (_, index) => FirstLastItemInList(
    child: ContactListItemView(
      ContactModel.fakeList.elementAt(index),
    ),
    index: index,
    total: ContactModel.fakeList.length,
    // scrollDirection: Axis.horizontal,
  ),
  separatorBuilder: (_, __) => 20.h,
  itemCount: ContactModel.fakeList.length,
),

Side Padding #

ListView().sidePadded(pad:, axis:);

getTextSize #

Useful when need calculate AppBar's height

final Size textSize = getTextSize(
  'Discover Fantasian\'s\namazing world',
  headerTextStyle,
);

Builders #

'Flutter'.asText(style:).inCenter(),

Contributing #

We accept the following contributions:

Maintainers #

Buy Me A Coffee