diff --git a/lib/entities/entity_icon.widget.dart b/lib/entities/entity_icon.widget.dart index 062f0a7..5feb9e7 100644 --- a/lib/entities/entity_icon.widget.dart +++ b/lib/entities/entity_icon.widget.dart @@ -63,19 +63,6 @@ class EntityIcon extends StatelessWidget { }, ), ); - /*iconWidget = Container( - height: size+12, - width: size+12, - decoration: BoxDecoration( - shape: BoxShape.circle, - image: DecorationImage( - fit:BoxFit.cover, - image: CachedNetworkImageProvider( - "${entityWrapper.entityPicture}", - ), - ) - ), - );*/ isPicture = true; } else { iconWidget = _buildIcon(entityWrapper, iconColor); diff --git a/lib/main.dart b/lib/main.dart index f74e696..7405fa3 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -163,7 +163,7 @@ const String appName = 'HA Client'; const appVersionNumber = '1.1.0'; final String appVersionAdd = secrets['version_type'] ?? ''; final String appVersion = '$appVersionNumber${appVersionAdd.isNotEmpty ? '-' : ''}$appVersionAdd'; -const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.0.1.md'; +const whatsNewUrl = 'http://ha-client.app/service/whats_new_1.1.0.md'; Future _reportError(dynamic error, dynamic stackTrace) async { // Print the exception to the console. diff --git a/lib/managers/startup_user_messages_manager.class.dart b/lib/managers/startup_user_messages_manager.class.dart index dd6ec36..65d79af 100644 --- a/lib/managers/startup_user_messages_manager.class.dart +++ b/lib/managers/startup_user_messages_manager.class.dart @@ -26,7 +26,7 @@ class StartupUserMessagesManager { _needToshowDonateMessage = false; } else { bool wasShown = prefs.getBool(_donateMsgShownKey) ?? false; - _needToshowDonateMessage = (DateTime.now().millisecondsSinceEpoch - tInt >= 1209600000) && !wasShown; //14 days + _needToshowDonateMessage = (Duration(milliseconds: DateTime.now().millisecondsSinceEpoch - tInt).inDays >= 14) && !wasShown; } _whatsNewMessageShown = '${prefs.getString(_whatsNewMessageKey)}' == whatsNewUrl; if (!_whatsNewMessageShown) { diff --git a/pubspec.yaml b/pubspec.yaml index e90d4c0..bed7acc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hass_client description: Home Assistant Android Client -version: 1.1.0+1100 +version: 1.1.0+1101 environment: