Handle 0.0.0 latest version
This commit is contained in:
parent
e656244c64
commit
bbb4e46798
|
|
@ -36,7 +36,7 @@ abstract class AccountEntity
|
|||
@BuiltValueField(wireName: 'current_version')
|
||||
String get currentVersion;
|
||||
|
||||
bool get isUpdateAvailable => latestVersion != currentVersion;
|
||||
bool get isUpdateAvailable => latestVersion != currentVersion && latestVersion != '0.0.0';
|
||||
|
||||
static Serializer<AccountEntity> get serializer => _$accountEntitySerializer;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -459,8 +459,7 @@ class SidebarFooter extends StatelessWidget {
|
|||
if (state.prefState.isMenuCollapsed) ...[
|
||||
Expanded(child: SizedBox())
|
||||
] else ...[
|
||||
if (account.currentVersion != account.latestVersion &&
|
||||
account.latestVersion != '0.0.0')
|
||||
if (account.isUpdateAvailable)
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.warning,
|
||||
|
|
|
|||
Loading…
Reference in New Issue