NotImplemented

();

});

You should now be able to run the application on Windows.
If your device doesn’t have a battery,
it displays ‘Battery level not available’.

Step 6: Add a Linux platform-specific implementation

For this example you need to install the upower developer headers.
This is likely available from your distribution, for example with:

sudo apt

install libupower-glib-dev

Start by opening the Linux host portion of your Flutter app in the editor
of your choice. The instructions below are for Visual Studio Code with the
“C/C++” and “CMake” extensions installed, but can be adjusted for other IDEs.

Launch Visual Studio Code.

Open the linux directory inside your project.

Choose Yes in the prompt asking: Would you like to configure project "linux"?.
This enables C++ autocomplete.