flag_flutter icon indicating copy to clipboard operation
flag_flutter copied to clipboard

CAUGHT AN EXCEPTION WHILE USING THE FLAG PACKAGE FOR FLUTTER APP

Open spellsuvam opened this issue 2 years ago • 3 comments

while i was trying to show the flags of countries like brazil and afgansthan by using both the flagcodes and strings (flagcode.AF,"AF"). i got a svg realted exception. The exception is given below:- ----------------Exception------------------------- #6 SvgParserState.parse package:flutter_svg/…/svg/parser_state.dart:885 #7 SvgParser.parse package:flutter_svg/parser.dart:27 #8 Svg.fromSvgString package:flutter_svg/svg.dart:139 #9 Svg.svgPictureStringDecoder package:flutter_svg/svg.dart:90 Picture provider: ExactAssetPicture(name: "packages/flag/res/4x3/af.svg", bundle: null, colorFilter: null) Picture key: AssetBundlePictureKey(bundle: PlatformAssetBundle#3ea37(), name: "packages/flag/res/4x3/af.svg", colorFilter: null, theme: SvgTheme(currentColor: null, fontSize: 14.0, xHeight: 7.0))

spellsuvam avatar Jun 14 '22 05:06 spellsuvam

I am also getting the same issue. Did you find any solution?

HarsHvA avatar Aug 22 '22 12:08 HarsHvA

I am also getting the same issue. Did you find any solution?

@HarsHvA LunaGao merged my fixes into the stable branch. I fixed like 99% of all problems. Just install the package into your pubspec.yaml as described:

"use it like this for now:"

flag:
  git:
    url: https://github.com/LunaGao/flag_flutter.git
    ref: stable

Originally posted by @pauli2406 in https://github.com/LunaGao/flag_flutter/issues/77#issuecomment-1215888324

ByJerome avatar Aug 27 '22 00:08 ByJerome

@ByJerome sure thanks I'll try that

HarsHvA avatar Aug 27 '22 08:08 HarsHvA

fixed in 7.0.0 version. image

LunaGao avatar Jun 13 '23 16:06 LunaGao