ResponsiveFramework icon indicating copy to clipboard operation
ResponsiveFramework copied to clipboard

Alignment of ResponsiveWrapper not working

Open apalala-dev opened this issue 4 years ago • 1 comments

Hello,

Alignment parameter doesn't seem to have any effect for me. This is a sample to reproduce the problem:

class SampleNotWorking extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        color: Colors.green,
        child: ResponsiveWrapper.builder(
            Container(
                width: MediaQuery.of(context).size.width,
                height: MediaQuery.of(context).size.height - 200,
                color: Colors.red),
            alignment: Alignment.bottomCenter));
  }
}

I would expect the red box to be aligned at the bottom center (I also tried with other values with no luck) but it is always centered instead:

image

apalala-dev avatar May 28 '21 08:05 apalala-dev

Thank you for filing this issue. I don't know what the issue is off the top of my head and will try to take a look next week.

rayliverified avatar Jun 07 '21 05:06 rayliverified