NyBaseModal class abstract

NyBaseModal

A base class for creating modal bottom sheets with customizable layouts. Extend this class to create your own modal implementations.

Example:

class Modal extends NyBaseModal {
  static Future<void> showLogout(BuildContext context) {
    return NyBaseModal.show(
      context,
      child: LogoutWidget(),
      actionsRow: [Button.primary(text: "Logout", onPressed: () {})],
    );
  }
}

Constructors

NyBaseModal()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

show<T>(BuildContext context, {required Widget child, List<Widget> actionsRow = const [], List<Widget> actionsColumn = const [], double? height, Widget? header, bool useSafeArea = false, bool isScrollControlled = false, bool showCloseButton = false, EdgeInsets? headerPadding, Color? backgroundColor, bool showHandle = true, Color? closeButtonColor, Color? closeButtonIconColor, BoxDecoration? modalDecoration, Color? handleColor, bool useRootNavigator = true, Color? modalBackgroundColor}) Future<T?>
Core method to display a modal bottom sheet with full customization.