services/functions library

Functions

detectScroll({required ScrollController scrollController, required AnimationController animationController}) → void
To indicate when ScrollController is in motion.
disableFAB({required ScrollController scrollController, required AnimationController animationController}) → void
To launch URL use url launcher package for this method. To hide the Floating Action Button when scroll control is at the top on the screen.
launchInBrowser(Uri url) Future<void>
launch Url.
openLeftDrawer({required GlobalKey<ScaffoldState> scaffoldKey}) → void
Open drawer from left
openRightDrawer({required GlobalKey<ScaffoldState> scaffoldKey}) → void
Open drawer from right
scrollsExtreme({required ScrollController scrollController, bool scrollToTop = false}) → void
scrolls to extreme top or bottom using ScrollController
scrollToSection(BuildContext context) → dynamic
To scroll to specific location using its BuildContext
visibilityToggle(Function? onToggle, bool isHidden) Widget
Functions