Home > Mobile >  Flutter: How can I hide internacionalization class from getx import
Flutter: How can I hide internacionalization class from getx import

Time:07-08

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 :

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?

CodePudding user response:

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

You can use:

import 'package:get/get.dart' hide Trans
  • Related