Jesway / flutter_translate

Flutter Translate is a fully featured localization / internationalization (i18n) library for Flutter.
MIT License
403 stars 118 forks source link

any updated when this package will support Flutter 2.0.1 ? #64

Closed cgonzalezandrades closed 3 years ago

cgonzalezandrades commented 3 years ago

I'm seeing this error when I try to run the app with flutter 2.0.1

Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b4029c (5 days ago) • 2021-03-04 09:47:48 -0800
Engine • revision 40441def69
Tools • Dart 2.12.0
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.1, on macOS 11.2.2 20D80 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.54.1)
[✓] Connected device (3 available)

• No issues found!

ERROR

../../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_translate-1.5.7/lib/localized_app.dart:15:61: Error: The method 'ancestorWidgetOfExactType' isn't defined for the class 'BuildContext'.
 - 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('../../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ancestorWidgetOfExactType'.
    static LocalizedApp of(BuildContext context) => context.ancestorWidgetOfExactType(LocalizedApp);
bratan commented 3 years ago

No issues here in either 2.0.2 (stable) or 2.1.0 (master).