utils/helper_widgets library

This file contains helper widgets that can be used throughout the app. These widgets include:

  • addVerticalSpace and addHorizontalSpace which return a SizedBox with a specified height or width respectively.
  • headlineMediumText, headlineSmallText, and heardlineLargeText which return an AutoSizeText widget with a specified text and style.
  • captionText which returns a Text widget with a specified text and style.
  • CustomIconButton which returns a Container with a IconButton widget inside it, with a specified icon, size, and color.
  • CustomAppBar which returns an AppBar widget with a specified title and leading and trailing icons.
  • customDialog which returns a Future that shows a dialog with a specified widget inside it.

Functions

addHorizontalSpace(double width) Widget
Returns a SizedBox widget with a specified width.
addVerticalSpace(double height) Widget
Returns a SizedBox widget with a specified height.
customDialog({required BuildContext context, required Widget widget, dynamic insetPadding = appPadding}) Future
Displays a custom dialog with the given widget as its child. Returns a Future that resolves to the value (if any) that was passed to Navigator.pop when the dialog was closed.
loadingWidget() Widget