This commit is contained in:
Yegor Vialov 2020-05-22 16:01:16 +00:00
parent 1ed56ce8f1
commit 701e6a46df
4 changed files with 3 additions and 16 deletions

View File

@ -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; isPicture = true;
} else { } else {
iconWidget = _buildIcon(entityWrapper, iconColor); iconWidget = _buildIcon(entityWrapper, iconColor);

View File

@ -163,7 +163,7 @@ const String appName = 'HA Client';
const appVersionNumber = '1.1.0'; const appVersionNumber = '1.1.0';
final String appVersionAdd = secrets['version_type'] ?? ''; final String appVersionAdd = secrets['version_type'] ?? '';
final String appVersion = '$appVersionNumber${appVersionAdd.isNotEmpty ? '-' : ''}$appVersionAdd'; 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<void> _reportError(dynamic error, dynamic stackTrace) async { Future<void> _reportError(dynamic error, dynamic stackTrace) async {
// Print the exception to the console. // Print the exception to the console.

View File

@ -26,7 +26,7 @@ class StartupUserMessagesManager {
_needToshowDonateMessage = false; _needToshowDonateMessage = false;
} else { } else {
bool wasShown = prefs.getBool(_donateMsgShownKey) ?? false; 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; _whatsNewMessageShown = '${prefs.getString(_whatsNewMessageKey)}' == whatsNewUrl;
if (!_whatsNewMessageShown) { if (!_whatsNewMessageShown) {

View File

@ -1,7 +1,7 @@
name: hass_client name: hass_client
description: Home Assistant Android Client description: Home Assistant Android Client
version: 1.1.0+1100 version: 1.1.0+1101
environment: environment: