From f9c16969cba28f091008b3a08bf67d88b5d54dcc Mon Sep 17 00:00:00 2001 From: i869384 Date: Sun, 6 Sep 2020 17:04:22 -0300 Subject: [PATCH] add x --- mobile/android/key.properties | 2 +- .../app/shared/rateapp/rateapp_dialog.dart | 46 +++++++++++++------ 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/mobile/android/key.properties b/mobile/android/key.properties index 2c26935..e4cade3 100644 --- a/mobile/android/key.properties +++ b/mobile/android/key.properties @@ -1,4 +1,4 @@ storePassword=//Manga09. keyPassword=//Manga09. keyAlias=key0 -storeFile=Y:/Projetos/manga/manga.jks \ No newline at end of file +storeFile=../../../manga.jks \ No newline at end of file diff --git a/mobile/lib/app/shared/rateapp/rateapp_dialog.dart b/mobile/lib/app/shared/rateapp/rateapp_dialog.dart index 2216b48..7e9b56d 100644 --- a/mobile/lib/app/shared/rateapp/rateapp_dialog.dart +++ b/mobile/lib/app/shared/rateapp/rateapp_dialog.dart @@ -29,19 +29,34 @@ class _RateAppState extends State { return AnimatedOpacity( opacity: _opacity, duration: Duration(milliseconds: _animationDuration), - child: Padding( - padding: EdgeInsets.all(10.0), - child: Column(children: [ - Text(_getHeaderText(), - style: TextStyle(fontWeight: FontWeight.bold)), - Row( - mainAxisAlignment: MainAxisAlignment.spaceEvenly, - children: [ - _getNegativeButton(theme), - _getPositiveButton(theme), - ], - ) - ]))); + child: Stack( + children: [ + Align( + alignment: Alignment.topRight, + child: GestureDetector( + onTap: () => _handeClose(), + child: Padding( + padding: EdgeInsets.all(10.0), + child: Text('X')), + ), + ), + Padding( + padding: EdgeInsets.fromLTRB(10, 10, 20, 10), + child: Column(children: [ + Text(_getHeaderText(), + style: + TextStyle(fontWeight: FontWeight.bold)), + Row( + mainAxisAlignment: + MainAxisAlignment.spaceEvenly, + children: [ + _getNegativeButton(theme), + _getPositiveButton(theme), + ], + ) + ])), + ], + )); } })); } @@ -97,6 +112,11 @@ class _RateAppState extends State { } } + void _handeClose() { + RateAppService.setOpenLater(); + _updateLikedState(LikeState.DONE); + } + void _handleNextOpenTime() { if (_likeState == LikeState.LIKED) { // if user is liking the app, let's ask the same question in some time (default 2 weeks)