Hi,
I’m trying to build an admin-portal web app to test changes in the language file I want to update while waiting for the official version to sync changes from Transifex. However when I run
flutter run -d chrome
I always get this error:
/C:/Users/PhoBo/AppData/Local/Pub/Cache/hosted/pub.dev/charts_flutter-0.12.0/lib/src/behaviors/legend/legend_entry_layout.dart:134:45: Error: The
getter 'bodyText2' isn't defined for the class 'TextTheme'.
- 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/D:/flutter/packages/flutter/lib/src/material/text_theme.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'.
color ??= Theme.of(context).textTheme.bodyText2!.color;
Thanks for your response, now I can run the web application.
I want to test building an admin-portal web app after making some changes in the language files and then replacing the flutter web app files in invoiceninja.
I’m following this topic:
However, I am facing a problem because after building the admin-portal web application i am not able to determine which file in the build/web folder should be used to replace public/main.foss.dart.js in invoiceninja.
I’ve been using the built-in flutter web app since installing invoiceninja, so I don’t have any other ui projects installed. Should I install a React web app instead of using an existing Flutter web app? Is there any benefit to doing so?
If you’re using the Flutter app it’s much better to use the desktop version, the web version will eventually be deprecated. You can run it with flutter run -d windows or flutter run -d macos.