mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix(Desktop): Small improvement to padding and titlebar
This commit is contained in:
parent
3b4b8a9101
commit
4371368fda
3 changed files with 125 additions and 109 deletions
|
|
@ -19,8 +19,8 @@ class DefaultSliverTopBadding extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (AdaptiveLayout.viewSizeOf(context) != ViewSize.phone)
|
||||
? const SliverPadding(padding: EdgeInsets.only(top: 35))
|
||||
return (AdaptiveLayout.viewSizeOf(context) == ViewSize.phone)
|
||||
? const SliverToBoxAdapter()
|
||||
: SliverPadding(padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue