mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 00:51:19 +00:00
Test animation flare
This commit is contained in:
parent
526fb41971
commit
47f1239d67
BIN
assets/animations/MDLF_animation.flr
Normal file
BIN
assets/animations/MDLF_animation.flr
Normal file
Binary file not shown.
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user