owlnext_utils 0.3.0 copy "owlnext_utils: ^0.3.0" to clipboard
owlnext_utils: ^0.3.0 copied to clipboard

Owlnext Front-end utilitaries

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;
}
0
likes
130
points
45
downloads

Publisher

verified publisherowlnext.fr

Weekly Downloads

Owlnext Front-end utilitaries

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on owlnext_utils