responsive_builder icon indicating copy to clipboard operation
responsive_builder copied to clipboard

add orientation info

Open mukhtarfauzi opened this issue 5 years ago • 3 comments

why there is no orientation info in these packages?

mukhtarfauzi avatar Feb 10 '20 10:02 mukhtarfauzi

I removed the orientation so replace it with the orientation builder to keep those responsibilities separate. I wanted to make use of the already existing orientation widget to provide that functionality.

There was also a bug with the orientation from the media query where it would sometimes report the old orientation.

FilledStacks avatar Feb 10 '20 12:02 FilledStacks

OrientationBuilder does not builds upon orientation change in Ipad simulator. Is the issue with media query still remains?

ScreenTypeLayout(
  breakpoints:
      const ScreenBreakpoints(desktop: 900, tablet: 650, watch: 250),
  mobile: OrientationLayoutBuilder(

      portrait: (context) => const ProgramPortraitView(),
      landscape: (context) => const ProgramLandscapeView()),
  desktop
    : OrientationLayoutBuilder(
      portrait: (context) => const ProgramPortraitView(),
      landscape: (context) => const ProgramLandscapeView()),
)

basnetjiten avatar Feb 27 '22 09:02 basnetjiten

@basnetjiten I think so. I can't be certain. This works for us.

FilledStacks avatar Mar 13 '22 08:03 FilledStacks