Test animation flare

This commit is contained in:
Thomas Fransolet 2022-02-23 16:40:19 +01:00
parent 526fb41971
commit 47f1239d67
4 changed files with 19 additions and 1 deletions

Binary file not shown.

View File

@ -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<DebugPage> {
(
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) {

View File

@ -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

View File

@ -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.