Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Solve resizing layout issue. (#826)
Browse files Browse the repository at this point in the history
* Solve resizing layout issue.

* Remove unnecessary type annotations.

Co-authored-by: Tianguang Zhang <[email protected]>
  • Loading branch information
pennzht and Tianguang Zhang authored Nov 4, 2022
1 parent b672870 commit a7bf6f9
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/studies/shrine/app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,21 @@ class _ShrineAppState extends State<ShrineApp>

@override
Widget build(BuildContext context) {
final isDesktop = isDisplayDesktop(context);
final backdrop = isDesktop ? desktopBackdrop() : mobileBackdrop();
final Widget home = LayoutCache(
layouts: _layouts,
child: PageStatus(
menuController: _controller,
cartController: _expandingController,
child: HomePage(
backdrop: backdrop,
scrim: Scrim(controller: _expandingController),
expandingBottomSheet: ExpandingBottomSheet(
hideController: _controller,
expandingController: _expandingController,
child: LayoutBuilder(
builder: (context, constraints) => HomePage(
backdrop: isDisplayDesktop(context)
? desktopBackdrop()
: mobileBackdrop(),
scrim: Scrim(controller: _expandingController),
expandingBottomSheet: ExpandingBottomSheet(
hideController: _controller,
expandingController: _expandingController,
),
),
),
),
Expand Down

0 comments on commit a7bf6f9

Please sign in to comment.