FilledStacks / flutter-tutorials

The repo contains the source code for all the tutorials on the FilledStacks Youtube channel.
MIT License
4.75k stars 1.76k forks source link

This expression has type 'void' and can't be used. return navigatorKey.currentState.pop(); #54

Closed hemendrasundar closed 4 years ago

hemendrasundar commented 4 years ago

in 034-flutter-web-part3-template-layouts i am getting this error plzz help me how to resolve this. Screenshot (156)

FilledStacks commented 4 years ago

Change the function return type to void and remove the return word.


From: hemendrasundar notifications@github.com Sent: Friday, April 3, 2020 12:03:31 PM To: FilledStacks/flutter-tutorials flutter-tutorials@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [FilledStacks/flutter-tutorials] This expression has type 'void' and can't be used. return navigatorKey.currentState.pop(); (#54)

in 034-flutter-web-part3-template-layouts i am getting this error plzz help me how to resolve this. [Screenshot (156)]https://user-images.githubusercontent.com/11142691/78348901-682a6180-75c0-11ea-8d84-cc54f9478de8.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/FilledStacks/flutter-tutorials/issues/54, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA3M72QQGKTWRFYNO6LOAWTRKWX7HANCNFSM4L3YJYVQ.

hemendrasundar commented 4 years ago

thanks working now