Question
flutter-elinux run -d roc-rk3328-cc
Launching lib/main.dart on eLinux in debug mode...
Uninstall sentry_flutter_example from roc-rk3328-cc.
Uninstallation Success
Install sentry_flutter_example (build/elinux/arm64/debug/bundle) to roc-rk3328-cc
Installation Success
Launch sentry_flutter_example.name on roc-rk3328-cc
[...]
A Dart VM Service on eLinux is available at: http://127.0.0.1:37901/xenGZhwqIcA=/
The Flutter DevTools debugger and profiler on eLinux is available at: http://127.0.0.1:9101?uri=http://127.0.0.1:37901/xenGZhwqIcA=/
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building Localizations(locale: C, delegates:
[GlobalCupertinoLocalizations.delegate(78 locales), GlobalMaterialLocalizations.delegate(79
locales), GlobalWidgetsLocalizations.delegate(79 locales),
DefaultFeedbackLocalizations.delegate(en_EN)], dirty, state: _LocalizationsState#f1654):
type 'Null' is not a subtype of type 'WidgetsLocalizations' in type cast
The relevant error-causing widget was:
Localizations
Localizations:file:///home/fdbai/.pub-cache/hosted/pub.dev/feedback-2.6.0/lib/src/l18n/localization.dart:34:12
When the exception was thrown, this was the stack:
#0 _LocalizationsState._textDirection (package:flutter/src/widgets/localizations.dart:622:83)
#1 _LocalizationsState.build (package:flutter/src/widgets/localizations.dart:632:22)
#2 StatefulElement.build (package:flutter/src/widgets/framework.dart:5409:27)
#3 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5297:15)
#4 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5462:11)
#5 Element.rebuild (package:flutter/src/widgets/framework.dart:5016:7)
#6 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5279:5)
#7 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5453:11)
#8 ComponentElement.mount (package:flutter/src/widgets/framework.dart:5273:5)
... Normal element mounting (91 frames)
#99 Element.inflateWidget (package:flutter/src/widgets/framework.dart:4182:16)
#100 Element.updateChild (package:flutter/src/widgets/framework.dart:3707:18)
#101 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1253:16)
#102 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1222:5)
#103 RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1169:18)
#104 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2719:19)
#105 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1168:13)
#106 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:1001:7)
#107 WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:981:7)
#111 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
(elided 3 frames from class _Timer and dart:async-patch)
════════════════════════════════════════════════════════════════════════════════════════════════════
Answer
- export XDG_RUNTIME_DIR=/run/user/1001; /tmp/${appName}/example -b .
+ export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; export XDG_RUNTIME_DIR=/run/user/1001; /tmp/${appName}/example -b .