From 9592121cd6231efb410b1d5d4f97f65596d1aec6 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Wed, 8 Apr 2020 12:04:55 +0200 Subject: [PATCH] fix attachment background color --- example/lib/main.dart | 2 +- lib/src/message_widget.dart | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 32af2bd3..59a2ec3f 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -25,7 +25,7 @@ class MyApp extends StatelessWidget { return MaterialApp( theme: ThemeData.light(), darkTheme: ThemeData.dark(), - themeMode: ThemeMode.system, + themeMode: ThemeMode.dark, home: Container( child: StreamChat( client: client, diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index 3130174e..3ddb251d 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -400,9 +400,7 @@ class _MessageWidgetState extends State int nOfAttachmentWidgets, BuildContext context, ) { - final boxDecoration = _buildBoxDecoration(_isLastUser).copyWith( - color: Color(0xffebebeb), - ); + final boxDecoration = _buildBoxDecoration(_isLastUser); return Padding( padding: const EdgeInsets.only(bottom: 2.0), child: Column( @@ -413,7 +411,8 @@ class _MessageWidgetState extends State child: Container( decoration: boxDecoration, constraints: BoxConstraints.loose( - Size.fromWidth(MediaQuery.of(context).size.width * 0.7)), + Size.fromWidth(MediaQuery.of(context).size.width * 0.7), + ), child: Stack( children: [ Column( @@ -620,7 +619,6 @@ class _MessageWidgetState extends State ], ), ), - color: Color(0xffebebeb), ), ); }