refactor: asset grid

This commit is contained in:
shenlong-tanwen
2024-09-14 22:29:51 +05:30
parent 53974e7276
commit 6fce1ebb79
23 changed files with 796 additions and 113 deletions
@@ -20,6 +20,12 @@ extension BuildContextHelper on BuildContext {
/// Get the [EdgeInsets] of [MediaQuery]
EdgeInsets get viewInsets => MediaQuery.viewInsetsOf(this);
// Returns the current width from MediaQuery
double get width => mediaQuerySize.width;
// Returns the current height from MediaQuery
double get height => mediaQuerySize.height;
/// True if the current device is a Tablet
bool get isTablet => (mediaQuerySize.width >= 600);