aloisdeniel / flutter_sheet_localization

Generate Flutter localization from a simple online Google Sheets.
283 stars 82 forks source link

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

Open billyandco opened 2 years ago

billyandco commented 2 years ago

TODO :

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

ngockhanhbl commented 1 year ago

same here

bobatsar commented 1 year ago

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

dependencies:
  flutter_sheet_localization:
      git:
        url: git@github.com:hacnguyen1412/flutter_sheet_localization.git
        path: flutter_sheet_localization

dev_dependencies:
  flutter_sheet_localization_generator: 
      git:
        url: git@github.com:hacnguyen1412/flutter_sheet_localization.git
        path: flutter_sheet_localization_generator

Thanks @hacnguyen1412 for the fixes in your fork

imagic85 commented 1 year ago

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

flutter_sheet_localization:
    git:
      url: git@github.com:hacnguyen1412/flutter_sheet_localization.git
      path: flutter_sheet_localization

flutter_sheet_localization_generator: 
    git:
      url: git@github.com: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 git@github.com: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.

MostafaElswefy commented 1 year ago

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

bobatsar commented 1 year ago

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.

MostafaElswefy commented 1 year ago

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 :

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

holland-hng commented 1 year ago

@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/sdk/issues/57261

MostafaElswefy commented 1 year ago

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 commented 1 year ago

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