mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 04:07:51 -06:00
feat: Implemented new view type, fix connectivity issues, fix offline issues, fix loading animations, fix documents page paging
This commit is contained in:
@@ -8,18 +8,22 @@ extension WidgetPadding on Widget {
|
||||
);
|
||||
}
|
||||
|
||||
Widget paddedSymmetrically({double horizontal = 0.0, double vertical = 0.0}) {
|
||||
Widget paddedSymmetrically({
|
||||
double horizontal = 0.0,
|
||||
double vertical = 0.0,
|
||||
}) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: horizontal, vertical: vertical),
|
||||
child: this,
|
||||
);
|
||||
}
|
||||
|
||||
Widget paddedOnly(
|
||||
{double top = 0.0,
|
||||
double bottom = 0.0,
|
||||
double left = 0.0,
|
||||
double right = 0.0}) {
|
||||
Widget paddedOnly({
|
||||
double top = 0.0,
|
||||
double bottom = 0.0,
|
||||
double left = 0.0,
|
||||
double right = 0.0,
|
||||
}) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.only(
|
||||
top: top,
|
||||
@@ -30,6 +34,13 @@ extension WidgetPadding on Widget {
|
||||
child: this,
|
||||
);
|
||||
}
|
||||
|
||||
Widget paddedLTRB(double left, double top, double right, double bottom) {
|
||||
return Padding(
|
||||
padding: EdgeInsets.fromLTRB(left, top, right, bottom),
|
||||
child: this,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
extension WidgetsPadding on List<Widget> {
|
||||
|
||||
Reference in New Issue
Block a user