platform_icons 0.0.6 platform_icons: ^0.0.6 copied to clipboard
Simplify icon usage in your flutter app with icons that adapt to the platform you're running on. Uses material icons on Android & web. Uses Cupertino icons on iOS & MacOS. Uses Fluent UI icons on Windows.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add platform_icons
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
platform_icons: ^0.0.6
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:platform_icons/platform_icons.dart';