scrizer library

Classes

AsyncUseCase<Type, Params>
A contract for asynchronous use cases that return a Future wrapping an Either containing either a Failure or a Type.
DeviceDimensions
Device dimensions and boundaries as constants for responsive layout.
EmptyFailure
A concrete implementation of Failure that represents an empty or generic failure state.
Failure
An abstract base class representing a failure or error state within the application.
NoParams
Represents a placeholder for use cases that do not require any parameters.
Scrizer
The core Scrizer class responsible for initializing and holding screen dimensions, orientation, device type, and responsive utilities.
ScrizerBlocState<T>
A generic BLoC state class that encapsulates data, its state, and any related failure.
ScrizerColor
A theme configuration class for customizing the visual design of widgets using the Scrizer framework.
ScrizerGap
ScrizerLayout
A layout wrapper widget that initializes the Scrizer system and sets up the layout constraints for responsive scaling.
ScrizerText
A responsive text widget that scales its font size according to the screen dimensions using Scrizer's scaling logic.
StreamUseCase<Type, Params>
A contract for stream-based use cases that return a Stream wrapping an Either containing either a Failure or a Type.
UseCase<Type, Params>
A contract for synchronous use cases that return an Either containing either a Failure or a Type.

Enums

DeviceType
The DeviceType enum defines different types of devices based on screen size.
ScrizerDataState
Represents the different states of data within the BLoC or view layer.

Extensions

RouteExtension on BuildContext
ScrizerColorsExtension on BuildContext
Extension to easily access the colors defined in ScrizerTheme based on the current theme (light or dark mode).