Cupertino Widgets

Before we venture out of Flutter Dart code too much, there is one thing you might have noticed in pubspec.yaml: the dependency on cupertino_icons. We have actually never used what is contained in it in the body of the book, because it doesn’t really allow you to do anything you couldn’t do before in Flutter apps: it contains icons to be used by widgets that look like native Apple widgets and can be used instead of the Material Design widgets.

This means you have the following two choices regarding the look of your app:

  • Make your app look the same on Android and iOS by either using the Material widgets or the Cupertino widgets.

  • Make your app look like other apps built for each platform by using Material widgets on Android and ...

Get Programming Flutter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.