LunaGao / flag_flutter

flag icons
https://pub.dev/packages/flag
BSD 2-Clause "Simplified" License
63 stars 60 forks source link

CAUGHT AN EXCEPTION WHILE USING THE FLAG PACKAGE FOR FLUTTER APP #76

Closed spellsuvam closed 1 year ago

spellsuvam commented 2 years ago

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)) -------------------------------------------------------------------------------------------------------
HarsHvA commented 2 years ago

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

ByJerome commented 2 years ago

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_

HarsHvA commented 2 years ago

@ByJerome sure thanks I'll try that

LunaGao commented 1 year ago

fixed in 7.0.0 version. image