Skip to content

Alignment of ResponsiveWrapper not working #54

@apalala-dev

Description

@apalala-dev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions