From 744d1675e56df5dd31ef660002190038a36c8ddf Mon Sep 17 00:00:00 2001 From: Alex Gorichev Date: Fri, 24 Jun 2022 07:23:34 +0100 Subject: [PATCH] Set login fields to visiblePassword --- lib/components/Playlist/PlaylistCreateDialog.dart | 4 ++-- lib/components/Search/Search.dart | 2 +- lib/components/Settings/Login.dart | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/components/Playlist/PlaylistCreateDialog.dart b/lib/components/Playlist/PlaylistCreateDialog.dart index 45ca6161..e55581ea 100644 --- a/lib/components/Playlist/PlaylistCreateDialog.dart +++ b/lib/components/Playlist/PlaylistCreateDialog.dart @@ -73,11 +73,11 @@ class PlaylistCreateDialog extends HookConsumerWidget { const SizedBox(height: 10), TextField( controller: description, - keyboardType: TextInputType.multiline, - maxLines: 5, decoration: const InputDecoration( hintText: "Description...", ), + keyboardType: TextInputType.multiline, + maxLines: 5, ), const SizedBox(height: 10), CheckboxListTile( diff --git a/lib/components/Search/Search.dart b/lib/components/Search/Search.dart index d872b999..a83257eb 100644 --- a/lib/components/Search/Search.dart +++ b/lib/components/Search/Search.dart @@ -48,8 +48,8 @@ class Search extends HookConsumerWidget { children: [ Expanded( child: TextField( - decoration: const InputDecoration(hintText: "Search..."), controller: controller, + decoration: const InputDecoration(hintText: "Search..."), onSubmitted: (value) { ref.read(searchTermStateProvider.notifier).state = controller.value.text; diff --git a/lib/components/Settings/Login.dart b/lib/components/Settings/Login.dart index ac330117..a66e4e8f 100644 --- a/lib/components/Settings/Login.dart +++ b/lib/components/Settings/Login.dart @@ -77,14 +77,16 @@ class Login extends HookConsumerWidget { hintText: "Spotify Client ID", label: Text("ClientID"), ), + keyboardType: TextInputType.visiblePassword, ), const SizedBox(height: 10), TextField( + controller: clientSecretController, decoration: const InputDecoration( hintText: "Spotify Client Secret", label: Text("Client Secret"), ), - controller: clientSecretController, + keyboardType: TextInputType.visiblePassword, ), const SizedBox(height: 20), ElevatedButton(