align_positioned
align_positioned copied to clipboard
rtl support
@marcglasberg Those are the native positioned widget in flutter
Positioned(
left: ,
right: ,
child: child,
),
PositionedDirectional(
start: ,
end: ,
child: child,
),
AnimatedPositionedDirectional(
child: child,
duration: duration,
),
We can do like this in align_positioned
AlignPositioned(
child: child,
),
AlignPositionedDirectional(
child: child,
),
AnimatedAlignPositionedDirectional(
child: ,
),
And therefore we should change the alignment
property type in the AlignPositioned widget to be AlignmentGeometry
instead of Alignment
so we can give it a directional value AlignmentDirectional.topStart
instead of fixed direction value Alignement.topLeft