Skip to content

Commit

Permalink
updated snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceboy committed May 6, 2023
1 parent d1613ba commit 9e24063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ultisnips/dart.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ endsnippet

snippet sf "New Stateful Widget" b
class ${1:name} extends StatefulWidget {
${1:name}({Key? key}) : super(key: key);
${1:name}({super.key});
@override
_${1:WidgetName}State createState() => _${1:WidgetName}State();
}
Expand All @@ -307,7 +307,7 @@ endsnippet

snippet sl "New Stateless Widget" b
class ${1:name} extends StatelessWidget {
${1:name}({Key? key}) : super(key: key);
${1:name}({super.key});
@override
Widget build(context) {
return ${2:Container()};
Expand Down

0 comments on commit 9e24063

Please sign in to comment.