platform_icons 0.0.6 copy "platform_icons: ^0.0.6" to clipboard
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.

platform_icons #

This package combines MaterialIcons, CupertinoIcons and FluentUI icons and return the icon based on the platform your app is running on. Making it easier to make your crossplatform app look like it was build specifically for that platform.

Example: Example

Online example with all supported icons is available at examples.simplewidgets.dev/#/platform_icons

How to use #

This packages uses a similair approach as the normal Icon widget. Instead of writing: Icon(Icons._____) you can write: PlatformIcon(PlatformIcons.____) which has the same input parameters as the normal Icon widget.

  • double? size
  • double? fill
  • double? weight
  • double? grade
  • double? opticalSize
  • Color? color
  • List<Shadow>? shadows
  • String? semanticLabel
  • TextDirection? textDirection

Supported icons #

Not all icons from each icon library are included, to see all supported icons go to the online example examples.simplewidgets.dev/#/platform_icons

Like to contribute? #

Feel free to help us improve this package by creating issues, pull request etc. For any questions you can email hello@simplewidgets.dev

4
likes
120
pub points
74%
popularity

Publisher

verified publishersimplewidgets.dev

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

cupertino_icons, fluentui_system_icons, flutter

More

Packages that depend on platform_icons