fix attachment background color
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user