Skip to content

Error in page creation : Doesn't support Dart Shorthand #296

Description

@afzalali15

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,
   │   

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions