responsive_builder
responsive_builder copied to clipboard
add orientation info
why there is no orientation info in these packages?
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.
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 I think so. I can't be certain. This works for us.