feat(ui): add the ability to add a background image in MessageListView

This commit is contained in:
Efthymios Sarmpanis
2021-10-09 20:06:27 +03:00
parent 0146d2cc85
commit 7d90dc0cfe
8 changed files with 128 additions and 9 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

@@ -63,6 +63,12 @@ class MyApp extends StatelessWidget {
borderRadius: BorderRadius.circular(8),
),
),
messageListViewTheme: const MessageListViewThemeData(
backgroundColor: Colors.grey,
backgroundImage: DecorationImage(
image: AssetImage('assets/background_doodle.png'),
fit: BoxFit.cover,
)),
otherMessageTheme: MessageThemeData(
messageBackgroundColor: colorTheme.textHighEmphasis,
messageTextStyle: TextStyle(
@@ -47,8 +47,8 @@ flutter:
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
assets:
- assets/background_doodle.png
# - images/a_dot_ham.jpeg
# An image asset can refer to one or more resolution-specific "variants", see