always show shield but change color
This commit is contained in:
+10
-9
@@ -87,16 +87,17 @@ class AppBarTitle extends HookConsumerWidget {
|
|||||||
clipBehavior: Clip.none,
|
clipBehavior: Clip.none,
|
||||||
children: [
|
children: [
|
||||||
TabIcon(tabState: tabState, iconSize: 24),
|
TabIcon(tabState: tabState, iconSize: 24),
|
||||||
if (showSiteSettingsBadge)
|
Positioned(
|
||||||
Positioned(
|
top: -4,
|
||||||
top: -4,
|
right: -4,
|
||||||
right: -4,
|
child: Icon(
|
||||||
child: Icon(
|
MdiIcons.shieldHalfFull,
|
||||||
MdiIcons.shieldHalfFull,
|
size: 10,
|
||||||
size: 10,
|
color: showSiteSettingsBadge
|
||||||
color: appColors.warningAmber,
|
? appColors.warningAmber
|
||||||
),
|
: Colors.green,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user