mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Increased default padding for item views
This commit is contained in:
parent
11189455ed
commit
fe96c7e258
1 changed files with 6 additions and 5 deletions
|
|
@ -1,14 +1,15 @@
|
|||
import 'package:fladder/util/adaptive_layout.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'package:fladder/models/settings/home_settings_model.dart';
|
||||
import 'package:fladder/util/adaptive_layout.dart';
|
||||
|
||||
class DefautlSliverBottomPadding extends StatelessWidget {
|
||||
const DefautlSliverBottomPadding({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (AdaptiveLayout.of(context).isDesktop || kIsWeb)
|
||||
? const SliverToBoxAdapter()
|
||||
return (AdaptiveLayout.viewSizeOf(context) != ViewSize.phone)
|
||||
? SliverPadding(padding: EdgeInsets.only(bottom: 35 + MediaQuery.of(context).padding.bottom))
|
||||
: SliverPadding(padding: EdgeInsets.only(bottom: 85 + MediaQuery.of(context).padding.bottom));
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +19,7 @@ class DefaultSliverTopBadding extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (AdaptiveLayout.of(context).isDesktop || kIsWeb)
|
||||
return (AdaptiveLayout.viewSizeOf(context) != ViewSize.phone)
|
||||
? const SliverPadding(padding: EdgeInsets.only(top: 35))
|
||||
: SliverPadding(padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue