⚠️ This package is discontinued. It is no longer actively maintained and no new releases will be published. The code remains available for reference, but you should look for actively maintained alternatives before using it in new projects.
More cross platform widgets for Flutter developers.
Based on these great packages:
Licensed commercially friendly under the MIT License.
Add this as a dependency to your pubspec.yaml:
dependencies:
enough_platform_widgets: ^1.0.0
- Use 1.0 or higher for Flutter 3.16+
- Use 0.7.4 for previous Flutter versions
Platform widgets use their material or cupertino equivalent based on the chosen platform.
DecoratedPlatformTextFieldprovides a cross platform replacement for the materialTextFieldDensePlatformIconButtonreplaces the materialIconButtonDialogHelperhelps to show platform specific dialogsPlatformBottomBarshows aBottomAppBaron material and aCupertinoBaron cupertinoPlatformCheckboxListTileis a platform aware simple checkbox list tilePlatformChipa simple cross-platformChipreplacementPlatformDialogActionButtonis a platform aware dialog actionPlatformDialogActionTextprovides a platform aware dialog action textPlatformDropdownButtonis a replacement for the materialDropdownButtonPlatformFilledButtonIconuses anElevatedButton.filledon material and aCupertinoButton.filledon cupertinoPlatformInkWellis a rectangular area of a that responds to touch and is based either onInkWellor onCupertinoInkWellPlatformPageScaffoldprovides aPlatformScaffoldwith the additional option to define a bottom bar.PlatformPopupButtonuses an action sheet on cupertino and a popup button on material.PlatformProgressIndicatoruses aCircularProgressIndicatoron material and aCupertinoActivityIndicatoron cupertinoPlatformRadioListTileprovides a RadioListTile implementation for both material and cupertinoPlatformSliverAppBaruses aSliverAppBaron material or aCupertinoSliverNavigationBaron cupertinoPlatformSnackAppis a base app that allows to show SnackBars on cupertino as wellPlatformStepperabstracts theSteppermaterial widgetPlatformTextButtonIconis a simple replacement forTextButton.iconPlatformToggleButtonsprovides a platform awareToggleButtonsreplacementPlatformToolbarprovides a toolbar optionSelectablePlatformListTileprovides a ListTile implementation for both material and cupertinoshowPlatformTimePicker()displays a platform aware time pickershowPlatformDatePicker()displays a platform aware date picker- Additionally, all flutter_platform_widgets are available.
Currently the following cupertino widgets are provided:
CupertinoBaris a simple cupertino bar that either blurs the background or provides a translucent backgroundCupertinoCheckboxListTileprovides a simple cupertino style checkbox list tileCupertinoChipis a cupertino version of the materialChipwidgetCupertinoDropdownButtonmaps the basic dropdown feature to aCupertinoPickerCupertinoInkWellis a rectangular area of a that responds to touchCupertinoMultipleSegmentedControlis like theCupertinoSegmentedControlbut it allows to select several segments at onceCupertinoPageScaffoldWithToolbarprovides a scaffold with the option to define a toolbar widgetCupertinoPageWithBaris a simple page with a bar that can be aligned top/bottom/left/rightCupertinoRadioListTileprovides a simple cupertino style radio list tileCupertinoSearchFlowTextFielddisplays a CupertinoSearchTextField with the expected UX flow that switches to a full-screen experience once editing startsCupertinoSnackAppis a CupertinoApp that also allows to display snack bar messagesCupertinoToolbara simple wrapper for a cupertino toolbar widget
Check out the full API documentation at https://pub.dev/documentation/enough_platform_widgets/latest/
Made with contrib.rocks.