mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 20:07:55 -06:00
feat: Add functionality to delete notes
This commit is contained in:
@@ -11,9 +11,18 @@ extension WidgetPadding on Widget {
|
||||
Widget paddedSymmetrically({
|
||||
double horizontal = 0.0,
|
||||
double vertical = 0.0,
|
||||
bool sliver = false,
|
||||
}) {
|
||||
final insets =
|
||||
EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical);
|
||||
if (sliver) {
|
||||
return SliverPadding(
|
||||
padding: insets,
|
||||
sliver: this,
|
||||
);
|
||||
}
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical),
|
||||
padding: insets,
|
||||
child: this,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user