s_modal/src/s_modal_libs library
Classes
- DialogModal
- A modal widget specifically designed for dialog-style popups
- Modal
- ModalBuilder
- A widget that shows modals with hot reload support
- SnackbarDurationIndicator
- A widget that displays a linear progress indicator showing remaining duration
- SnackbarModal
- A modal widget specifically designed for snackbar-style notifications
- SnackbarModalController
- Controller for imperatively managing snackbar animations
Enums
- DurationIndicatorDirection
- Direction for the snackbar duration indicator animation
- ModalAnimationType
- Defines how the modal animates when appearing/disappearing
- ModalType
- Defines the type of modal to display
- SheetPosition
- Defines the position/edge from which a sheet modal appears
- SnackbarDisplayMode
- Defines how multiple snackbars are displayed when shown simultaneously
Functions
-
createSmoothAnimation(
{required double startValue, required double endValue, required Duration duration, Curve curve = Curves.easeOutCubic, required dynamic onUpdate(double value), VoidCallback? onComplete}) → void - Creates a smooth animation effect without needing a TickerProvider
-
lerpDouble(
double? a, double? b, double t) → double -
modalLog(
String message) → void
Typedefs
- ModalWidgetBuilder = Widget Function()
- Type definition for widget builder function