i dont know, after flutter 3.0.0 update, i can't use snippet in android studio. maybe i can, but inside a function. i cant easily import material.dart. but i used snippet in it worked (i can use snippet without flutter snipet plugin in android studio before).
this flutter snippet didn't work inside statefull widget,
i can use snippet before finally using flutter snippet plugin, but when i upgrade flutter to 3.0.0, i cant use it. and when i use flutter snippet plugin, i can't do like @override. i've try updating all the plugin, reinstalling android studio, but it doesn't work.
any solution ? i've already comfortable making flutter app with android studio, and i actually doesn't wanted to use vscode to make flutter app..
CodePudding user response:
You need to write in Widget build function. Currently you are in the wrong scope
CodePudding user response:
Same here. so how i solved this issue! I just use ctrl O for overriding any method. N:B sometimes hints doesn't work. so i have to press esc couple of times or navigate to other page and come back again.