owlnext-utils

Owlnext frontend utilities and native overrides

IsMobileView, isTabletView breaking change implementation

Since, we removed flutter_dotenv dependency for owlnext_utils, here is an implementation to repair your app:

import 'package:flutter/material.dart';
import 'package:owlnext_utils/owlnext_utils.dart';

bool isMobileView(BuildContext context) {
  var longestSide = MediaQuery.of(context).size.width;
  return longestSide < ScreenSizeConstants.MOBILE_LANDSCAPE_BREAKPOINT;
}

bool isTabletView(BuildContext context) {
  var longestSide = MediaQuery.of(context).size.width;
  return longestSide < ScreenSizeConstants.TABLET_LANDSCAPE_BREAKPOINT;
}