jonataslaw / jonataslaw/get_cli

Error in page creation : Doesn't support Dart Shorthand

Open
#296 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
654
Forks
193
PR merge metrics
No merged PRs in 30d

Description

I am using .fadeIn transition in GetPage, This comes as part of Dart shorthand feature (Instead of writing Transition.fadeIn we can write .fadeIn). GET CLI doesn't recognize that and treats as error. Causing failure to register GetPage in app_apges.dart.

```
get create page:renew_card
✓ File: renew_card_controller.dart created successfully at path: lib/app/modules/renew_card/controllers/renew_card_controller.dart
✓ File: renew_card_view.dart created successfully at path: lib/app/modules/renew_card/views/renew_card_view.dart
✓ File: renew_card_binding.dart created successfully at path: lib/app/modules/renew_card/bindings/renew_card_binding.dart
✖ + error_unexpected Could not format because the source could not be parsed:

line 55, column 19 of .: Expected an identifier.

55 │ transition: .fadeIn,

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with `get create page:renew_card` and inspect the generated `app_apges.dart` entry along with the generated controller, view, and binding files. Trace the CLI formatting step that rejects `transition: .fadeIn`; done means page creation completes without the parse or format error when Dart shorthand is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.