mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
25
lib/util/sliver_list_padding.dart
Normal file
25
lib/util/sliver_list_padding.dart
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import 'package:fladder/util/adaptive_layout.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class DefautlSliverBottomPadding extends StatelessWidget {
|
||||
const DefautlSliverBottomPadding({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (AdaptiveLayout.of(context).isDesktop || kIsWeb)
|
||||
? const SliverToBoxAdapter()
|
||||
: SliverPadding(padding: EdgeInsets.only(bottom: 85 + MediaQuery.of(context).padding.bottom));
|
||||
}
|
||||
}
|
||||
|
||||
class DefaultSliverTopBadding extends StatelessWidget {
|
||||
const DefaultSliverTopBadding({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (AdaptiveLayout.of(context).isDesktop || kIsWeb)
|
||||
? 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