flutter_sheet_localization icon indicating copy to clipboard operation
flutter_sheet_localization copied to clipboard

can someone fork for an active contribution ? then people can contribute ?

Open billyandco opened this issue 2 years ago • 9 comments

TODO :

  • upgrade dart to 2.16 (for now)
  • upgrade dependencies

not actually working on it, but plan to fork this beautiful project

billyandco avatar Feb 15 '22 14:02 billyandco

same here

ngockhanhbl avatar Jan 03 '23 03:01 ngockhanhbl

I am now using https://github.com/hacnguyen1412/flutter_sheet_localization with the following entries in pubspec.yaml

dependencies:
  flutter_sheet_localization:
      git:
        url: [email protected]:hacnguyen1412/flutter_sheet_localization.git
        path: flutter_sheet_localization

dev_dependencies:
  flutter_sheet_localization_generator: 
      git:
        url: [email protected]:hacnguyen1412/flutter_sheet_localization.git
        path: flutter_sheet_localization_generator

Thanks @hacnguyen1412 for the fixes in your fork

bobatsar avatar Apr 27 '23 20:04 bobatsar

I am now using https://github.com/hacnguyen1412/flutter_sheet_localization with the following entries in pubspec.yaml

flutter_sheet_localization:
    git:
      url: [email protected]:hacnguyen1412/flutter_sheet_localization.git
      path: flutter_sheet_localization


flutter_sheet_localization_generator: 
    git:
      url: [email protected]:hacnguyen1412/flutter_sheet_localization.git
      path: flutter_sheet_localization_generator

Thanks @hacnguyen1412 for the fixes in your fork

Hi @bobatsar , I got error: Git error. Command: git clone --mirror [email protected]:hacnguyen1412/flutter_sheet_localization.git /Users/levinhduc/.pub-cache/git/cache/flutter_sheet_localization-af6febef448b5cd344667055662983f58545659a stdout: stderr: Cloning into bare repository '/Users/levinhduc/.pub-cache/git/cache/flutter_sheet_localization-af6febef448b5cd344667055662983f58545659a'... Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

imagic85 avatar Apr 30 '23 23:04 imagic85

Hi @bobatsar , I got error:

Resolving dependencies... Because every version of flutter_sheet_localization_generator from path depends on flutter_sheet_localization from git and smart_contacts depends on flutter_sheet_localization from path, flutter_sheet_localization_generator from path is forbidden. So, because smart_contacts depends on flutter_sheet_localization_generator from path, version solving failed. pub get failed command: "C:\src\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --directory . get --example" pub env: { "FLUTTER_ROOT": "C:\src\flutter", "PUB_ENVIRONMENT": "flutter_cli:get", "PUB_CACHE": "C:\Users\mosta\AppData\Local\Pub\Cache", } exit code: 1

Process finished with exit code 1

dddd

MostafaElswefy avatar May 01 '23 23:05 MostafaElswefy

hey @imagic85,

it seems https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ is your problem.

@MostafaElswefy I don't know why your errors appear here.

Please make sure that flutter_sheet_localization is in the dependencies section and flutter_sheet_localization_generator is in dev_dependencies.

I updated my comment above to clarify this.

bobatsar avatar May 04 '23 10:05 bobatsar

Hey @bobatsar bobatsar ,

My Problem had been Resolved , Now I can Use Packages Normally . But i use this package "flutter_lints" and This package contains a recommended set of lints for apps, packages, and plugins to encourage good coding practices. because of this package A lot of warnings appear at "localizations.g.dart" generated File like :

  • info: Unnecessary 'const' keyword.
  • info: Unnecessary escape in string literal.
  • info: Use 'const' with the constructor to improve performance.

please you can make a trial Using this package "flutter_lints" (https://pub.dev/packages/flutter_lints) to understand what's the problem

Thanks A lot dddddasa

MostafaElswefy avatar May 04 '23 14:05 MostafaElswefy

@MostafaElswefy

I know your problem, I was in that trouble before. However, I don't have enough resources to do that. Instead, you can custom 'flutter_lint' to ignore .g.dart file.

You can try it: https://github.com/dart-lang/linter/issues/165

holland-hng avatar May 04 '23 14:05 holland-hng

Hello @hacnguyen1412 ,

Everything was working till i upgraded to new Updates Flutter [3.10.0] This Error message appeared

[Resolving dependencies... Because every version of flutter_sheet_localization_generator from git depends on intl ^0.17.0 and every version of flutter_localizations from sdk depends on intl 0.18.0, flutter_sheet_localization_generator from git is incompatible with flutter_localizations from sdk. So, because smart_contacts depends on both flutter_localizations from sdk and flutter_sheet_localization_generator from git, version solving failed. Process finished with exit code 1]

how can i fix my problem Thanks

ddddd

MostafaElswefy avatar May 14 '23 21:05 MostafaElswefy

Hello @hacnguyen1412 ,

Everything was working till i upgraded to new Updates Flutter [3.10.0] This Error message appeared

[Resolving dependencies... Because every version of flutter_sheet_localization_generator from git depends on intl ^0.17.0 and every version of flutter_localizations from sdk depends on intl 0.18.0, flutter_sheet_localization_generator from git is incompatible with flutter_localizations from sdk. So, because smart_contacts depends on both flutter_localizations from sdk and flutter_sheet_localization_generator from git, version solving failed. Process finished with exit code 1]

how can i fix my problem Thanks

ddddd

Finally I Found solution for this issue without downgrading Flutter

we can use [dependency_overrides:] @ pubspec.yaml

like That :

dependency_overrides: intl: ^0.17.0

for more details you can visit Doc @ https://docs.flutter.dev/packages-and-plugins/using-packages#conflict-resolution

eeee

MostafaElswefy avatar May 14 '23 23:05 MostafaElswefy