From 46ce25ded5669981c80089369b99688e215538a3 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Thu, 23 Jan 2020 21:22:25 +0100 Subject: [PATCH] Add animation to opacity --- lib/components/list_items/message.dart | 3 ++- pubspec.lock | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/components/list_items/message.dart b/lib/components/list_items/message.dart index 9d1f62a..94e2332 100644 --- a/lib/components/list_items/message.dart +++ b/lib/components/list_items/message.dart @@ -126,7 +126,8 @@ class Message extends StatelessWidget { } }, itemBuilder: (BuildContext context) => popupMenuList, - child: Opacity( + child: AnimatedOpacity( + duration: Duration(milliseconds: 500), opacity: event.status == 0 ? 0.5 : 1, child: Bubble( elevation: 0, diff --git a/pubspec.lock b/pubspec.lock index baaabb9..dd06d00 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -110,8 +110,8 @@ packages: dependency: "direct main" description: path: "." - ref: bc2ca9749cfcc0506c59f97f4ae4987f0e84fbf4 - resolved-ref: bc2ca9749cfcc0506c59f97f4ae4987f0e84fbf4 + ref: "2545995bbe96a1d96fe176ab666f4dd03d591aa6" + resolved-ref: "2545995bbe96a1d96fe176ab666f4dd03d591aa6" url: "https://gitlab.com/famedly/famedlysdk.git" source: git version: "0.0.1"