platform_icons 0.0.2 platform_icons: ^0.0.2 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 Dart:
$ dart pub add platform_icons
With Flutter:
$ flutter pub add platform_icons
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
platform_icons: ^0.0.2
Alternatively, your editor might support dart pub get
or 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';