Skip to content

Commit 10bd5d3

Browse files
authored
Add snippet to import the flutter_test package (#16)
* Add snippet to import the flutter_test package * Add importFT snippet to table on README.md
1 parent c3b069e commit 10bd5d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Awesome Flutter Snippets is a collection of commonly used Flutter classes and me
3838
| `debugP` | Debug Print | Prints a message to the console, which you can access using the flutter tool's `logs` command (flutter logs). |
3939
| `importM` | Material Package | Import Material package.
4040
| `importC` | Cupertino Package | Import Cupertino package.
41+
| `importFT` | flutter_test Package | Import flutter_test package.
4142
| `mateapp` | Material App | Create a new Material App.
4243
| `cupeapp` | Cupertino Package | Create a New Cupertino App.
4344
| `tweenAnimationBuilder` | Tween Animation Builder | Widget builder that animates a property of a Widget to a target value whenever the target value changes.

snippets/snippets.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,11 @@
333333
"body": "import 'package:flutter/cupertino.dart';",
334334
"description": "Import Flutter Cupertino package"
335335
},
336+
"flutter_test Package": {
337+
"prefix": "importFT",
338+
"body": "import 'package:flutter_test/flutter_test.dart';",
339+
"description": "Import flutter_test package"
340+
},
336341
"Material App": {
337342
"prefix": "mateapp",
338343
"description": "Create a MaterialApp",

0 commit comments

Comments
 (0)