Commit bfddcf5
Changed files (2)
lib
components
lib/components/consistent_future_builder.dart
@@ -85,8 +85,11 @@ class _ConsistentFutureBuilderState<T>
// Might get called before localizations initialize.
final localizations = AppLocalizations.of(context);
if (snapshot.hasError) {
- return Text(localizations?.error(snapshot.error.toString())
- ?? snapshot.error.toString(),);
+ return Directionality(
+ textDirection: TextDirection.ltr,
+ child: Text(localizations?.error(snapshot.error.toString())
+ ?? snapshot.error.toString(),),
+ );
}
switch (snapshot.connectionState) {
case ConnectionState.none:
lib/main.dart
@@ -55,8 +55,8 @@ Future<Widget> _loadApp() async {
} else {
intakeHistory = IntakeHistory([]);
}
- } catch (e) {
- assert(e is PathNotFoundException, e.toString());
+ } catch (e, stack) {
+ assert(e is PathNotFoundException, '$e\n$stack');
intakeHistory = IntakeHistory([]);
}
intakeHistory.addListener(() async {