Hover class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Static Properties
-
router
→ HoverRoutingManager
-
no setter
Static Methods
-
closeDrawer(BuildContext context)
→ void
-
-
create({required List<HoverPage> pages, required Map<String, ThemeData> themes, List<SingleChildWidget> providers = const [], Widget appBarBuilder(BuildContext)?, Widget drawerBuilder(BuildContext)?, Widget floatingActionButtonBuilder(BuildContext)?})
→ Hover
-
Create an app with Hover. This method
returns a stateless widget that contains a
MaterialApp nested inside a MultiProvider.
-
getCurrentThemeName()
→ Future<String?>
-
-
getScreenHeight(BuildContext context)
→ double
-
-
getScreenHeightWithScale(double scale, BuildContext context)
→ double
-
-
getScreenWidth(BuildContext context)
→ double
-
-
getScreenWidthWithScale(double scale, BuildContext context)
→ double
-
-
hasDrawer(BuildContext context)
→ bool
-
-
isDrawerOpen(BuildContext context)
→ bool
-
-
loadSetting(String key)
→ Future<String?>
-
Load a value from shared preferences referenced by a key.
-
openDrawer(BuildContext context)
→ void
-
-
saveSetting(String key, String value)
→ Future<bool>
-
Save key-value pair to shared preferences.
-
setThemeByName(String themeName)
→ void
-
-
showBottomSheet(BuildContext context, Widget builder(BuildContext))
→ void
-
Helper method for displaying the bottom sheet
-
showPlainSnackBar(BuildContext context, String message, {Duration duration = HoverSnackBarHelper.defaultSnackBarDuration})
→ void
-
Helper method for displaying a simple snackbar
-
showSnackBar(BuildContext context, SnackBar snackBar)
→ void
-
Helper method for displaying a snackbar widget
-
toggleDrawer(BuildContext context)
→ void
-