fix attachment background color

This commit is contained in:
Salvatore Giordano
2020-04-08 12:04:55 +02:00
parent 4cb1bd95a2
commit 9592121cd6
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -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,
+3 -5
View File
@@ -400,9 +400,7 @@ class _MessageWidgetState extends State<MessageWidget>
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<MessageWidget>
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: <Widget>[
Column(
@@ -620,7 +619,6 @@ class _MessageWidgetState extends State<MessageWidget>
],
),
),
color: Color(0xffebebeb),
),
);
}