Skip to content

Commit

Permalink
FIX: Minor UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Jun 6, 2020
1 parent 574332a commit 97d1d9f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
6 changes: 4 additions & 2 deletions assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@
"title": "Choosing a random TV show",
"general_error": "Error to get episode. Please try again",
"connection_error": "Fail connection. Connect and try again",
"button_home": "FAVORITES"
"button_fav": "FAVORITES",
"button_search": "SEARCH"
},
"result": {
"title": "This is the TV show episode chosen at random!",
"button_random": "ANOTHER RANDOM EPISODE",
"button_home": "FAVORITES"
"button_fav": "FAVORITES",
"button_search": "SEARCH"
},
"modal": {
"description": "Description",
Expand Down
7 changes: 5 additions & 2 deletions assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"tab": "Favoritos",
"title": "Tus series favoritas para elegir al azar un episodio",
"empty_message": "Busca una serie para añadir en tu lista de favoritos",
"error_message": "Oops! Ocurrió un error al cargar los favoritos",
"button_random": "AL AZAR"
},
"search": {
Expand Down Expand Up @@ -38,12 +39,14 @@
"title": "Eligiendo un episodio aleatorio",
"general_error": "Hubo un error al elegir el episodio. Por favor intenta de nuevo",
"connection_error": "Falló en la conexión. Conéctate e intenta de nuevo",
"button_home": "FAVORITOS"
"button_fav": "FAVORITOS",
"button_search": "BÚSQUEDA"
},
"result": {
"title": "¡Este es el episodio elegido al azar de la serie!",
"button_random": "OTRO EPISODIO AL AZAR",
"button_home": "FAVORITOS"
"button_fav": "FAVORITOS",
"button_search": "BÚSQUEDA"
},
"modal": {
"description": "Descripción",
Expand Down
7 changes: 5 additions & 2 deletions assets/i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"tab": "Favoritos",
"title": "Tuas series favoritas para escolher aleatoriamente um episódio",
"empty_message": "Busque uma serie para adicionar na tua lista de favoritos",
"error_message": "Oops! Ocorreu um erro ao carregar os favoritos",
"button_random": "ALEATÓRIO"
},
"search": {
Expand Down Expand Up @@ -38,12 +39,14 @@
"title": "Escolhendo um episódio aleatório",
"general_error": "Ocorreu um erro ao escolher o episódio. Por favor tente novamente",
"connection_error": "Não há conexão. Conecte-se e tente novamente",
"button_home": "FAVORITOS"
"button_fav": "FAVORITOS",
"button_search": "BUSCA"
},
"result": {
"title": "Este é o episódio escolhido aleatoriamente da serie!",
"button_random": "OUTRO EPISÓDIO ALEATÓRIO",
"button_home": "FAVORITOS"
"button_fav": "FAVORITOS",
"button_search": "BUSCA"
},
"modal": {
"description": "Descrição",
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/views/info_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ class InfoView extends StatelessWidget {
context: context,
builder: (BuildContext context) {
return AlertDialog(
contentPadding: SMALL_INSESTS,
contentPadding: DEFAULT_INSESTS,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
),
title: Text(
translate('app.info.version.dialog_title'),
),
content: Markdown(data: description),
content: MarkdownBody(data: description),
actions: <Widget>[
RaisedButton(
shape: RoundedRectangleBorder(
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/widgets/home_button.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ class HomeButton extends StatelessWidget {
child: FlatButton.icon(
label: Text(
kIsWeb
? translate('app.loading.button_home')
: translate('app.loading.button_home'),
? translate('app.loading.button_search')
: translate('app.loading.button_fav'),
),
icon: const Icon(Unicons.favorite),
icon: const Icon(kIsWeb ? Unicons.search : Unicons.favorite),
onPressed: () => Navigator.pushNamedAndRemoveUntil<TabView>(
context,
RoutePaths.TAB,
Expand Down

0 comments on commit 97d1d9f

Please sign in to comment.