Tweak padding & maxlines

This commit is contained in:
tommyxchow 2022-01-13 11:04:26 -05:00
parent a0bd9e4e0f
commit 51c4239521
3 changed files with 3 additions and 1 deletions

View file

@ -32,6 +32,7 @@ class Chat extends StatelessWidget {
style: DefaultTextStyle.of(context).style.copyWith(fontSize: chatStore.settings.fontSize),
child: Observer(
builder: (context) => ListView.separated(
padding: const EdgeInsets.symmetric(vertical: 5.0),
addAutomaticKeepAlives: false,
addRepaintBoundaries: false,
itemCount: chatStore.messages.length,
@ -94,7 +95,6 @@ class Chat extends StatelessWidget {
],
),
),
const SizedBox(height: 5.0),
ChatBottomBar(chatStore: chatStore),
if (chatStore.assetsStore.showEmoteMenu)
SizedBox(

View file

@ -51,6 +51,7 @@ class ChatBottomBar extends StatelessWidget {
},
),
isDense: true,
hintMaxLines: 1,
contentPadding: const EdgeInsets.all(10.0),
border: const OutlineInputBorder(
borderRadius: BorderRadius.all(Radius.circular(10.0)),

View file

@ -75,6 +75,7 @@ class ChatUserModal extends StatelessWidget {
child: MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: chatStore.settings.messageScale),
child: ListView.separated(
padding: const EdgeInsets.symmetric(vertical: 5.0),
reverse: true,
itemBuilder: (context, index) => InkWell(
onLongPress: () async {