Benjamin Koch

Results 5 comments of Benjamin Koch

> What's the benefit of this? The reason is to encapsulate the package name so we can use the AssetGenImage without parameter, e.g. use `Image.asset(res.Assets.images.flutter3.path)` instead of `Image.asset(res.Assets.images.flutter3.path, package: 'example_resources')`...

> @kolotum @renancaraujo > > When `package_parameter_enabled` is `true,` Can you solve this problem by generating the following? > > ```dart > String get path => _assetName; > > //...

I like the new way introduced in 4.2: ```dart Assets.images.icon.allInOne.image( width: Get.width, height: 267.h, fit: BoxFit.fill, ) ``` But I am not sure if `path` works when `package_parameter_enabled: true` is...

> > But I am not sure if path works when package_parameter_enabled: true is set. > > It works. Please see here: > > https://github.com/FlutterGen/flutter_gen/blob/05e307b298316c2b93634902e520b435ed2e1db5/example/lib/main.dart#L43 Just to clarify: My expectation...

> You can still get provider via `Assets.images.allInOne.image(...).image`. > This `ImageProvider` should be a more correct one, which respect the optional parameters, than the previous inheritance one. Thank you for...