wlmaker 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +10 -7
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -847,14 +847,17 @@ class Wl${pascal}Data extends Equatable {
847
847
  }
848
848
  function useCaseTemplate(name, pascal, tierPlural3) {
849
849
  return `import 'package:design_system/design_system.dart';
850
+ import 'package:flutter/material.dart';
850
851
  import 'package:widgetbook/widgetbook.dart';
851
- import 'package:wl_design_system/${tierPlural3}/wl_${name}.dart';
852
-
853
- WidgetbookUseCase wl${pascal}UseCase(BuildContext context) {
854
- return WidgetbookUseCase(
855
- name: 'Wl${pascal}',
856
- builder: (context) => const Wl${pascal}(),
857
- );
852
+ import 'package:widgetbook_annotation/widgetbook_annotation.dart' as widgetbook;
853
+
854
+ @widgetbook.UseCase(
855
+ name: 'Wl${pascal}',
856
+ type: Wl${pascal},
857
+ path: 'wl_design_system/${tierPlural3}/wl_${name}',
858
+ )
859
+ Widget useCaseWl${pascal}(BuildContext context) {
860
+ return const Wl${pascal}();
858
861
  }
859
862
  `;
860
863
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wlmaker",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Create Flutter BLoCs with Freezed sealed classes from the terminal",
5
5
  "keywords": [
6
6
  "flutter",