xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.15k stars 197 forks source link

Not working in iOS17 #303

Open spencer0124 opened 11 months ago

spencer0124 commented 11 months ago

After uploading the real device with ios17, Lottiefile is not seen on the real device.

I can see lottie file on the iphone15 ios simulator, but I cannot check it when debugging on the actual device or checking it through testflight after the build is completed. (in picture: Refresh button at bottom right)

It seems to work normally in the Android simulator. There appears to be a conflict with ios17.

Also, it works fine with the same code in ios16

floatingActionButton: Align(
        alignment: Alignment.bottomRight,
        child: GestureDetector(
          onTap: () {
            if (controller.refreshTime.value > 1 &&
                !controller.preventAnimation.value) {
              controller.preventAnimation.value = true;
              controller.refreshData();
              Future.delayed(const Duration(milliseconds: 1100), () {
                controller.preventAnimation.value = false;
              });
            } else {
              print(
                  'else, ${controller.refreshTime.value} / ${controller.preventAnimation.value}');
            }
          },
          child: Container(
            decoration: BoxDecoration(
              shape: BoxShape.circle,
              color: Colors.blueGrey[700],
            ),
            width: 53,
            height: 53,
            child: Align(
              alignment: Alignment.center,
              child: Lottie.asset(
                'assets/lottie/refresh_white.json',
                repeat: false,
                controller: controller.animationController,
                width: 60, // Adjust the size as needed
                height: 60, // Adjust the size as needed
                fit: BoxFit.fill,
              ),
            ),
          ),
        ),
      ),

cap1

cap2

cap3