✨ Pin code
🐛 Bug fixes
This commit is contained in:
@ -15,3 +15,24 @@ bool isWiderScreen(BuildContext context) {
|
||||
bool isWidestScreen(BuildContext context) {
|
||||
return MediaQuery.of(context).size.width > kWidescreenWidth;
|
||||
}
|
||||
|
||||
EdgeInsets getTabbedPadding(
|
||||
BuildContext context, {
|
||||
double? horizontal,
|
||||
double? vertical,
|
||||
double? left,
|
||||
double? right,
|
||||
double? top,
|
||||
double? bottom,
|
||||
}) {
|
||||
final bottomPadding = bottom ?? MediaQuery.of(context).padding.bottom + 16;
|
||||
return EdgeInsets.only(
|
||||
left: left ?? horizontal ?? 0,
|
||||
right: right ?? horizontal ?? 0,
|
||||
top: top ?? vertical ?? 0,
|
||||
bottom:
|
||||
bottom != null
|
||||
? bottomPadding
|
||||
: MediaQuery.of(context).padding.bottom + 16,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user