bgoncharuck / no_svg_country_flags

[FREEZED] Minimalistic plugin that provides country flags through Flutter CustomPainter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Null safety Dependencies Except Flutter Backwards Compatibility

No Svg Country Flags

I was shocked to see that every plugin with country flags for Flutter depends on some assets and other plugins like flutter_svg.

Can't understand why load assets if you can use something that is native for flutter like CustomPaint.

dependencies:
  flutter:
    sdk: flutter

That's all!

  • It is simply faster. You don't load anything, you just draw on Flutter Canvas.
  • It weights less. You don't need a plugin with a bunch of logic that does the same I did in every CustomPainter here.
  • It does not have any other dependency except for Flutter. Which is good for clean architecture freaks like me.

Example

const CountryFlag(
  countryCode: 'PL',
  width: 68,
  height: 42,
  borderRadius: 12,
)

About

[FREEZED] Minimalistic plugin that provides country flags through Flutter CustomPainter

License:GNU Lesser General Public License v2.1


Languages

Language:Dart 100.0%