Imgkl / davinci

A flutter package to convert any widget to an Image.
https://pub.dev/packages/davinci
MIT License
48 stars 25 forks source link

a Localizations ancestor was not found #37

Open Misioka opened 1 month ago

Misioka commented 1 month ago

When I try to render my flow screen with localization by DavinciCapture.offStage. I end up with error

======== Exception caught by widgets library =======================================================
The following assertion was thrown building PrintPreviewFlow(dirty):
a Localizations ancestor was not found
'package:flutter/src/widgets/localizations.dart':
Failed assertion: line 509 pos 12: 'scope != null'

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.yml

I'm using flutter_localizations for localizations

Imgkl commented 3 weeks ago

@Misioka Thanks for filing an issue. Could you please provide, reproducible code?