Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

Commit

Permalink
add x
Browse files Browse the repository at this point in the history
  • Loading branch information
i869384 committed Sep 6, 2020
1 parent ff94d12 commit f9c1696
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
2 changes: 1 addition & 1 deletion mobile/android/key.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
storePassword=//Manga09.
keyPassword=//Manga09.
keyAlias=key0
storeFile=Y:/Projetos/manga/manga.jks
storeFile=../../../manga.jks
46 changes: 33 additions & 13 deletions mobile/lib/app/shared/rateapp/rateapp_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,34 @@ class _RateAppState extends State<RateApp> {
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: <Widget>[
_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: <Widget>[
_getNegativeButton(theme),
_getPositiveButton(theme),
],
)
])),
],
));
}
}));
}
Expand Down Expand Up @@ -97,6 +112,11 @@ class _RateAppState extends State<RateApp> {
}
}

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)
Expand Down

0 comments on commit f9c1696

Please sign in to comment.