Flutter | svg 파일 사용하는 방법

HN·2024년 7월 12일
0

Flutter

목록 보기
11/11

Flutter

flutter_svg 패키지를 이용하면 된다!

패키지 설치 후 이미지 경로에 따라 asset(), network() 등을 사용하면 됨.

SvgPicture.asset(
	"assets/images/home.svg",
	width: 24,
	colorFilter: ColorFilter.mode(
		isDark ? const Color(ThemeColors.outerSpace) : Colors.white,
		BlendMode.srcIn,
                ),
              ),

0개의 댓글