align_positioned icon indicating copy to clipboard operation
align_positioned copied to clipboard

rtl support

Open AlaaEldeenYsr opened this issue 2 years ago • 1 comments

AlaaEldeenYsr avatar Feb 17 '23 14:02 AlaaEldeenYsr

@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 image

AlaaEldeenYsr avatar Feb 19 '23 03:02 AlaaEldeenYsr