chore: Follow up connection status
This commit is contained in:
parent
4429368a92
commit
2869d341a6
2 changed files with 8 additions and 7 deletions
|
|
@ -99,9 +99,7 @@ class ChatAppBarTitle extends StatelessWidget {
|
||||||
status.icon,
|
status.icon,
|
||||||
size: 12,
|
size: 12,
|
||||||
color: status.error != null
|
color: status.error != null
|
||||||
? Theme.of(context)
|
? Theme.of(context).colorScheme.error
|
||||||
.colorScheme
|
|
||||||
.onErrorContainer
|
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
|
|
@ -111,9 +109,7 @@ class ChatAppBarTitle extends StatelessWidget {
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
color: status.error != null
|
color: status.error != null
|
||||||
? Theme.of(context)
|
? Theme.of(context).colorScheme.error
|
||||||
.colorScheme
|
|
||||||
.onErrorContainer
|
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||||
? L10n.of(context).searchChatsRooms
|
? L10n.of(context).searchChatsRooms
|
||||||
: status.calcLocalizedString(context),
|
: status.calcLocalizedString(context),
|
||||||
hintStyle: TextStyle(
|
hintStyle: TextStyle(
|
||||||
color: theme.colorScheme.onPrimaryContainer,
|
color: status.error != null
|
||||||
|
? theme.colorScheme.error
|
||||||
|
: theme.colorScheme.onPrimaryContainer,
|
||||||
fontWeight: FontWeight.normal,
|
fontWeight: FontWeight.normal,
|
||||||
),
|
),
|
||||||
prefixIcon: hide
|
prefixIcon: hide
|
||||||
|
|
@ -79,6 +81,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||||
)
|
)
|
||||||
: Icon(
|
: Icon(
|
||||||
status.icon,
|
status.icon,
|
||||||
|
color: status.error != null
|
||||||
|
? theme.colorScheme.error
|
||||||
|
: theme.colorScheme.onPrimaryContainer,
|
||||||
size: 18,
|
size: 18,
|
||||||
),
|
),
|
||||||
suffixIcon: controller.isSearchMode && globalSearch
|
suffixIcon: controller.isSearchMode && globalSearch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue