s_widgets/src/s_widgets library
Classes
- DismissKeyboard
- ************** Keyboard Extensions ****************** */ Gesture wrapper that dismisses keyboard focus when tapping outside inputs.
- ExpandCollapseButton
- Small toggle button used for expand/collapse interactions.
- ForcePhoneSizeOnWeb
- Wraps app content in a phone-sized frame on web for demo/testing layouts.
- InputDoneView
- ***** -------------------------------------------------------------- */ my own custom made: inspired by (and modified) https://medium.com/@seb_remy/how-to-add-done-button-in-flutter-ios-app-b45e52a30039 Small iOS-style "Done" accessory view used by KeyboardOverlay.
- KeyboardOverlay
- Utility class to show/remove a floating keyboard "Done" button overlay.
- MeasureChildSizeWidget
- Reports child size changes after layout via onChange.
-
MountedState<
T extends StatefulWidget> -
Base state class that guards
setStatecalls when the widget is unmounted. - SAnimatedBlur
- Animated blur container with configurable transition duration.
- SBlur
- Applies static or animated blur to its child.
- ScrollTextFormFieldWhenKeyboardIsShown
- Scroll helper that ensures focused fields remain visible above the keyboard.
- SDivider
- Lightweight configurable divider (horizontal or vertical).
- SIconButton
- Compact icon button with optional label and splash behavior.
- SLoadingIndicator
- ********************** **************************** */
- STextButton
- Pre-styled text button powered by SButton.
- TextFormFieldClearButton
- Standard clear button for text-field suffix usage.
Extensions
- GenericExtensions on Widget
- Generic widget extension utilities (material wrapper, tooltip, styling).
- ShowSnackBar on BuildContext
- Convenience snackbar helpers on BuildContext.
Functions
-
getWidgetPosition(
BuildContext context) → Offset? -
Returns global top-left position for the widget associated with
context. -
getWidgetSize(
BuildContext context) → Size? -
Returns the rendered size for the widget associated with
context.