1 #include "../../lv_examples.h"
2 #if LV_BUILD_EXAMPLES
3 #if LV_USE_RLOTTIE
4 
5 /**
6  * Load an lottie animation from flash
7  */
lv_example_rlottie_1(void)8 void lv_example_rlottie_1(void)
9 {
10     extern const uint8_t lv_example_rlottie_approve[];
11     lv_obj_t * lottie = lv_rlottie_create_from_raw(lv_screen_active(), 100, 100, (const void *)lv_example_rlottie_approve);
12     lv_obj_center(lottie);
13 }
14 
15 #else
lv_example_rlottie_1(void)16 void lv_example_rlottie_1(void)
17 {
18     /*TODO
19      *fallback for online examples*/
20 
21     lv_obj_t * label = lv_label_create(lv_screen_active());
22     lv_label_set_text(label, "Rlottie is not installed");
23     lv_obj_center(label);
24 }
25 
26 #endif
27 #endif
28