widgets/widgets library

Top-level export for the widgets layer.

Classes

ActionSheetItem
An action sheet item with icon, label, color and optional trailing.
AdaptiveLayout
Calls builder with the current AppScreenType.
AdminRow
A single row for the AdminTemplate table.
AdminTemplate
A complete admin-dashboard template.
AnalyticsKpi
A single KPIs row inside a AnalyticsTemplate.
AnalyticsTemplate
A complete analytics dashboard template.
AnimatedBanner
An animated banner widget that appears/disappears with a transition.
AnimatedButton
A button wrapper that scales down while pressed for tactile feedback.
AnimatedNashContainer
A widget that animates its child between a target enabled state with theme-aware easing. Useful for interactive emphasis.
AnimationUtils
Animation helpers built on top of Flutter's animation primitives.
AppAccessibility
Accessibility design tokens for the design system.
AppBarColors
Resolved AppBar colors.
AppBreakpoint
Standard responsive breakpoints (logical pixels).
AppColors
Core semantic color tokens for the nash_design_system.
AppCurves
Animation curve tokens.
AppDateUtils
Date/time helpers built on top of intl.
AppDuration
Animation duration tokens.
AppElevation
Z-index / elevation token system for managing overlay stacking.
AppFontWeight
Font weight tokens used across the design system.
AppGradients
Gradient tokens for the design system.
AppHelpers
Generic application helpers and utilities.
AppIcons
A curated, single source of truth for commonly used icons.
AppImageTokens
Image placeholder, error, and skeleton configuration tokens.
Appointment
A medical appointment.
AppPalette
A curated set of Material palettes exposed as MaterialColor tokens.
AppRadius
Corner radius tokens for the design system.
AppResponsive
Root widget of the responsive system.
AppResponsiveLayout
An adaptive layout builder that swaps content by AppScreenType.
AppResponsiveState
Mutable state holder for AppResponsive.
AppShadow
Shadow elevation tokens for the design system.
AppSpacing
Spacing scale tokens for the design system.
AppTypography
Complete typographic scale for the design system.
AsyncBuilder<T>
Builds loading, error and success UI from a Future.
BarChart
A grouped/segmented bar chart with optional value labels.
BottomNavBar
A bottom navigation bar with icons, optional badges and centered FAB.
BottomNavItem
A bottom navigation item.
Bounce
Repeating bounce emphasis animation.
A breadcrumb navigation trail.
ChatMessage
A single chat message.
ChatTemplate
A complete chat screen template.
CircularProgress
A circular progress indicator with value, percent and gradient support.
CollapsibleHeader
A scroll-aware header that fades/slides out on scroll.
ColorUtils
Color manipulation and accessibility helpers.
ContentBox
A content-width centering wrapper for desktop layouts.
Course
A single course inside a LearningTemplate.
DashboardCard
A dashboard card with an optional header and body.
DashboardHeader
A gradient dashboard header with greeting and optional action.
DateField
A date picker field that opens a styled date picker.
Debouncer
A tiny debouncer helper for throttling rapid calls.
DeviceUtils
Device and platform helpers that work on every target (including web).
EcommerceTemplate
A complete e-commerce template.
EmailField
An email input field with built-in validation and autofill.
EmptyState
A friendly empty-state placeholder with icon, title, message and action.
ErrorState
A full error state with icon, title, message and a retry action.
FadeAnimation
Fade entrance animation.
FileUtils
Pure-Dart file/path helpers that work on every Flutter platform.
FinanceTemplate
A complete finance dashboard template.
FloatingButton
A floating action button wrapper with design-system styling.
ForgotPasswordTemplate
A forgot-password screen template.
FormSection
A titled group of form fields inside a styled card.
GlassCard
A modern glassmorphism frosted card with backdrop blur.
GlowCard
An ambient glowing card with vibrant shadow highlights.
GradientCard
A card with a colored gradient header.
HeroWidget
A Hero wrapper with sensible defaults for child and tag.
HoverEffect
Hover interaction that lifts and scales child.
InfoHint
An info icon that shows a tooltip with an optional title.
LearningCard
A learning course card with progress.
LearningTemplate
A complete learning-app template.
LinearProgress
A linear progress bar with gradient, stripes and label.
LineChart
A line chart with gradient fill, grid lines and optional dots/labels.
ListGroup
A group of list tiles with optional header.
LoadingButton
A button that shows a loading spinner while loading is true.
LoadingScreen
A full-screen loading state with an optional title and retry action.
LoginTemplate
A complete login screen template.
MaintenanceState
A maintenance / under-construction state.
MedicalCard
A medical record card with specialty, status and actions.
MedicalTemplate
A complete medical-app template.
MemoryBackend
A thread-safe in-memory backend used by default.
MultiSelect<T>
A multi-select field built from selectable chips and a bottom-sheet picker.
NashAccessibilityProvider
Wraps the app to respect MediaQuery.accessibleNavigationOf and MediaQuery.disableAnimationsOf.
NashAccessibleButton
Wraps a child with a tap target that is accessible and announces its label.
NashAdaptiveActionSheet
Platform-adaptive action sheet.
NashAdaptiveDialog
Platform-adaptive dialog that shows Cupertino on iOS and Material elsewhere.
NashAdaptiveProgress
Adaptive CircularProgressIndicator that renders CupertinoActivityIndicator on iOS/macOS.
NashAdaptiveScaffold
Platform-adaptive widget that renders differently on mobile vs desktop.
NashAdaptiveSwitch
Adaptive Switch that renders CupertinoSwitch on iOS/macOS.
NashAppBar
A modern app bar with title, subtitle, actions and optional scroll effects.
NashAreaChart
Same as NashLineChart but with a prominent area fill — useful for comparing two overlaid datasets.
NashAvatar
A circular avatar with image, initials or icon fallback.
NashBadge
A badge/counter pill attached to a child.
NashBanner
A dismissible banner shown at the top of a page.
NashBarChart
Animated vertical bar chart with colored bars and labels.
NashBarData
A single bar in a bar chart.
NashBottomSheet
A modal bottom sheet with a handle, optional title and rounded top corners.
NashButtonGroup<T>
A connected, unified group of action buttons with seamless borders and active state highlights.
NashCalendar
A month calendar widget with selection, range and events support.
NashCard
A flexible base card with design-system styling.
NashCarousel
A modern, swipeable carousel widget with auto-play, indicators, and navigation controls.
NashCenter
A centered layout with optional max-width constraints (readable text rows).
NashChartPoint
A single data point for line/area charts.
NashCheckbox
A themed checkbox row.
NashChip
A themed chip used for tags, filters and selected options.
NashClipboard
Clipboard and copy helpers.
NashCodeBlock
A sleek code block viewer with line numbers, language tag, and one-click copy button.
NashColorPicker
A curated color picker and palette selector with hex support.
NashColumn
A vertical flex layout with design-system spacing defaults.
NashCommandItem
An individual action or search item in a NashCommandPalette.
NashCommandPalette
A Spotlight-style command palette dialog.
NashConnectivityBanner
Wraps its child and shows an animated top/bottom banner when the device goes offline. Automatically hides when connectivity is restored.
NashContainer
A flexible, theme-aware container.
NashCopyButton
A button that copies text to the clipboard and briefly shows a check icon.
NashDataCell
A data table row value.
NashDataColumn
Column definition for NashEnhancedDataTable.
NashDataRow
Row definition for NashEnhancedDataTable.
NashDataTable
A simple, styled data table with sorting and row selection support.
NashDialog
A themed dialog with gradient header and rounded corners.
NashDirectionalRow
A Row that automatically reverses child order in RTL locales.
NashDivider
A themed horizontal or vertical divider.
NashDraggable
A draggable widget wrapper.
NashDraggableList<T>
A reorderable list with drag-and-drop support.
NashDraggableSheet
A draggable bottom sheet with multiple snap points and fluid drag physics.
NashDropdown<T>
A themed dropdown form field.
NashDropdownItem<T>
A single dropdown option.
NashDropZone
A drop zone that accepts dragged items.
NashEnhancedDataTable<T>
A feature-rich data table with sorting, selection, pagination, and export.
NashErrorBoundary
Catches Flutter widget build errors and shows a styled fallback UI.
NashExpansionTile
An expandable list tile with custom header, body and smooth animations.
NashFileUpload
A modern file upload / dropzone widget with dashed border, file list, and progress bars.
NashFocusRing
A focus ring that wraps its child with a themed border on focus.
NashForm
A smart form wrapper that manages validation state, loading state, and focus traversal automatically.
NashFormatter
Number and text formatting helpers.
NashFormField
A labelled field with label on top and hint/error below.
NashFormState
NashFormTextField
A TextFormField that participates in NashForm's value collection.
NashFormWizard
A multi-step form wizard workflow with step progression, animated page transitions, and controls.
NashGap
A horizontal or vertical gap sized in logical pixels.
NashGlassButton
A glassmorphic frosted glass button with specular border highlight and backdrop blur.
NashGradientBorderButton
A sleek button with an animated or multi-stop gradient border and inner glow.
NashGrid
A responsive grid built on a maximum cross-axis extent.
NashGroupItem<T>
An individual item in a NashButtonGroup.
NashHoldButton
A button that requires the user to press and hold for a duration before triggering.
NashHorizontalDatePicker
A horizontal date strip / timeline date picker widget.
NashIconButton
A themed icon button with optional tooltip.
NashImage
A decorated image with optional overlay, border and shadow.
NashImageCached
A cached network image with decoration, mirroring NashImage's API.
NashImageUtils
Image helpers: initials, URL detection and aspect-ratio math.
NashInfiniteList
A ListView that calls onLoadMore when the user scrolls near the bottom. Shows shimmer skeletons while loading additional items.
NashLineChart
Animated smooth line chart with optional area fill and data point dots.
NashListTile
A configurable list tile with leading/trailing widgets and tap feedback.
NashListView
A simple vertical list with design-system defaults.
NashLiveSearch<T>
A search input with built-in debounce, loading state, and results overlay.
NashLoader
A flexible loading indicator with multiple styles.
NashLocalizations
Localization / i18n framework for the design system.
NashLocalizationsDelegate
Delegate for NashLocalizations using LocalizationsDelegate.
NashLogger
A lightweight, dependency-free logger with level filtering.
NashMargin
A Container that only adds outside margin.
NashNavigationRail
A themed Material 3 NavigationRail wrapper.
NashNetworkImage
A network image with loading, error and placeholder states.
NashNotification
Notification data model.
NashNotificationAction
Notification action button.
NashNotificationCenter
In-app notification center with push-style UI.
NashNotificationCenterState
NashOnboardingPage
Configuration for a single onboarding slide.
NashOnboardingScreen
A ready-to-use animated onboarding screen.
NashPadding
A Padding with design-system defaults.
NashPageRoute<T>
A PageRouteBuilder with configurable transitions.
NashPagination
A professional pagination widget with page buttons, ellipsis, and navigation controls.
NashPieChart
Animated donut/pie chart with legend.
NashPieSegment
A pie/donut segment.
NashPlatform
Detects the current platform for adaptive rendering.
NashPopover
An interactive anchored popover widget that attaches a floating card to a target widget.
NashPopupMenu<T>
A themed popup menu with rounded corners and item styling.
NashPopupMenuItem<T>
A single popup menu item.
NashProfileSetupScreen
A multi-step profile setup screen using NashFormWizard pattern.
NashRadio
A themed radio row.
NashRangeSlider
A custom styled dual-thumb range slider with gradient track and tooltip labels.
NashRating
A rating display with filled/outline stars and optional count.
NashReducedMotion
Reduced motion support for the design system.
NashReducedMotionWrapper
A widget that conditionally applies animation based on reduced motion.
NashRefreshList
Combines pull-to-refresh and infinite scroll in a single widget.
NashResponsiveGrid
A responsive column grid that automatically adjusts the number of columns based on the current screen width.
NashResponsiveTypography
Responsive typography that scales text based on screen size.
NashRichTextEditor
A lightweight rich text editor with formatting toolbar.
NashRipple
Infinite expanding ripple / pulse effect behind child.
NashRow
A horizontal flex layout with design-system spacing defaults.
NashRtlHelper
Utility class for RTL-aware layouts and text direction detection.
NashScrollBehavior
Adaptive ScrollBehavior for web and desktop platforms.
NashSection
A section header with title, subtitle and optional action.
NashSegment<T>
A single segmented control option.
NashSegmentedButton<T>
A segmented button control.
NashSemanticsAnnouncer
A semantics wrapper that announces text changes to screen readers.
NashShareItem
A NashShareItem defines one action in the share sheet.
NashShareSheet
Shows a native-feeling share action sheet as a bottom modal.
NashShimmer
Wraps any widget with a shimmer sweep animation, ideal for loading states.
NashShimmerBanner
A full-width banner shimmer placeholder.
NashShimmerBox
A simple rectangle shimmer placeholder.
NashShimmerCard
A card-shaped shimmer placeholder with avatar, title, and subtitle.
NashShimmerList
A list of shimmer card placeholders.
NashSidebar
A persistent desktop sidebar with sections, selection and collapse.
NashSlideButton
An interactive slide-to-confirm / slide-to-act button.
NashSlider
A custom styled single-value slider with gradient track and tooltip labels.
NashSnackbar
A themed snackbar with severity colors, icon and action.
NashSocialButton
A ready-to-use social authentication button styled according to brand guidelines.
NashSpace
Padding sized with the AppSpacing scale.
NashSparkline
A compact sparkline chart suitable for embedding in dashboard cards.
NashSplashScreen
Shows an animated splash screen then calls onComplete.
NashSplitAction
An item inside a NashSplitButton dropdown menu.
NashSplitButton
A split action button with a primary button on the left and a dropdown menu arrow on the right.
NashSplitView
A resizable two-panel split view widget with a draggable divider.
NashStack
A Stack with design-system defaults.
NashStepper
A step indicator supporting horizontal and vertical layouts with clickable steps, validation states, and content below each step.
NashStorage
A typed key-value store with JSON, number and bool helpers.
NashSwitch
A themed switch row.
NashTab
A single tab definition.
NashTabBar
A modern, animated tab bar with sliding indicator and icons.
NashTablePagination
Pagination configuration.
NashTablePaginationWidget
Pagination widget for NashEnhancedDataTable.
NashTabView
A swipeable tab view that animates between pages.
NashTag
A clickable tag/chip with icon, label and optional removal.
NashTextButton
A text-only button.
NashTextField
A themed text field with full form integration (validator + saved value).
NashTheme
Theme factory for the design system.
NashThemeBuilder
Generates a complete Material 3 ThemeData from a single seed color, with optional overrides for font, border radius, and density.
NashThemeExtension
Theme extension carrying design-system specific tokens.
NashTimeline
A vertical timeline of events.
NashTimelineItem
A single timeline entry.
NashToast
Shows an animated toast notification as an overlay — no Scaffold needed.
NashTokenExporter
Token documentation generator for the design system.
NashTooltip
A modern tooltip with custom styling, positioning and actions.
NashTouchTarget
Enforces minimum touch target size on its child.
NashTreeNode<T>
A single node in a NashTreeView.
NashTreeView<T>
An expandable tree view widget for displaying hierarchical data structures.
NashUploadedFile
Represents a chosen file in NashFileUpload.
NashValidators
A collection of reusable field validators for use with NashForm or Flutter's built-in Form widget.
NashWheelDatePicker
An iOS-style spinner / wheel date picker.
NashWizardStep
A single step in a NashFormWizard.
NashWrap
A Wrap with design-system spacing defaults.
NashZIndexed
A widget that applies a z-index value using Stack.
A styled navigation drawer with header and sections.
A navigation drawer item with icon, label, badge and selected state.
A section header inside a navigation drawer.
A single destination in a NashNavigationRail.
NotFoundState
A 404 / page-not-found state.
NumberField
A numeric input field with an optional currency/unit prefix.
NumberUtils
Numeric helpers: math, normalization and aggregation.
OfflineState
A "no internet" state shown when the device is offline.
OtpField
A one-time-password (OTP) input with auto-advancing boxes.
OutlineButton
An outlined button.
PasswordField
A password field with a show/hide toggle.
PermissionHandler
A pluggable permission handler.
PermissionState
A permission-request state with icon, explanation and actions.
PermissionUtils
Permission helpers delegating to an injected PermissionHandler.
PhoneField
A phone number input field with phone keyboard and country prefix.
PieChart
A donut/pie chart with legend and optional center label.
PieSegment
A single pie/donut chart segment.
PrimaryButton
A primary call-to-action button with a brand gradient fill.
Product
A single product inside a EcommerceTemplate.
ProductCard
A product card with image, title, price and actions.
ProfileHeader
A gradient profile header with avatar, name, bio and stats.
ProfileStat
A single profile statistic.
RotateAnimation
Rotate entrance animation.
ScaleAnimation
Scale entrance animation.
SearchField
A search field with a clear button and submit callback.
SecondaryButton
A secondary (tonal) button using the theme's secondary container.
SelectionTile<T>
A clickable row that opens a sheet of options (theme, language, etc.).
SettingsGroup
A group of SettingsTiles inside a SettingsTemplate.
SettingsTemplate
A complete settings screen template.
SettingsTile
A settings row: icon, title, subtitle, trailing control.
Shake
Repeating horizontal shake emphasis animation.
SharedAxisTransition
A Material "shared axis" transition between two children.
Shimmer
A shimmer sweep overlay used to build shimmer placeholders.
SidebarItem
A single item in a NashSidebar.
SidebarSection
A section header inside a NashSidebar.
SignupTemplate
A complete sign-up / registration screen template.
Skeleton
A pulsing placeholder block used while content loads.
SkeletonGrid
A skeleton grid of media cards.
SkeletonList
A ready-made skeleton for common list items (avatar + lines).
SlideAnimation
Slide entrance animation.
SocialPost
A single social post inside a SocialTemplate.
SocialTemplate
A complete social-feed template.
Sparkline
A compact sparkline used for mini trends.
StatisticCard
A statistic card with icon, value, label and an optional trend.
StatTile
A compact statistics tile with icon, label and value.
StorageBackend
A pluggable key-value storage interface.
SuccessState
A success state screen (e.g. after form submission).
TimeRange
A time range picker (start + end time).
ToolbarAction
A custom toolbar action for the rich text editor.
Transaction
A single financial transaction.
TransitionSwitcher
Applies an TransitionType transition to child driven by animation.
UpdateState
An "update required" state prompting the user to update the app.
UserCard
A user profile card with avatar, name and actions.
V
Common validator functions returning an error message or null.
Validators
A collection of stateless validation functions.
VideoPlaceholder
A video placeholder with a play button.

Enums

AppBarStyle
Visual styles for the app bar.
AppFeedbackType
Severity levels shared across feedback, dialogs and cards.
AppScreenType
Screen size categories used across the responsive framework.
AsyncStatus
An enum describing the state of an AsyncBuilder.
ButtonVariant
Visual variants supported by LoadingButton.
ConnectivityBannerPosition
Position of the connectivity banner.
DataColumnAlignment
Column alignment for NashDataTable.
DateFieldPickerStyle
Style of date picker dialog / sheet to present.
DateMode
Picker variants for DateField.
LogLevel
Log severity levels.
NashCalendarMode
Selection mode for NashCalendar.
NashImageState
Image state for placeholder/error handling.
NashLoaderStyle
Loader style selector.
NashNotificationPosition
Notification position.
NashNotificationType
Notification type.
NashPopoverPlacement
Alignment placement for NashPopover.
NashPopoverTriggerMode
Trigger action for NashPopover.
NashSegmentSize
Visual sizes for NashSegmentedButton.
NashStepState
State of a stepper step.
NashTableExportFormat
Export format options.
PermissionKind
Permission kinds the design system is aware of.
PermissionStatus
The outcome of a permission request.
SharedAxis
Axis for the shared-axis transition.
SlideAnimationDirection
Direction of a slide animation.
SocialProvider
Supported third-party authentication providers for NashSocialButton.
SplitViewOrientation
Orientation for NashSplitView.
ToastPosition
Where on screen the toast appears.
ToastType
Visual style of the toast notification.
TransitionType
Supported page transition styles.

Extensions

AppBorderRadiusX on BorderRadius
Border helpers on BorderRadius.
AppColorschemeX on ColorScheme
Extensions for ColorScheme convenience.
AppColorstringX on String
Parses hex strings into Color values.
AppDurationX on Duration
Formatting helpers for durations.
ColorX on Color
Color manipulation and conversion extensions.
ContextColorX on BuildContext
Color extension helpers used across components.
ContextResponsiveX on BuildContext
Responsive context extensions.
DateX on DateTime
Date utilities as extensions on DateTime.
EdgeInsetsX on EdgeInsets
Padding helpers on EdgeInsets.
NashContextX on BuildContext
Convenience extensions on BuildContext.
NashElevationX on BuildContext
Convenience extension on BuildContext for elevation lookup.
NashLocalizationsX on BuildContext
Convenience extension for translating strings directly.
NashNotificationX on BuildContext
Quick-show extension for BuildContext.
NashReducedMotionX on BuildContext
Extension on BuildContext for reduced motion checks.
NashRtlContextX on BuildContext
Shorthand RTL helpers directly on BuildContext.
NashThemeDataX on ThemeData
Access to custom design-system tokens through ThemeData.
Named navigation helpers that return the resulting Future.
NumPaddingX on num
Padding shortcuts on num.
NumResponsiveX on num
Responsive number extensions.
StringNullX on String?
Null-safe string helpers.
StringValidationX on String
Extension on String providing common validation shortcuts.
StringX on String
String validation and transformation extensions.
WidgetAnimateX on Widget
Animated widget helpers.
WidgetX on Widget
Widget composition helpers.

Functions

screenTypeFor(double width) → AppScreenType
Classifies a width into an AppScreenType.
showActionSheet({required BuildContext context, required List<ActionSheetItem> items, String? title, String? subtitle, String? cancelLabel = 'Cancel'}) → Future<int?>
Shows an action sheet with a list of actions.
showNAlertDialog<T>({required BuildContext context, required String title, String? message, String? confirmLabel = 'OK', String? cancelLabel, T? confirmValue, T? cancelValue, VoidCallback? onConfirm, Color? confirmColor, AppFeedbackType type = AppFeedbackType.info, bool barrierDismissible = true}) → Future<T?>
Shows an alert dialog and returns the pressed action.
showNashBottomSheet<T>({required BuildContext context, required Widget child, bool isScrollControlled = true, bool isDismissible = true, bool enableDrag = true, bool useSafeArea = true}) → Future<T?>
Shows a modal bottom sheet and returns the sheet widget.
showNashCommandPalette<T>(BuildContext context, {required List<NashCommandItem> items, String placeholder = 'Type a command or search…', bool barrierDismissible = true}) → Future<T?>
Shows a modern command palette (Spotlight / Ctrl+K search dialog).
showNashDatePicker(BuildContext context, {DateTime? initialDate, DateTime? firstDate, DateTime? lastDate, String title = 'Select Date', String? locale}) → Future<DateTime?>
Shows a rich, modern modal bottom sheet date picker styled with Nash UI tokens.
showNashDateRangeDialog({required BuildContext context, required DateTime firstDate, required DateTime lastDate, DateTimeRange<DateTime>? initialDateRange, String? helpText, String? cancelText, String? confirmText}) → Future<DateTimeRange<DateTime>?>
A styled date range picker following the design system.
showNashDateRangePicker(BuildContext context, {DateTimeRange<DateTime>? initialRange, String title = 'Select Date Range'}) → Future<DateTimeRange<DateTime>?>
Shows a date range picker modal with quick preset chips (Today, This Week, This Month, etc.).
showNashDialog<T>({required BuildContext context, required Widget child, bool barrierDismissible = true, bool useRootNavigator = true}) → Future<T?>
Shows a themed dialog and returns the dialog widget.
showNashDraggableSheet<T>({required BuildContext context, required Widget builder(BuildContext context, ScrollController scrollController), double initialChildSize = 0.5, double minChildSize = 0.25, double maxChildSize = 0.95, List<double> snapSizes = const <double>[0.25, 0.5, 0.95], bool isDismissible = true}) → Future<T?>
Shows a draggable bottom sheet with multiple snap points.
showNashDurationPicker({required BuildContext context, Duration initialDuration = Duration.zero, String? helpText}) → Future<Duration?>
A styled duration picker.
showNashStyledTimePicker({required BuildContext context, required TimeOfDay initialTime, String? helpText}) → Future<TimeOfDay?>
A styled time picker following the design system.
showNashTimeRangePicker({required BuildContext context, TimeOfDay? startTime, TimeOfDay? endTime, String? helpText}) → Future<TimeRange?>
showNConfirmDialog({required BuildContext context, required String title, String? message, String confirmLabel = 'Confirm', String cancelLabel = 'Cancel', VoidCallback? onConfirm, Color? confirmColor, AppFeedbackType type = AppFeedbackType.info}) → Future<bool?>
Shows a confirmation dialog.
showNInputDialog({required BuildContext context, required String title, String? message, String? initialText, String confirmLabel = 'Save', String cancelLabel = 'Cancel', String? hintText, TextInputType? keyboardType, int maxLines = 1, String? validator(String?)?}) → Future<String?>
Shows an input dialog returning the entered text.