Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Flutter: How can I hide internacionalization class from getx import

I am using getx as a state management in my protect and I also I am using easy_localization.

Now I need to use both of them in one page but tr() is inside get/get_utils/src/extensions/internacionalization.dartand I can’t use both of these packages with together.

Now I want to hide this internacionalization from getx import but I got error :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

import 'package:get/get.dart' hide internacionalization;

The library 'package:get/get.dart' doesn't export a member with the hidden name 'internacionalization'.

how can I fix this problem?

>Solution :

From https://github.com/jonataslaw/getx/issues/1833#issue-987876562.

You can use:

import 'package:get/get.dart' hide Trans
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading