I have this JSON file
{
"app_background_color":"#000000
",
"app_logo":"https://www.website.nl/images/app-logo.png",
"app_endpoint":"https://app.website.nl/endpoint",
"app_text_color":"#FFFFFF
",
"app_text_font":"Arial",
"app_text_size":"14px",
}
My question is how can i import "app_text_color" as a variable from the style.json file and use the color from variable from json file and use it for the app.dart file below?
app.dart
TextFormField(
decoration: const InputDecoration(
labelText: 'Test',
labelStyle: TextStyle(
color: Colors.app_text_color)), ///variable from json file
),
