Add More Adaptive Widgets to Flutter

Integrate the platform's adaptive widgets arsenal with the flutter_platform_widgets package.

A Flutter application’s UI is adaptive if the application can change the design based on the platform it’s running on. For instance, an Android button is different from an iOS text button.

Some Flutter widgets can be created using a constructor named adaptive that will load the proper UI for the platform our application is running on. The number of adaptive widgets in the Flutter framework is limited, but we can use the flutter_platform_widgets package to get more in our applications. This package adds several adaptive widgets, but we’ll focus on a few interesting ones.

The PlatformText widget

The PlatformText widget displays text in the classic format of the platform.

Get hands-on with 1200+ tech skills courses.