Giter Club home page Giter Club logo

Comments (4)

bramp avatar bramp commented on June 7, 2024 4

Thanks for the examples.

FlutterGen only considers a .json a Lottie file, if it passes this code https://github.com/FlutterGen/flutter_gen/blob/main/packages/core/lib/generators/integrations/lottie_integration.dart#L107-L132

Specifically they must contain all these fields:

'w', // width
'h', // height
'ip', // The frame at which the Lottie animation starts at
'op', // The frame at which the Lottie animation ends at
'fr', // frame rate
'v', // // Must include version
'layers', // Must include layers

and the 'v' field must have a valid version number greater than 4.4.

Neither of those json files satisfy those conditions, and are thus not lottie files.

from flutter_gen.

bramp avatar bramp commented on June 7, 2024

Can you provide one of the JSON files that should be a Lottie but is not identified as such?

from flutter_gen.

flexboni avatar flexboni commented on June 7, 2024

Can you provide one of the JSON files that should be a Lottie but is not identified as such?

[test.json]

{"data":{"title":""}}

[curriculum_v1.json]

{
  "data": [
    {
      "code": "cha-001",
      "level": "middle",
      "title": "중학교",
      "grade": 1,
      "sectors": [
        {
          "code": "cha-001-001",
          "title": "수와 연산",
          "bigUnits": [
            {
              "code": "cha-001-001-001",
              "title": "수와 연산",
              "middleUnits": [
                {
                  "code": "cha-001-001-001-001",
                  "title": "소인수분해",
                  "smallUnits": [
                    {
                      "code": "cha-001-001-001-001-001",
                      "title": "소인수분해",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-001-001-001",
                          "title": "소수와 합성수"
                        },
                        {
                          "code": "cha-001-001-001-001-001-002",
                          "title": "소인수분해"
                        },
                        {
                          "code": "cha-001-001-001-001-001-003",
                          "title": "소인수분해를 이용한 약수와 배수"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-001-001-001-002",
                      "title": "최대공약수와 최소공배수",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-001-002-001",
                          "title": "최대공약수와 최소공배수"
                        },
                        {
                          "code": "cha-001-001-001-001-002-002",
                          "title": "최대공약수와 최소공배수의 성질"
                        },
                        {
                          "code": "cha-001-001-001-001-002-003",
                          "title": "최대공약수와 최소공배수의 활용"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-001-001-001-002",
                  "title": "정수와 유리수",
                  "smallUnits": [
                    {
                      "code": "cha-001-001-001-002-001",
                      "title": "정수와 유리수",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-002-001-001",
                          "title": "정수와 유리수"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-001-001-002-002",
                      "title": "정수와 유리수의 대소 관계",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-002-002-001",
                          "title": "수직선과 절대값"
                        },
                        {
                          "code": "cha-001-001-001-002-002-002",
                          "title": "수의 대소 관계의 표현"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-001-001-002-003",
                      "title": "정수와 유리수의 덧셈, 뺄셈",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-002-003-001",
                          "title": "유리수의 덧셈과 뺄셈"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-001-001-002-004",
                      "title": "정수와 유리수의 곱셈, 나눗셈",
                      "subjects": [
                        {
                          "code": "cha-001-001-001-002-004-001",
                          "title": "유리수의 곱셈"
                        },
                        {
                          "code": "cha-001-001-001-002-004-002",
                          "title": "유리수의 나눗셈"
                        },
                        {
                          "code": "cha-001-001-001-002-004-003",
                          "title": "덧셈에 대한 곱셈의 분배법칙"
                        },
                        {
                          "code": "cha-001-001-001-002-004-004",
                          "title": "유리수의 덧셈, 뺄셈, 곱셈, 나눗셈의 혼합계산"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-001-002",
          "title": "문자와 식",
          "bigUnits": [
            {
              "code": "cha-001-002-001",
              "title": "문자와 식",
              "middleUnits": [
                {
                  "code": "cha-001-002-001-001",
                  "title": "문자의 사용과 식의 계산",
                  "smallUnits": [
                    {
                      "code": "cha-001-002-001-001-001",
                      "title": "문자의 사용",
                      "subjects": [
                        {
                          "code": "cha-001-002-001-001-001-001",
                          "title": "문자의 사용"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-002-001-001-002",
                      "title": "식의 계산",
                      "subjects": [
                        {
                          "code": "cha-001-002-001-001-002-001",
                          "title": "다항식과 일차식"
                        },
                        {
                          "code": "cha-001-002-001-001-002-002",
                          "title": "일차식의 덧셈, 뺄셈, 곱셈, 나눗셈"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "code": "cha-001-002-002",
              "title": "일차방정식",
              "middleUnits": [
                {
                  "code": "cha-001-002-002-002",
                  "title": "일차방정식",
                  "smallUnits": [
                    {
                      "code": "cha-001-002-002-002-001",
                      "title": "방정식과 그 해",
                      "subjects": [
                        {
                          "code": "cha-001-002-002-002-001-001",
                          "title": "방정식과 항등식"
                        },
                        {
                          "code": "cha-001-002-002-002-001-002",
                          "title": "등식의 성질"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-002-002-002-002",
                      "title": "일차방정식",
                      "subjects": [
                        {
                          "code": "cha-001-002-002-002-002-001",
                          "title": "일차방정식의 풀이"
                        },
                        {
                          "code": "cha-001-002-002-002-002-002",
                          "title": "일차방정식의 활용"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-001-003",
          "title": "함수",
          "bigUnits": [
            {
              "code": "cha-001-003-001",
              "title": "좌표평면과 그래프",
              "middleUnits": [
                {
                  "code": "cha-001-003-001-001",
                  "title": "좌표평면과 그래프",
                  "smallUnits": [
                    {
                      "code": "cha-001-003-001-001-001",
                      "title": "순서쌍과 좌표",
                      "subjects": [
                        {
                          "code": "cha-001-003-001-001-001-001",
                          "title": "좌표평면의 성질"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-003-001-001-002",
                      "title": "그래프",
                      "subjects": [
                        {
                          "code": "cha-001-003-001-001-002-001",
                          "title": "그래프"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-003-001-001-003",
                      "title": "정비례와 반비례",
                      "subjects": [
                        {
                          "code": "cha-001-003-001-001-003-001",
                          "title": "정비례"
                        },
                        {
                          "code": "cha-001-003-001-001-003-002",
                          "title": "반비례"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-001-004",
          "title": "기하",
          "bigUnits": [
            {
              "code": "cha-001-004-001",
              "title": "도형의 기초",
              "middleUnits": [
                {
                  "code": "cha-001-004-001-001",
                  "title": "기본 도형",
                  "smallUnits": [
                    {
                      "code": "cha-001-004-001-001-001",
                      "title": "점, 선, 면, 각",
                      "subjects": [
                        {
                          "code": "cha-001-004-001-001-001-001",
                          "title": "점, 선, 면"
                        },
                        { "code": "cha-001-004-001-001-001-002", "title": "" }
                      ]
                    },
                    {
                      "code": "cha-001-004-001-001-002",
                      "title": "점, 직선, 평면의 위치 관계",
                      "subjects": [
                        {
                          "code": "cha-001-004-001-001-002-001",
                          "title": "점의 위치관계"
                        },
                        {
                          "code": "cha-001-004-001-001-002-002",
                          "title": "직선의 위치관계"
                        },
                        {
                          "code": "cha-001-004-001-001-002-003",
                          "title": "평면\u001f의 위치관계"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-004-001-001-003",
                      "title": "동위각과 엇각",
                      "subjects": [
                        {
                          "code": "cha-001-004-001-001-003-001",
                          "title": "평행선과 각"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-001-004-001-002",
                  "title": "작도와 합동",
                  "smallUnits": [
                    {
                      "code": "cha-001-004-001-002-001",
                      "title": "삼각형의 작도",
                      "subjects": [
                        {
                          "code": "cha-001-004-001-002-001-001",
                          "title": "기본적인 작도"
                        },
                        {
                          "code": "cha-001-004-001-002-001-002",
                          "title": "삼각형의 작도"
                        },
                        {
                          "code": "cha-001-004-001-002-001-003",
                          "title": "삼각형이 정해질 조건"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-004-001-002-002",
                      "title": "삼각형의 합동",
                      "subjects": [
                        {
                          "code": "cha-001-004-001-002-002-001",
                          "title": "삼각형의 합동"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "code": "cha-001-004-002",
              "title": "평면도형과 입체도형",
              "middleUnits": [
                {
                  "code": "cha-001-004-002-001",
                  "title": "평면도형의 성질",
                  "smallUnits": [
                    {
                      "code": "cha-001-004-002-001-001",
                      "title": "다각형의 성질",
                      "subjects": [
                        {
                          "code": "cha-001-004-002-001-001-001",
                          "title": "삼각형"
                        },
                        {
                          "code": "cha-001-004-002-001-001-002",
                          "title": "다각형"
                        },
                        {
                          "code": "cha-001-004-002-001-001-003",
                          "title": "정다각형"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-004-002-001-002",
                      "title": "원과 부채꼴",
                      "subjects": [
                        {
                          "code": "cha-001-004-002-001-002-001",
                          "title": ""
                        },
                        {
                          "code": "cha-001-004-002-001-002-002",
                          "title": "부채꼴"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-001-004-002-002",
                  "title": "입체도형의 성질",
                  "smallUnits": [
                    {
                      "code": "cha-001-004-002-002-001",
                      "title": "다면체의 성질",
                      "subjects": [
                        {
                          "code": "cha-001-004-002-002-001-001",
                          "title": "다면체"
                        },
                        {
                          "code": "cha-001-004-002-002-001-002",
                          "title": "다면체의 전개도"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-004-002-002-002",
                      "title": "회전체의 성질",
                      "subjects": [
                        {
                          "code": "cha-001-004-002-002-002-001",
                          "title": "회전체"
                        },
                        {
                          "code": "cha-001-004-002-002-002-002",
                          "title": "회전체의 전개도"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-004-002-002-003",
                      "title": "입체도형의 겉넓이와 부피",
                      "subjects": [
                        {
                          "code": "cha-001-004-002-002-003-001",
                          "title": "기둥"
                        },
                        {
                          "code": "cha-001-004-002-002-003-002",
                          "title": ""
                        },
                        { "code": "cha-001-004-002-002-003-003", "title": "" }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-001-005",
          "title": "확률과 통계",
          "bigUnits": [
            {
              "code": "cha-001-005-001",
              "title": "통계(1)",
              "middleUnits": [
                {
                  "code": "cha-001-005-001-001",
                  "title": "자료의 정리와 해석",
                  "smallUnits": [
                    {
                      "code": "cha-001-005-001-001-001",
                      "title": "줄기와 잎 그림",
                      "subjects": [
                        {
                          "code": "cha-001-005-001-001-001-001",
                          "title": "줄기와 잎 그림"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-005-001-001-002",
                      "title": "도수분포표",
                      "subjects": [
                        {
                          "code": "cha-001-005-001-001-002-001",
                          "title": "도수분포표"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-005-001-001-003",
                      "title": "히스토그램과 도수분포다각형",
                      "subjects": [
                        {
                          "code": "cha-001-005-001-001-003-001",
                          "title": "히스토그램과 도수분포다각형"
                        }
                      ]
                    },
                    {
                      "code": "cha-001-005-001-001-004",
                      "title": "상대도수",
                      "subjects": [
                        {
                          "code": "cha-001-005-001-001-004-001",
                          "title": "상대도수"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "code": "cha-002",
      "level": "middle",
      "title": "중학교",
      "grade": 2,
      "sectors": [
        {
          "code": "cha-002-001",
          "title": "수와 연산",
          "bigUnits": [
            {
              "code": "cha-002-001-001",
              "title": "수와 식의 계산",
              "middleUnits": [
                {
                  "code": "cha-002-001-001-001",
                  "title": "유리수와 순환소수",
                  "smallUnits": [
                    {
                      "code": "cha-002-001-001-001-001",
                      "title": "유리수와 순환소수",
                      "subjects": [
                        {
                          "code": "cha-002-001-001-001-001-001",
                          "title": "분수를 소수로 나타내기"
                        },
                        {
                          "code": "cha-002-001-001-001-001-002",
                          "title": "소수를 분수로 나타내기"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-001-001-001-002",
                      "title": "지수법칙",
                      "subjects": [
                        {
                          "code": "cha-002-001-001-001-002-001",
                          "title": "지수법칙"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-001-001-001-003",
                      "title": "다항식의 덧셈과 뺄셈",
                      "subjects": [
                        {
                          "code": "cha-002-001-001-001-003-001",
                          "title": "다항식의 덧셈과 뺄셈"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-001-001-001-004",
                      "title": "다항식의 곱셈과 나눗셈(2)",
                      "subjects": [
                        {
                          "code": "cha-002-001-001-001-004-001",
                          "title": "단항식의 곱셈과 나눗셈"
                        },
                        {
                          "code": "cha-002-001-001-001-004-002",
                          "title": "다항식과 단항식의 곱셈과 나눗셈"
                        },
                        {
                          "code": "cha-002-001-001-001-004-003",
                          "title": "단항식의 곱셈과 나눗셈의 혼합 계산"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-002-002",
          "title": "문자와 식",
          "bigUnits": [
            {
              "code": "cha-002-002-001",
              "title": "부등식과 연립방정식",
              "middleUnits": [
                {
                  "code": "cha-002-002-001",
                  "title": "일차부등식",
                  "smallUnits": [
                    {
                      "code": "cha-002-002-001-001",
                      "title": "부등식과 그 해",
                      "subjects": [
                        { "code": "cha-002-002-001-001-001", "title": "부등식" }
                      ]
                    },
                    {
                      "code": "cha-002-002-001-002",
                      "title": "일차부등식",
                      "subjects": [
                        {
                          "code": "cha-002-002-001-002-001",
                          "title": "일차부등식의 풀이"
                        },
                        {
                          "code": "cha-002-002-001-002-002",
                          "title": "일차부등식의 활용"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-002-002-002",
                  "title": "연립일차방정식",
                  "smallUnits": [
                    {
                      "code": "cha-002-002-002-001",
                      "title": "미지수가 2개인 연립일차방정식",
                      "subjects": [
                        {
                          "code": "cha-002-002-002-001-001",
                          "title": "연립일차방정식의 풀이"
                        },
                        {
                          "code": "cha-002-002-002-001-002",
                          "title": "해가 특수한 연립방정식"
                        },
                        {
                          "code": "cha-002-002-002-001-003",
                          "title": "연립일차방정식의 활용"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-002-003",
          "title": "함수",
          "bigUnits": [
            {
              "code": "cha-002-003-001",
              "title": "함수",
              "middleUnits": [
                {
                  "code": "cha-002-003-001-001",
                  "title": "일차함수와 그래프",
                  "smallUnits": [
                    {
                      "code": "cha-002-003-001-001-001",
                      "title": "일차함수와 그 그래프",
                      "subjects": [
                        {
                          "code": "cha-002-003-001-001-001-001",
                          "title": "일차함수와 그 그래프"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-003-001-001-002",
                      "title": "일차함수의 그래프의 성질과 활용",
                      "subjects": [
                        {
                          "code": "cha-002-003-001-001-002-001",
                          "title": "일차함수의 그래프의 평행, 일치"
                        },
                        {
                          "code": "cha-002-003-001-001-002-002",
                          "title": "다양한 일차함수 식 구하기\u001f"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-002-003-001-002",
                  "title": "일차함수와 일차방정식의 관계",
                  "smallUnits": [
                    {
                      "code": "cha-002-003-001-002-001",
                      "title": "일차함수와 일차방정식",
                      "subjects": [
                        {
                          "code": "cha-002-003-001-002-001-001",
                          "title": "일차방정식과 그래프"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-003-001-002-002",
                      "title": "두 일차함수의 그래프와 연립일차방정식",
                      "subjects": [
                        {
                          "code": "cha-002-003-001-002-002-001",
                          "title": "두 일차함수의 그래프와 연립일차방정식"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-002-004",
          "title": "기하",
          "bigUnits": [
            {
              "code": "cha-002-004-001",
              "title": "도형의 성질",
              "middleUnits": [
                {
                  "code": "cha-002-004-001-001",
                  "title": "삼각형의 성질",
                  "smallUnits": [
                    {
                      "code": "cha-002-004-001-001-001",
                      "title": "이등변삼각형의 성질",
                      "subjects": [
                        {
                          "code": "cha-002-004-001-001-001-001",
                          "title": "이등변삼각형"
                        },
                        {
                          "code": "cha-002-004-001-001-001-002",
                          "title": "직각삼각형의 합동 조건"
                        },
                        {
                          "code": "cha-002-004-001-001-001-003",
                          "title": "각의 이등분선의 성질"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-004-001-001-002",
                      "title": "삼각형의 외심과 내심",
                      "subjects": [
                        {
                          "code": "cha-002-004-001-001-002-001",
                          "title": "삼각형의 외심"
                        },
                        {
                          "code": "cha-002-004-001-001-002-002",
                          "title": "삼각형의 내심"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-002-004-001-002",
                  "title": "사각형의 성질",
                  "smallUnits": [
                    {
                      "code": "cha-002-004-001-002-001",
                      "title": "평행사변형",
                      "subjects": [
                        {
                          "code": "cha-002-004-001-002-001-001",
                          "title": "평행사변형의 성질"
                        },
                        {
                          "code": "cha-002-004-001-002-001-002",
                          "title": "평행사변형의 넓이"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-004-001-002-002",
                      "title": "여러 가지 사각형",
                      "subjects": [
                        {
                          "code": "cha-002-004-001-002-002-001",
                          "title": "직사각형의 성질"
                        },
                        {
                          "code": "cha-002-004-001-002-002-002",
                          "title": "마름모의 성질"
                        },
                        {
                          "code": "cha-002-004-001-002-002-003",
                          "title": "정사각형의 성질"
                        },
                        {
                          "code": "cha-002-004-001-002-002-004",
                          "title": "등변사다리꼴의 성질"
                        },
                        {
                          "code": "cha-002-004-001-002-002-005",
                          "title": "여러 가지 사각형 사이의 관계"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "code": "cha-002-004-002",
              "title": "도형의 닮음과 피타고라스 정리",
              "middleUnits": [
                {
                  "code": "cha-002-004-002-001",
                  "title": "도형의 닮음",
                  "smallUnits": [
                    {
                      "code": "cha-002-004-002-001-001",
                      "title": "닮은 도형",
                      "subjects": [
                        {
                          "code": "cha-002-004-002-001-001-001",
                          "title": "닮음"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-004-002-001-002",
                      "title": "삼각형의 닮음 조건",
                      "subjects": [
                        {
                          "code": "cha-002-004-002-001-002-001",
                          "title": "삼각형의 SSS닮음"
                        },
                        {
                          "code": "cha-002-004-002-001-002-002",
                          "title": "삼각형의 SAS닮음"
                        },
                        {
                          "code": "cha-002-004-002-001-002-003",
                          "title": "삼각형의 AA닮음"
                        },
                        {
                          "code": "cha-002-004-002-001-002-004",
                          "title": "직각삼각형의 닮음"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-004-002-001-003",
                      "title": "평행선 사이의 선분의 길이의 비",
                      "subjects": [
                        {
                          "code": "cha-002-004-002-001-003-001",
                          "title": "평행선 사이의 선분의 길이의 비"
                        },
                        {
                          "code": "cha-002-004-002-001-003-002",
                          "title": "삼각형의 각의 이등분선"
                        },
                        {
                          "code": "cha-002-004-002-001-003-003",
                          "title": "평행선 사이의 선분의 길이의 비의 응용"
                        },
                        {
                          "code": "cha-002-004-002-001-003-004",
                          "title": "삼각형의 두 변의 중점을 연결한 선분의 성질"
                        },
                        {
                          "code": "cha-002-004-002-001-003-005",
                          "title": "삼각형의 무게중심"
                        },
                        {
                          "code": "cha-002-004-002-001-003-006",
                          "title": "삼각형의 무게중심과 넓이"
                        },
                        {
                          "code": "cha-002-004-002-001-003-007",
                          "title": "닮은 도형의 넓이의 비와 부피의 비"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-002-004-002-002",
                  "title": "피타고라스 정리",
                  "smallUnits": [
                    {
                      "code": "cha-002-004-002-002-001",
                      "title": "피타고라스 정리",
                      "subjects": [
                        {
                          "code": "cha-002-004-002-002-001-001",
                          "title": "피타고라스 정리"
                        },
                        {
                          "code": "cha-002-004-002-002-001-002",
                          "title": "피타고라스 정리의 활용"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-002-005",
          "title": "확률과 통계",
          "bigUnits": [
            {
              "code": "cha-002-005-001",
              "title": "확률",
              "middleUnits": [
                {
                  "code": "cha-002-005-001-001",
                  "title": "확률과 그 기본 성질",
                  "smallUnits": [
                    {
                      "code": "cha-002-005-001-001-001",
                      "title": "경우의 수",
                      "subjects": [
                        {
                          "code": "cha-002-005-001-001-001-001",
                          "title": "사건과 경우의 수"
                        },
                        {
                          "code": "cha-002-005-001-001-001-002",
                          "title": "여러 가지 경우의 수"
                        }
                      ]
                    },
                    {
                      "code": "cha-002-005-001-001-002",
                      "title": "확률",
                      "subjects": [
                        {
                          "code": "cha-002-005-001-001-002-001",
                          "title": "확률의 정의"
                        },
                        {
                          "code": "cha-002-005-001-001-002-002",
                          "title": "확률의 합과 곱"
                        },
                        {
                          "code": "cha-002-005-001-001-002-003",
                          "title": "여러 가지 확률"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "code": "cha-003",
      "level": "middle",
      "title": "중학교",
      "grade": 3,
      "sectors": [
        {
          "code": "cha-003-001",
          "title": "수와 연산",
          "bigUnits": [
            {
              "code": "cha-003-001-001",
              "title": "제곱근과 실수",
              "middleUnits": [
                {
                  "code": "cha-003-001-001-001",
                  "title": "제곱근과 실수",
                  "smallUnits": [
                    {
                      "code": "cha-003-001-001-001-001",
                      "title": "제곱근과 그 성질",
                      "subjects": [
                        {
                          "code": "cha-003-001-001-001-001-001",
                          "title": "제곱근의 정의"
                        },
                        {
                          "code": "cha-003-001-001-001-001-002",
                          "title": "제곱근의 대소 관계\u001e"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-001-001-001-002",
                      "title": "무리수와 실수",
                      "subjects": [
                        {
                          "code": "cha-003-001-001-001-002-001",
                          "title": "무리수와 실수의 정의"
                        },
                        {
                          "code": "cha-003-001-001-001-002-002",
                          "title": "실수의 대소 관계"
                        },
                        {
                          "code": "cha-003-001-001-001-002-003",
                          "title": "제곱근표를 이용한 제곱근의 값"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-001-001-001-003",
                      "title": "\b근호를 포함한 식의 계산",
                      "subjects": [
                        {
                          "code": "cha-003-001-001-001-003-001",
                          "title": "근호가 있는 식의 변형"
                        },
                        {
                          "code": "cha-003-001-001-001-003-002",
                          "title": "\b제곱근의 곱셈과 나눗셈"
                        },
                        {
                          "code": "cha-003-001-001-001-003-003",
                          "title": "\b제곱근의 덧셈과 뺄셈"
                        },
                        {
                          "code": "cha-003-001-001-001-003-004",
                          "title": "\b복잡한 실수의 대소 관계"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-003-002",
          "title": "문자와 식",
          "bigUnits": [
            {
              "code": "cha-003-002-001",
              "title": "문자와 식",
              "middleUnits": [
                {
                  "code": "cha-003-002-001-001",
                  "title": "다항식의 곱셈과 인수분해",
                  "smallUnits": [
                    {
                      "code": "cha-003-002-001-001-001",
                      "title": "다항식의 곱셈과 나눗셈(3)",
                      "subjects": [
                        {
                          "code": "cha-003-002-001-001-001-001",
                          "title": "곱셈 공식"
                        },
                        {
                          "code": "cha-003-002-001-001-001-002",
                          "title": "곱셈 공식을 이용한 분모의 유리화"
                        },
                        {
                          "code": "cha-003-002-001-001-001-003",
                          "title": "곱셈 공식의 변형"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-002-001-001-002",
                      "title": "인수분해",
                      "subjects": [
                        {
                          "code": "cha-003-002-001-001-002-001",
                          "title": "인수분해"
                        },
                        {
                          "code": "cha-003-002-001-001-002-002",
                          "title": "인수분해 공식"
                        },
                        {
                          "code": "cha-003-002-001-001-002-003",
                          "title": "복잡한 식의 인수분해"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-003-002-001-002",
                  "title": "이차방정식",
                  "smallUnits": [
                    {
                      "code": "cha-003-002-001-002-001",
                      "title": "이차방정식과 그 해",
                      "subjects": [
                        {
                          "code": "cha-003-002-001-002-001-001",
                          "title": "이차방정식\u001e"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-002-001-002-002",
                      "title": "이차방정식\b의 풀이",
                      "subjects": [
                        {
                          "code": "cha-003-002-001-002-002-001",
                          "title": "인수분해를 이용한 이차방정식의 풀이"
                        },
                        {
                          "code": "cha-003-002-001-002-002-002",
                          "title": "제곱근을 이용한 이차방정식의 풀이"
                        },
                        {
                          "code": "cha-003-002-001-002-002-003",
                          "title": "근의 공식을 이용한 이차방정식의 풀이"
                        },
                        {
                          "code": "cha-003-002-001-002-002-004",
                          "title": "\b이차방정식의 근의 개수"
                        },
                        {
                          "code": "cha-003-002-001-002-002-005",
                          "title": "\b여러 가지 이차방정식"
                        },
                        {
                          "code": "cha-003-002-001-002-002-006",
                          "title": "\b이차방정식의 활용"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-003-003",
          "title": "함수",
          "bigUnits": [
            {
              "code": "cha-003-003-001",
              "title": "이차함수",
              "middleUnits": [
                {
                  "code": "cha-003-003-001-001",
                  "title": "이차함수와 그래프",
                  "smallUnits": [
                    {
                      "code": "cha-003-003-001-001-001",
                      "title": "이차함수",
                      "subjects": [
                        {
                          "code": "cha-003-003-001-001-001-001",
                          "title": "이차함수 y=x^2의 그래프"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-003-001-001-002",
                      "title": "이차함수 y=ax^2의 그래프",
                      "subjects": [
                        {
                          "code": "cha-003-003-001-001-002-001",
                          "title": "이차함수 y=ax^2의 그래프"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-003-003-001-002",
                  "title": "이차함수 y=ax^2+bx+c의 그래프",
                  "smallUnits": [
                    {
                      "code": "cha-003-003-001-002-001",
                      "title": "이차함수 y=a(x-p)^2+q의 그래프",
                      "subjects": [
                        {
                          "code": "cha-003-003-001-002-001-001",
                          "title": "이차함수 y=a(x-p)^2+q의 그래프"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-003-001-002-002",
                      "title": "이차함수 y=ax^2+bx+c의 그래프",
                      "subjects": [
                        {
                          "code": "cha-003-003-001-002-002-001",
                          "title": "이차함수 y=ax^2+bx+c의 그래프"
                        },
                        {
                          "code": "cha-003-003-001-002-002-002",
                          "title": "이차함수 y=ax^2+bx+c의 그래프와 a, b, c의 부호"
                        },
                        {
                          "code": "cha-003-003-001-002-002-003",
                          "title": "이차함수의 식 구하기"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-003-004",
          "title": "기하",
          "bigUnits": [
            {
              "code": "cha-003-004-001",
              "title": "삼각비",
              "middleUnits": [
                {
                  "code": "cha-003-004-001-001",
                  "title": "삼각비",
                  "smallUnits": [
                    {
                      "code": "cha-003-004-001-001-001",
                      "title": "삼각비",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-001-001-001",
                          "title": "삼각비의 정의"
                        },
                        {
                          "code": "cha-003-004-001-001-001-002",
                          "title": "특수각의 삼각비의 값"
                        },
                        {
                          "code": "cha-003-004-001-001-001-003",
                          "title": "예각의 삼각비의 값"
                        },
                        {
                          "code": "cha-003-004-001-001-001-004",
                          "title": "삼각비의 표"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-004-001-001-002",
                      "title": "삼각비의 활용",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-001-002-001",
                          "title": "삼각비와 변의 길이"
                        },
                        {
                          "code": "cha-003-004-001-001-002-002",
                          "title": "삼각형의 넓이"
                        },
                        {
                          "code": "cha-003-004-001-001-002-003",
                          "title": "사각형의 넓이"
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "code": "cha-003-004-001",
              "title": "",
              "middleUnits": [
                {
                  "code": "cha-003-004-001-001",
                  "title": "원과 직선",
                  "smallUnits": [
                    {
                      "code": "cha-003-004-001-001-001",
                      "title": "원의 현",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-001-001-001",
                          "title": ""
                        },
                        {
                          "code": "cha-003-004-001-001-001-002",
                          "title": "현의 성질\u001e"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-004-001-001-002",
                      "title": "원의 접선",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-001-002-001",
                          "title": "원의 접선의 성질"
                        },
                        {
                          "code": "cha-003-004-001-001-002-002",
                          "title": "\b삼각형의 내접원"
                        },
                        {
                          "code": "cha-003-004-001-001-002-003",
                          "title": "\b원에 외접하는 사각형의 성질\u001f"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-003-004-001-002",
                  "title": "원주각",
                  "smallUnits": [
                    {
                      "code": "cha-003-004-001-002-001",
                      "title": "원주각",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-002-001-001",
                          "title": "원주각의 성질"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-004-001-002-002",
                      "title": "원주각의 활용",
                      "subjects": [
                        {
                          "code": "cha-003-004-001-002-002-001",
                          "title": "원주각과 사각형"
                        },
                        {
                          "code": "cha-003-004-001-002-002-002",
                          "title": "\b접선과 현이 이루는 각"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "code": "cha-003-005",
          "title": "확률과 통계",
          "bigUnits": [
            {
              "code": "cha-003-005-001",
              "title": "통계(3)",
              "middleUnits": [
                {
                  "code": "cha-003-005-001-001",
                  "title": "대푯값과 산포도",
                  "smallUnits": [
                    {
                      "code": "cha-003-005-001-001-001",
                      "title": "대푯값",
                      "subjects": [
                        {
                          "code": "cha-003-005-001-001-001-001",
                          "title": "대푯값"
                        }
                      ]
                    },
                    {
                      "code": "cha-003-005-001-001-002",
                      "title": "\b산포도",
                      "subjects": [
                        {
                          "code": "cha-003-005-001-001-002-001",
                          "title": "분산과 표준편차"
                        }
                      ]
                    }
                  ]
                },
                {
                  "code": "cha-003-005-001-002",
                  "title": "상관관계",
                  "smallUnits": [
                    {
                      "code": "cha-003-005-001-002-001",
                      "title": "산점도와 상관관계",
                      "subjects": [
                        {
                          "code": "cha-003-005-001-002-001-001",
                          "title": "산점도와 상관관계"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

from flutter_gen.

flexboni avatar flexboni commented on June 7, 2024

Thanks for the examples.

FlutterGen only considers a .json a Lottie file, if it passes this code https://github.com/FlutterGen/flutter_gen/blob/main/packages/core/lib/generators/integrations/lottie_integration.dart#L107-L132

Specifically they must contain all these fields:

'w', // width
'h', // height
'ip', // The frame at which the Lottie animation starts at
'op', // The frame at which the Lottie animation ends at
'fr', // frame rate
'v', // // Must include version
'layers', // Must include layers

and the 'v' field must have a valid version number greater than 4.4.

Neither of those json files satisfy those conditions, and are thus not lottie files.

Thank you very much!!

from flutter_gen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.