chore: Follow up connection status header
This commit is contained in:
parent
c54146d56e
commit
367a503123
3 changed files with 26 additions and 27 deletions
|
|
@ -100,12 +100,17 @@ class ChatAppBarTitle extends StatelessWidget {
|
|||
)
|
||||
: Row(
|
||||
children: [
|
||||
Icon(
|
||||
status.icon,
|
||||
size: 12,
|
||||
color: status.error != null
|
||||
? Theme.of(context).colorScheme.error
|
||||
: null,
|
||||
SizedBox.square(
|
||||
dimension: 10,
|
||||
child: CircularProgressIndicator.adaptive(
|
||||
strokeWidth: 1,
|
||||
value: status.progress,
|
||||
valueColor: status.error != null
|
||||
? AlwaysStoppedAnimation<Color>(
|
||||
Theme.of(context).colorScheme.error,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Expanded(
|
||||
|
|
|
|||
|
|
@ -79,12 +79,21 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||
color: theme.colorScheme.onPrimaryContainer,
|
||||
),
|
||||
)
|
||||
: Icon(
|
||||
status.icon,
|
||||
color: status.error != null
|
||||
? theme.colorScheme.error
|
||||
: theme.colorScheme.onPrimaryContainer,
|
||||
size: 18,
|
||||
: Container(
|
||||
margin: const EdgeInsets.all(12),
|
||||
width: 8,
|
||||
height: 8,
|
||||
child: Center(
|
||||
child: CircularProgressIndicator.adaptive(
|
||||
strokeWidth: 2,
|
||||
value: status.progress,
|
||||
valueColor: status.error != null
|
||||
? AlwaysStoppedAnimation<Color>(
|
||||
theme.colorScheme.error,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
),
|
||||
),
|
||||
suffixIcon: controller.isSearchMode && globalSearch
|
||||
? controller.isSearching
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue