nisrulz / flutter-examples

[Examples] Simple basic isolated apps, for budding flutter devs.
https://nisrulz.com/flutter-examples/
Apache License 2.0
6.86k stars 1.65k forks source link

Adding Platform Adaptive Example #121

Closed TrackSpike closed 1 year ago

TrackSpike commented 1 year ago

What does this implement/fix? Explain your changes Example app showing usage of the Platform Adaptive Pattern.

Flutter's flagship feature is it's ability to write code once and have it run on multiple devices. While this is great, sometimes you want the user interface to look more native to its platform. This project showcases the Platform Adaptive pattern, a powerful pattern that allows you to create widgets that you write once and look natural on any device. The demo is just set up to work on android and iOS but can be extended to work on web, native and any other platform flutter supports.

Pattern is inspired by this article

I think this project will especially help developers coming from react native.

Screenshots

android-example iOS-example

Does this close any currently open issues?

Any relevant logs, error output, bug-report etc?

Any other comments?