I'm using Flutter Flag package to show countries flags. When trying to specify for England, Wales, N-Ireland or Scotland flag, it returns the replacement flag.
Flag.fromString('gb-eng',
height: 18,
width: 18,
fit: BoxFit.fitWidth,
replacement: Container(
height: 18,
width: 18,
decoration: BoxDecoration(
image: const DecorationImage(
image: AssetImage(replacementFlag),
fit: BoxFit.contain,
)),
)),
I tried using the Flag.fromCode format too, and that doesn't work too.
The gb
works though.
How do I get the England flag?