Last updated:
0 purchases
more main axis alignment
more_main_axis_alignment #
Features #
Getting started #
Add the package to your pubspec.yaml:
dependencies:
more_main_axis_alignment: 1.0.0
copied to clipboard
In your dart file, import the library:
import 'package:more_main_axis_alignment/more_main_axis_alignment.dart';
copied to clipboard
Usage #
Flex
MoreFlex(
direction: Axis.horizontal,
moreMainAxisAlignment: MoreMainAxisAlignment.spaceBeside,
children: [
for (int i = 0; i < 5; i++)
Container(
width: 20,
height: 20,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(10),
),
),
],
),
copied to clipboard
Row
MoreRow(
moreMainAxisAlignment: MoreMainAxisAlignment.spaceBetweenStep,
children: [
for (int i = 0; i < 5; i++)
Container(
width: 20,
height: 20,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(10),
),
),
],
),
copied to clipboard
Column
MoreColumn(
moreMainAxisAlignment: MoreMainAxisAlignment.custom,
customList: const [0, 0.25, 0.35, 0.5, 0.98],
children: [
for (int i = 0; i < 5; i++)
Container(
width: 20,
height: 20,
decoration: BoxDecoration(
color: Colors.blue,
borderRadius: BorderRadius.circular(10),
),
),
],
),
copied to clipboard
Suggestions welcome! #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.