move padding for message list inside image decoration background

This commit is contained in:
Dan Ballard 2024-02-13 19:07:55 -08:00 committed by Sarah Jamie Lewis
parent a6c0e8105d
commit 7febeeadb6
Signed by: sarah
GPG Key ID: F27FD21A270837EF
2 changed files with 6 additions and 3 deletions

View File

@ -258,7 +258,7 @@ class _MessageViewState extends State<MessageView> {
actions: appBarButtons,
),
body: Padding(
padding: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 182.0),
padding: EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 164.0),
child: MessageList(
scrollListener,
)),

View File

@ -122,7 +122,10 @@ class _MessageListState extends State<MessageList> {
image: AssetImage("assets/core/negative_heart_512px.png"),
colorFilter: ColorFilter.mode(Provider.of<Settings>(context).theme.hilightElementColor.withOpacity(0.15), BlendMode.srcIn))),
// Don't load messages for syncing server...
child: loadMessages
child:
Padding(
padding: EdgeInsets.fromLTRB(0.0, 0.0, 0.0, 20.0),
child: loadMessages
? ScrollablePositionedList.builder(
itemPositionsListener: widget.scrollListener,
itemScrollController: Provider.of<ContactInfoState>(outerContext).messageScrollController,
@ -151,7 +154,7 @@ class _MessageListState extends State<MessageList> {
);
},
)
: null))
: null)))
])));
}
}