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
@@ -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(