diff --git a/assets/animations/MDLF_animation.flr b/assets/animations/MDLF_animation.flr new file mode 100644 index 0000000..4009ffb Binary files /dev/null and b/assets/animations/MDLF_animation.flr differ diff --git a/lib/Screens/Debug/DebugPage.dart b/lib/Screens/Debug/DebugPage.dart index ca9a901..2f7c78d 100644 --- a/lib/Screens/Debug/DebugPage.dart +++ b/lib/Screens/Debug/DebugPage.dart @@ -1,3 +1,4 @@ +import 'package:flare_flutter/flare_actor.dart'; import 'package:flutter/material.dart'; import 'package:myhomie_app/Helpers/MQTTHelper.dart'; import 'package:myhomie_app/app_context.dart'; @@ -33,7 +34,16 @@ class _DebugPageState extends State { ( reverse: true, separatorBuilder: (context, index) { - return Divider(); + return Container( + width: 50, + height: 50, + child: FlareActor( + 'assets/animations/MDLF_animation.flr', + alignment: Alignment.center, + fit: BoxFit.scaleDown, + animation: 'Rotate', + ), + ); }, itemCount: appContext.getLastMQTTMessages()?.length, itemBuilder: (BuildContext ctxt, int Index) { diff --git a/pubspec.lock b/pubspec.lock index bea18dc..e554a9f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -85,6 +85,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.2.0" + flare_flutter: + dependency: "direct main" + description: + name: flare_flutter + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.2" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index d5d1264..ce3d244 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -30,6 +30,7 @@ dependencies: enum_to_string: ^2.0.1 mqtt_client: ^8.1.0 rxdart: 0.22.0 + flare_flutter: ^3.0.1 mycoreapi: path: mycore_api # The following adds the Cupertino Icons font to your application.