mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt ui
Closes #1050 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
23
lib/common/widgets/view_sliver_safe_area.dart
Normal file
23
lib/common/widgets/view_sliver_safe_area.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ViewSliverSafeArea extends StatelessWidget {
|
||||
const ViewSliverSafeArea({
|
||||
super.key,
|
||||
required this.sliver,
|
||||
});
|
||||
|
||||
final Widget sliver;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
EdgeInsets padding = MediaQuery.viewPaddingOf(context);
|
||||
return SliverPadding(
|
||||
padding: EdgeInsets.only(
|
||||
left: padding.left,
|
||||
right: padding.right,
|
||||
bottom: padding.bottom + 100,
|
||||
),
|
||||
sliver: sliver,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user