adaptive_platform_ui library
A Flutter package that provides adaptive platform-specific widgets
This package automatically renders native-looking widgets based on the platform:
- iOS 26+: Modern iOS 26 native designs with latest visual styles
- iOS <26 (iOS 18 and below): Traditional Cupertino widgets
- Android: Material Design widgets
Features
- Automatic platform detection
- iOS version-specific widget rendering
- Native iOS 26 designs following Apple's Human Interface Guidelines
- Seamless fallback to appropriate widgets for older iOS versions
- Material Design for Android
Usage
import 'package:adaptive_platform_ui/adaptive_platform_ui.dart';
AdaptiveButton(
onPressed: () {
print('Button pressed');
},
child: Text('Click Me'),
)
Classes
- AdaptiveAlertDialog
- An adaptive alert dialog that renders platform-specific styles
- AdaptiveAlertDialogInput
- Configuration for text input in alert dialog
- AdaptiveApp
- An adaptive app that uses MaterialApp for Android and CupertinoApp for iOS
- AdaptiveAppBar
- Configuration for an adaptive app bar
- AdaptiveAppBarAction
- An app bar action that can be displayed in AdaptiveScaffold
- AdaptiveBadge
- An adaptive badge that renders platform-specific badge styles
- AdaptiveBlurView
- A widget that applies a platform-specific blur effect to its background
- Configuration for an adaptive bottom navigation bar
- AdaptiveButton
- An adaptive button that renders platform-specific button styles
- AdaptiveCard
- An adaptive card that renders platform-specific card styles
- AdaptiveCheckbox
- An adaptive checkbox that renders platform-specific checkbox styles
- AdaptiveContextMenu
- An adaptive context menu that renders platform-specific styles
- AdaptiveContextMenuAction
- A context menu action item
- AdaptiveDatePicker
- An adaptive date picker that renders platform-specific styles
- AdaptiveExpansionTile
- A platform-adaptive expansion tile widget that provides expandable/collapsible content.
- AdaptiveFloatingActionButton
- An adaptive floating action button that renders platform-specific styles
- AdaptiveFormSection
- An adaptive form section widget that displays a group of form rows with optional header and footer.
- AdaptiveListTile
- An adaptive list tile that renders platform-specific styles
- Navigation destination for bottom navigation
-
AdaptivePopupMenuButton<
T> - An adaptive popup menu button that renders platform-specific styles
- AdaptivePopupMenuDivider
- A visual divider between popup menu items
- AdaptivePopupMenuEntry
- Base type for entries in a popup menu
-
AdaptivePopupMenuItem<
T> - A selectable item in a popup menu
-
AdaptiveRadio<
T> - An adaptive radio button that renders platform-specific radio styles
- AdaptiveScaffold
- An adaptive scaffold that renders platform-specific navigation
- AdaptiveSegmentedControl
- An adaptive segmented control that renders platform-specific styles
- AdaptiveSlider
- An adaptive slider that renders platform-specific slider styles
- AdaptiveSnackBar
- An adaptive snackbar that shows platform-appropriate notifications
- AdaptiveSwitch
- An adaptive switch that renders platform-specific switch styles
- AdaptiveTabBarView
- An adaptive tab bar view (horizontal swipeable tabs)
- AdaptiveTextField
- An adaptive text field that renders platform-specific styles
- AdaptiveTextFormField
- An adaptive text form field that renders platform-specific styles
- AdaptiveTimePicker
- An adaptive time picker that renders platform-specific styles
- AdaptiveTooltip
- An adaptive tooltip that renders platform-specific tooltip styles
- AlertAction
- A single action in an alert dialog
- CupertinoAppData
- Platform-specific configuration for CupertinoApp
- IOS26AlertDialog
- Native iOS 26 alert dialog implementation using platform views
- IOS26Button
- Native iOS 26 button implementation using platform views
- Ios26NativeBlurView
- iOS 26+ native blur view using UIVisualEffectView
- Ios26NativeBlurViewState
- IOS26NativeSearchTabBar
- iOS 26+ Native Tab Bar with Search Support
- IOS26NativeTabBar
- Native iOS 26 tab bar using UITabBar platform view
- IOS26ScaffoldLegacy
- Legacy Native iOS 26 scaffold with UITabBar (platform view based) This is the same as IOS26Scaffold but kept as a separate class for reference For app-level native search tab bar, use IOS26NativeSearchTabBar directly
- IOS26SegmentedControl
- Native iOS 26 segmented control implementation using platform views
- IOS26Slider
- Native iOS 26 slider implementation using platform views
- IOS26Switch
- Native iOS 26 switch implementation using platform views
- IOSSpringCurve
- MaterialAppData
- Platform-specific configuration for MaterialApp
- NativeTabConfig
- Configuration for a native tab
- PlatformInfo
- Provides platform detection and iOS version information
- SFSymbol
- Describes an SF Symbol for native iOS 26 rendering
Enums
- AdaptiveButtonSize
- Button size presets
- AdaptiveButtonStyle
- Button style variants that adapt to each platform
- AdaptiveSnackBarType
- Snackbar type for different visual styles
- AlertActionStyle
- Action types for alert dialog buttons
- BlurStyle
- Blur styles matching iOS UIBlurEffect.Style
- IOS26ButtonSize
- iOS 26 button size presets matching native design
- IOS26ButtonStyle
- iOS 26 native button styles (Liquid Glass design)
- PlatformTarget
- Platform detection for configuration callbacks
- PopupButtonStyle
- Button style for popup menu button
- TabBarMinimizeBehavior
- Tab bar minimize behavior for iOS 26+
- ToolbarSpacerType
- Spacer type for toolbar items (iOS 26+ only)