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( return MaterialApp(
theme: ThemeData.light(), theme: ThemeData.light(),
darkTheme: ThemeData.dark(), darkTheme: ThemeData.dark(),
themeMode: ThemeMode.system, themeMode: ThemeMode.dark,
home: Container( home: Container(
child: StreamChat( child: StreamChat(
client: client, client: client,
+3 -5
View File
@@ -400,9 +400,7 @@ class _MessageWidgetState extends State<MessageWidget>
int nOfAttachmentWidgets, int nOfAttachmentWidgets,
BuildContext context, BuildContext context,
) { ) {
final boxDecoration = _buildBoxDecoration(_isLastUser).copyWith( final boxDecoration = _buildBoxDecoration(_isLastUser);
color: Color(0xffebebeb),
);
return Padding( return Padding(
padding: const EdgeInsets.only(bottom: 2.0), padding: const EdgeInsets.only(bottom: 2.0),
child: Column( child: Column(
@@ -413,7 +411,8 @@ class _MessageWidgetState extends State<MessageWidget>
child: Container( child: Container(
decoration: boxDecoration, decoration: boxDecoration,
constraints: BoxConstraints.loose( constraints: BoxConstraints.loose(
Size.fromWidth(MediaQuery.of(context).size.width * 0.7)), Size.fromWidth(MediaQuery.of(context).size.width * 0.7),
),
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Column( Column(
@@ -620,7 +619,6 @@ class _MessageWidgetState extends State<MessageWidget>
], ],
), ),
), ),
color: Color(0xffebebeb),
), ),
); );
} }