diff --git a/lib/screen/playlists/add_new_playlist/add_new_playlist.dart b/lib/screen/playlists/add_new_playlist/add_new_playlist.dart index 5404e1c50..c61966b20 100644 --- a/lib/screen/playlists/add_new_playlist/add_new_playlist.dart +++ b/lib/screen/playlists/add_new_playlist/add_new_playlist.dart @@ -67,6 +67,9 @@ class _AddNewPlaylistScreenState extends State nftBloc.add(GetTokensByOwnerEvent(pageKey: PageKey.init())); })); bloc.add(InitPlaylist(playListModel: widget.playListModel)); + WidgetsBinding.instance.addPostFrameCallback((context) { + _focusCollectionName(); + }); } @override @@ -76,6 +79,10 @@ class _AddNewPlaylistScreenState extends State injector().showCreatePlaylistTip.value = false; } + void _focusCollectionName() { + FocusScope.of(context).requestFocus(_focusNode); + } + void _scrollListenerToLoadMore() { if (_controller.position.pixels + 100 >= _controller.position.maxScrollExtent) {