easy_box 0.0.2
easy_box: ^0.0.2 copied to clipboard
All in one widget, with all the most basic widget properties. Composing a tree of widgets depending on the properties that you request. Just organize everything with the Box.
Easy Box #
All in one widget, with all the most basic widget properties. Composing a tree of widgets depending on the properties that you request. Just organize everything with the Box.
Features #
- Background
- Size
- Padding and Margin
- Border
- Shape
- List
- Alignment
- Expanded
- Transform
- Text Style
Getting started #
Install it using pub:
flutter pub add easy_box
And import the package:
import 'package:easy_box/easy_box.dart';
Usage #
Wrap your widget with the things you need, the Box widget will do the rest. Or not, you can also use it without a widget, whatever fits your boat.
Box(
child: ... ,
)
Or wrap your list of widgets, using a children
list or an itemBuilder
. This will be a ListView
or a Column/Row
, depending on whether the alignment
is set or not.
Box(
children: [ ... ],
direction: ... ,
alignment: ... ,
spacing: ...
)
Change how your Box looks like:
Box(
width: ... ,
height: ... ,
backgroundColor: ... ,
backgroundGrandient: ... ,
backgroundImage: ... ,
border: ... ,
borderRadius: ... ,
shape: ... ,
padding: ... ,
margin: ...
)
Do a quick transform using translate
, scale
and rotate
:
Box(
translate: ... ,
scale: ... ,
rotate: ...
)
Change the default text style of the Text widgets inside your Box:
Box(
textStyle: TextStyle(
...
)
)
GitHub #
The package code is available on Github: Flutter - EasyBox