sst_base library

Classes

AdUtils
Utility class for loading ads using Google Mobile Ads.
AppRestClient
A utility class for creating and configuring Dio HTTP clients.
AppTheme
AppThemeCubit
AppViewState
AssetsUtils
Utility class for working with asset paths.
BaseBloc<Event extends BaseEvent, State extends BaseState>
BaseDialog
BaseDialogState<T extends BaseDialog>
BaseEvent
BaseScreen
BaseScreenState<T extends BaseScreen>
BaseSettings
BaseSettingsScreen
BaseSettingsScreenState<T extends BaseSettingsScreen>
BaseSplashScreen
BaseSplashScreenState<T extends BaseSplashScreen>
BaseState
BottomLoader
ColorUtils
Utility class for color-related operations.
CustomAppBar
CustomButton
CustomCheckBox
CustomRadio
CustomRefreshIndicator
DashedLinePainter
DateTimeUtils
Utility class for common DateTime operations.
DeviceUtils
DismissibleDialog
DismissibleDialogState<T extends DismissibleDialog>
FileUtils
Utility class for working with local files and directories.
FirebaseUtils
ImageUtils
ImageView
InAppPurchaseUtils
Utility class for managing in-app purchases.
InfiniteScrollWidget
InfoDialog
InitialState
Line
LoggerUtil
Utility class for logging messages and handling errors.
MergedAssetLoader
An AssetLoader that merges translation assets from multiple sources.
MyHttpOverrides
Utility class for navigation-related actions, such as opening URLs, sharing the app, and launching the Play Store or email client.
NoDataWidget
NumberUtils
Utility class for number-related operations.
PermissionUtils
PrefStorage
PressableContainer
PressableImage
RangeInputFormatter
RoundButton
ScreenUtils
ScrollToHide
A widget that hides its child when the user scrolls down and shows it again when the user scrolls up. This behavior is commonly used to hide elements like a bottom navigation bar to provide a more immersive user experience.
SearchView
SelectLanguageDialog
SstApp
SstSplashScreen
Storage
TimerView
ToastUtils
Utility class for showing toast messages in the app.
UniqueColorGenerator
UnlockFeatureDialog

Extensions

ColorExt on Color
Extension methods on Color to add extra functionality.
ScrollControllerExt on ScrollController
Extension methods for ScrollController.
StringExt on String
Utility class for string manipulation and hashing.

Constants

throttleDuration → const Duration
Default duration used for throttling events.

Functions

baseDialog(BuildContext context, {required Widget content, bool dismissible = true, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, double? width, double? dialogWidth = 280, double dialogRadius = 8.0, double dialogElevation = 10.0}) Future<void>
Displays a custom dialog with optional styling and animations.
hideDialog(BuildContext context) → void
Hides the currently showing dialog, if any.
isDialogShowing(BuildContext context) bool
Returns whether a dialog is currently showing in the given context.
showConfirmDialog(BuildContext context, {required AppTheme theme, bool dismissible = true, String? title, String? message, String? positiveText, String? negativeText, Color? negativeColor, Color? positiveColor, void onNegativePressed()?, void onPositivePressed()?}) Future<void>
Shows a confirmation dialog with customizable text and callbacks.
showCustomDialog(BuildContext context, {Widget? content, required AppTheme theme, bool dismissible = true, String? positiveText, String? negativeText, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, Color color = Colors.black, Color textColor = Colors.white, Color? negativeColor, Color? positiveColor, void onNegativePressed()?, void onPositivePressed()?}) Future<void>
Shows a customizable dialog with positive and negative actions.
showDialogWithAnimation<T>({required BuildContext context, bool barrierDismissible = true, Color? barrierColor = Colors.black54, required Widget child}) Future<T?>
Displays a dialog with fade-in animation.
showInfoDialog(BuildContext context, {String? message, Color? barrierColor = Colors.black54, required AppTheme theme, void onRateAppPressed()?, void onShareAppPressed()?, void onSendFeedbackPressed()?}) Future<void>
Shows an informational dialog.
showProgressDialog(BuildContext context, {String? message, required Color textColor, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, void onPressed()?}) Future<void>
Displays a loading/progress dialog.
showSelectLanguageDialog(BuildContext context, {required AppTheme theme, required SupportLanguage language, bool dismissible = true, void onItemPressed(SupportLanguage)?}) Future<void>
Shows a language selection dialog.
showUnlockFeatureDialog(BuildContext context, {required AppTheme theme, required ProductDetails product, String? message, Color? barrierColor = Colors.black54, Color? backgroundColor = Colors.white, void onPurchasePressed()?, void onClosePressed()?}) Future<void>
Shows an "unlock feature" dialog for in-app purchases.
throttleDroppable<E>(Duration duration) → EventTransformer<E>
Creates an EventTransformer that throttles incoming events and processes them with droppable.