ilikerobots / polyicon

Flutter icon set generator
http://fluttericon.com
MIT License
421 stars 49 forks source link

Allow multiplatform icons #62

Open danielgomezrico opened 3 years ago

danielgomezrico commented 3 years ago

Sometimes there are icons that works for android but on iOS are different by their patterns, like share button:

It will be cool if we can check from the UI if there are multiple version of the same icon per platform, and then it generates something like:

static const IconData ic_share_android =
      IconData(0xe80f, fontFamily: _kFontFam, fontPackage: _kFontPkg);

static const IconData ic_share_ios =
      IconData(0xe82a, fontFamily: _kFontFam, fontPackage: _kFontPkg);

static IconData get ic_share {
    return Platform.isIOS ? ic_share_ios : ic_share_android;
}

So the code should check the platform by himself "automatically" and show the proper icon on each side.

That's just an Idea that may help in the proccess