In the previous section, we generated a plugin project to start analyzing. Now let's take a look at specific parts of it. The project is the default plugin example from Flutter; the only thing it does is return the platform OS version of the running device.
There are some differences, though:
- The contents of the ios/ and android/ folders does not contain native applications that start the Flutter runtime. Instead, it simply contains native classes that are entry points to specific native implementations. We will check this in detail later.
- The example/ directory is a simple Flutter application package—yes, a subpackage inside the plugin package.
- lib/hands_on_show_toast.dart is a Dart API for the plugin:
// pubspec.yaml
name: hands_on_platform_version
description: A new flutter plugin project.
version: 0.0.1
author:
homepage:
environment:
...