diff --git a/CHANGELOG.md b/CHANGELOG.md index 71f2a22..e718e8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,88 +1,105 @@ +# CHANGELOG + # Changelog + All notable changes to this project will be documented in this file. ## [Changes] + +### 4.0.0 + +- **Breaking: Change `testWdigets` to `f-testWidgets` to better align with function snippets** +- Support for `group` test function `f-group` +- Support for app localisation import `importAL` +- Support for Flutter 3 + - Migrate to super initialisers + - Not on Flutter 3? The Flutter 2.xx branch is up to date and ready for you :) +- Fixed Lint issue - Added `const` to applicable widgets + ### 3.0.3 -- Use State createState on statefulW snippet (Thank you [@marcossevilla](https://github.com/Nash0x7E2/awesome-flutter-snippets/commit/b18505ae59128ce8c2ff4cc60100603dc11259d5)) + +- Use State + + createState on statefulW snippet (Thank you [@marcossevilla](https://github.com/Nash0x7E2/awesome-flutter-snippets/commit/b18505ae59128ce8c2ff4cc60100603dc11259d5)) + ### 3.0.2 + - Removed trailing whitespaces (Thank you @leoshusar https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/45) - Make widgets default to Container only (Thank you @Ascenio https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/43) ### 3.0.1 + - Support for `Listview.builder` - Support for `GridView.count` - Support for `GridView.extent` ### 3.0.0 -- Update all widgets to null safety + +- Update all widgets to null safety - Update engine to `1.56.0` ### 2.0.4 + - Add Flutter test import (Thank you @arthurdenner https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/16) - Support for unit and widget test functions (Thank you @TNorbury https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/20) - Added support for Listview.Separated (Thank you @timilehinjegede https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/26) - Fixed inheritedW (Thank you @ianwith https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/22) ### 2.0.3 + - Support for `BehaviorSubject` (Thanks @sinadarvi https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/7) - Support for `TweenAnimationBuilder` - Support for `ValueListenableBuilder` - Fixed various bug fixes and typos ### 2.0.2 -- Resolved issue [#6](https://github.com/Nash0x7E2/awesome-flutter-snippets/issues/6) -### 2.0.1 +- Resolved issue [#6](https://github.com/Nash0x7E2/awesome-flutter-snippets/issues/6) + +### 2.0.1 + - Removed Stateful and Statless Widget since they are included with DartCode. - Added Material App. - Added Cupertino App. -### 2.0.0 +### 2.0.0 + - Changed prefixes to use a keyword associated with the widget/function (in camel case) -- Bug fixes +- Bug fixes ### 1.0.6 + - Added support for debug print -- Added support for to string -- Added support for importing Cupertino package +- Added support for to string +- Added support for importing Cupertino package - Added support for importing Material package (PR #2) - Added child logic to Stateless and Stateful widgets snippets (PR #3) -### 1.0.5 -- Adjusted tab stops to improve efficiency and workflow +### 1.0.5 + +- Adjusted tab stops to improve efficiency and workflow - Removed blank Containers from builders in favor of a tab stop with semi-colon - Added trailing comma at the end of child parameter ### 1.0.4 -- Fixed formatting + +- Fixed formatting - Removed unused tabs -- Corrected spelling errors +- Corrected spelling errors ### 1.0.3 -Added support for: -- Stream -- Sink -- Inherited Widget -- Mounted -- NoSuchMethod - - -### 1.0.2 -Added support for: -- Stateful Builder -- Orientation Builder -- Layout Builder -- Single Child Scroll View -- Future Builder - - -### 1.0.1 -Added support for: -- Stream Builder -- Animated Builder -- Custom Scroll View -- Listview.Builder + +Added support for: - Stream - Sink - Inherited Widget - Mounted - NoSuchMethod + +### 1.0.2 + +Added support for: - Stateful Builder - Orientation Builder - Layout Builder - Single Child Scroll View - Future Builder + +### 1.0.1 + +Added support for: - Stream Builder - Animated Builder - Custom Scroll View - Listview.Builder ### 1.0.0 -- Initial Relase \ No newline at end of file + +- Initial Relase \ No newline at end of file diff --git a/README.md b/README.md index 5099814..d228cf5 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,22 @@ -# Awesome Flutter Snippets -Awesome Flutter Snippets is a collection of commonly used Flutter classes and methods. It increases your speed of development by eliminating most of the boilerplate code associated with creating a widget. Widgets such as `StreamBuilder` and `SingleChildScrollView` can be created by typing the shortcut `streamBldr` and `singleChildSV` respectively. -
+# README + +Awesome Flutter Snippets is a collection of commonly used Flutter classes and methods. It increases your speed of development by eliminating most of the boilerplate code associated with creating a widget. Widgets such as `StreamBuilder` and `SingleChildScrollView` can be created by typing the shortcut `streamBldr` and `singleChildSV` respectively. + +
+ ## Features -- Speeds up development -- Eliminates boilerplate + +- Speeds up development +- Eliminates boilerplate - Supports complex widgets (Eg: Custom Clipper and Custom Paint) -
+ +
+ +
+ +
+ +  | Shortcut | Expanded | Description | | ---------- | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -43,110 +54,116 @@ Awesome Flutter Snippets is a collection of commonly used Flutter classes and me | `importM` | Material Package | Import Material package. | `importC` | Cupertino Package | Import Cupertino package. | `importFT` | flutter_test Package | Import flutter_test package. +| `importAL` | App localisation | Allows for the importation of app_localisation following [generation](https://docs.flutter.dev/development/accessibility-and-localization/internationalization). | `mateapp` | Material App | Create a new Material App. | `cupeapp` | Cupertino Package | Create a New Cupertino App. | `tweenAnimationBuilder` | Tween Animation Builder | Widget builder that animates a property of a Widget to a target value whenever the target value changes. | `valueListenableBuilder` | Value Listenable Builder | Given a ValueListenable and a builder which builds widgets from concrete values of T, this class will automatically register itself as a listener of the ValueListenable and call the builder with updated values when the value changes. | `f-group` | Group | Create a group test function. | `f-test` | Test | Create a test function. -| `widgetTest` | Test Widgets | Create a testWidgets function. +| `f-testWidgets` | Test Widgets | Create a testWidgets function. -
+
## Requirements -Vscode: `1.56.0` -
+Vscode: `1.56.0` ## Known Issues -At this time, there are no known issues. If you discover a bug or would like to see a shortcut added, please create a pull request at our GitHub page. + +At this time, there are no known issues. If you discover a bug or would like to see a shortcut added, please create a pull request at our GitHub page. ## Release Notes +### 4.0.0 + +- **Breaking: Change `testWdigets` to `f-testWidgets` to better align with function snippets** +- Support for `group` test function `f-group` +- Support for app localisation import `importAL` +- Support for Flutter 3 + - Migrate to super initialisers + - Not on Flutter 3? The Flutter 2.xx branch is up to date and ready for you :) +- Fixed Lint issue - Added `const` to applicable widgets + ### 3.0.3 -- Use State createState on statefulW snippet (Thank you [@marcossevilla](https://github.com/Nash0x7E2/awesome-flutter-snippets/commit/b18505ae59128ce8c2ff4cc60100603dc11259d5)) + +- Use createState on statefulW snippet (Thank you [@marcossevilla](https://github.com/Nash0x7E2/awesome-flutter-snippets/commit/b18505ae59128ce8c2ff4cc60100603dc11259d5)) ### 3.0.2 + - Removed trailing whitespaces (Thank you [@leoshusar](https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/45)) - Make widgets default to Container only (Thank you [@Ascenio](https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/43)) - ### 3.0.1 + - Support for `Listview.builder` - Support for `GridView.count` - Support for `GridView.extent` ### 3.0.0 -- Update all widgets to null safety + +- Update all widgets to null safety - Update engine to `1.56.0` ### 2.0.4 + - Add Flutter test import (Thank you @arthurdenner https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/16) - Support for unit and widget test functions (Thank you @TNorbury https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/20) - Added support for Listview.Separated (Thank you @timilehinjegede https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/26) - Fixed inheritedW (Thank you @ianwith https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/22) ### 2.0.3 + - Support for `BehaviorSubject` (Thanks @sinadarvi https://github.com/Nash0x7E2/awesome-flutter-snippets/pull/7) - Support for `TweenAnimationBuilder` - Support for `ValueListenableBuilder` - Fixed various bug fixes and typos ### 2.0.2 -- Resolved issue [#6](https://github.com/Nash0x7E2/awesome-flutter-snippets/issues/6) -### 2.0.1 +- Resolved issue [#6](https://github.com/Nash0x7E2/awesome-flutter-snippets/issues/6) + +### 2.0.1 + - Removed Stateful and Statless Widget since they are included with DartCode. - Added Material App. - Added Cupertino App. -### 2.0.0 +### 2.0.0 + - Changed prefixes to use a keyword associated with the widget/function (in camel case) -- Bug fixes +- Bug fixes ### 1.0.6 + - Added support for debug print -- Added support for to string -- Added support for importing Cupertino package +- Added support for to string +- Added support for importing Cupertino package - Added support for importing Material package (PR #2) - Added child logic to Stateless and Stateful widgets snippets (PR #3) -### 1.0.5 -Critical bug fixes: -- Adjusted tab stops to improve efficiency and workflow -- Removed blank Containers from builders in favor of a tab stop with semi-colon -- Added trailing comma at the end of child parameter +### 1.0.5 + +Critical bug fixes: - Adjusted tab stops to improve efficiency and workflow - Removed blank Containers from builders in favor of a tab stop with semi-colon - Added trailing comma at the end of child parameter ### 1.0.4 -- Fixed formatting -- Removed unused tabs -- Corrected spelling errors +- Fixed formatting +- Removed unused tabs +- Corrected spelling errors ### 1.0.3 -Added support for: -- Stream -- Sink -- Inherited Widget -- Mounted -- NoSuchMethod - - -### 1.0.2 -Added support for: -- Stateful Builder -- Orientation Builder -- Layout Builder -- Single Child Scroll View -- Future Builder - - -## 1.0.1 -Added support for: -- Stream Builder -- Animated Builder -- Custom Scroll View -- Listview.Builder + +Added support for: - Stream - Sink - Inherited Widget - Mounted - NoSuchMethod + +### 1.0.2 + +Added support for: - Stateful Builder - Orientation Builder - Layout Builder - Single Child Scroll View - Future Builder + +## 1.0.1 + +Added support for: - Stream Builder - Animated Builder - Custom Scroll View - Listview.Builder ### 1.0.0 -Initial release of Awesome Flutter Snippets + +Initial release of Awesome Flutter Snippets \ No newline at end of file diff --git a/images/the_flutter_bi_weekly.svg b/images/the_flutter_bi_weekly.svg new file mode 100644 index 0000000..7c6d133 --- /dev/null +++ b/images/the_flutter_bi_weekly.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/package.json b/package.json index 991a0dc..342ab7b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "awesome-flutter-snippets", "displayName": "Awesome Flutter Snippets", "description": "Awesome Flutter Snippets is a collection snippets and shortcuts for commonly used Flutter functions and classes", - "version": "3.0.3", + "version": "4.0.0", "icon": "logo.png", "publisher": "Nash", "engines": { diff --git a/snippets/snippets.json b/snippets/snippets.json index 41a8885..aff8a07 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -308,7 +308,7 @@ "prefix": "inheritedW", "body": [ "class ${1:Name} extends InheritedWidget {", - " const ${1:Name}({super.key, required super.child});", + " const ${1:Name}({super.key, required this.child}) : super(child: child);", "", " final Widget child;", "", @@ -402,7 +402,7 @@ "void main() => runApp(const MyApp());", "", "class MyApp extends StatelessWidget {", - " const MyApp({Key? key}) : super(key: key);", + " const MyApp({super.key});", "", " @override", " Widget build(BuildContext context) {", @@ -430,7 +430,7 @@ "void main() => runApp(const MyApp());", "", "class MyApp extends StatelessWidget {", - " const MyApp({Key? key}) : super(key: key);", + " const MyApp({super.key});", "", " @override", " Widget build(BuildContext context) {", @@ -495,7 +495,7 @@ "description": "Create a group test function" }, "Test Widgets": { - "prefix": "widgetTest", + "prefix": "f-testWidgets", "body": [ "testWidgets(", " \"${1:test description}\",",