design: Minor improvements

This commit is contained in:
Christian Pauly 2021-06-20 14:08:34 +02:00
parent 6ab0b02c6b
commit 7f491c26cd
2 changed files with 10 additions and 9 deletions

View File

@ -240,11 +240,17 @@ class ChatListView extends StatelessWidget {
return Container(); return Container();
} }
return Material( return Material(
color: Colors.orange, color: Theme.of(context)
.secondaryHeaderColor,
child: ListTile( child: ListTile(
leading: CircleAvatar( leading: CircleAvatar(
backgroundColor: Colors.white, backgroundColor: Theme.of(
foregroundColor: Colors.black, context)
.scaffoldBackgroundColor,
foregroundColor:
Theme.of(context)
.colorScheme
.secondaryVariant,
child: Icon(Icons.cloud), child: Icon(Icons.cloud),
), ),
trailing: IconButton( trailing: IconButton(

View File

@ -270,12 +270,7 @@ class ChatView extends StatelessWidget {
(BuildContext context, int i) { (BuildContext context, int i) {
return i == controller.filteredEvents.length + 1 return i == controller.filteredEvents.length + 1
? controller.timeline.isRequestingHistory ? controller.timeline.isRequestingHistory
? Container( ? LinearProgressIndicator()
height: 50,
alignment: Alignment.center,
padding: EdgeInsets.all(8),
child: CircularProgressIndicator(),
)
: controller.canLoadMore : controller.canLoadMore
? Center( ? Center(
child: OutlinedButton( child: OutlinedButton(