flex_with_main_child 0.2.0 flex_with_main_child: ^0.2.0 copied to clipboard
A Flex (i.e. Column or Row) that sizes itself to its main child in the cross axis direction.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flex_with_main_child
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flex_with_main_child: ^0.2.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flex_with_main_child/flex_with_main_child.dart';