lottie-flutter icon indicating copy to clipboard operation
lottie-flutter copied to clipboard

Error: Type 'AssetBundle' not found.

Open kEva0v0 opened this issue 3 years ago • 6 comments

10:59:42 .flutter/cache/.pub-cache/hosted/dart-pub.byted.org/lottie-1.2.2/lib/src/lottie.dart:48:5: Error: Type 'AssetBundle' not found. 10:59:42 AssetBundle? bundle, 10:59:42 ^^^^^^^^^^^

kEva0v0 avatar Feb 15 '22 03:02 kEva0v0

Maybe miss import 'package:flutter/services.dart' in lottie.dart ?

kEva0v0 avatar Feb 15 '22 03:02 kEva0v0

i try lottie 1.2.2 on flutter 2.10 and it works fine but my personal repo's flutter version is 2.0.6-0.0.pre.260 and it throw 'cannot find declaration' so current 'dependency_overrides: lottie 1.2.1' works fine

kEva0v0 avatar Feb 15 '22 03:02 kEva0v0

im currently having this issue. any fix ?

namdiemefo avatar Mar 08 '22 20:03 namdiemefo

+1, the same issue.

ivoryxiong avatar Mar 22 '22 02:03 ivoryxiong

+1 me too also the import 'package:lottie/lottie.dart';

part is greyed out along with

import 'package:flutter/services.dart'

TheGuyDangerous avatar Mar 28 '22 06:03 TheGuyDangerous

I got same error, I am using flutter 2.0.3

hutomosaktikartiko avatar Aug 05 '22 10:08 hutomosaktikartiko

me too on 2.2.2

BoniWPy avatar Nov 04 '22 08:11 BoniWPy